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