-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscim-unikey.spec.in
53 lines (43 loc) · 1.38 KB
/
scim-unikey.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Vietnamese Input Method Engine for SCIM using Unikey Engine
Vendor: Ubuntu-VN
License: LGPL 2
Group: Localization
URL: http://code.google.com/p/scim-unikey/
Source: http://scim-unikey.googlecode.com/files/%{name}-%{version}.tar.gz
%description
Smart Common Input Method (SCIM) is an input method (IM) platform.
Scim-Unikey is a Vietnamese input method for SCIM
Use Unikey engine to process keyevent
BuildRequires: scim-devel >= 1.4.7
Requires: scim
%prep
%setup -q
%build
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
find $RPM_BUILD_ROOT -name *.la -exec rm '{}' +
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%{_prefix}/lib/libunikey-scim.*
%{_prefix}/lib/scim-1.0/1.4.0/IMEngine/unikey.*
%{_prefix}/lib/scim-1.0/1.4.0/Helper/unikey-helper.so
%{_prefix}/libexec/scim-setup-unikey
%{_prefix}/share/scim-unikey/setup/setup-macro.glade
%{_prefix}/share/scim-unikey/setup/setup-main.glade
%{_prefix}/share/scim/icons/scim-unikey*.png
%{_prefix}/share/locale/*/LC_MESSAGES/scim-unikey.mo