Fix wrong license information
[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 SCIM (Smart Common Input Method) is an input method (IM) platform.
13 scim-unikey is a IME for scim. Use for type Vietnamese
14 Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
15
16 BuildRequires: scim-devel >= 1.4.7
17 Requires: scim
18
19 %prep
20 %setup -q
21
22 %build
23 if [ -x ./configure ]; then
24   CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
25 else
26   CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
27 fi
28 make
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 make DESTDIR=$RPM_BUILD_ROOT install-strip
33 find $RPM_BUILD_ROOT -name *.la -exec rm '{}' +
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 %post -p /sbin/ldconfig
39
40 %postun -p /sbin/ldconfig
41
42 %files
43 %defattr(-,root,root)
44 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README
45 %{_prefix}/lib/libunikey-scim.*
46 %{_prefix}/lib/scim-1.0/1.4.0/IMEngine/unikey.*
47 %{_prefix}/lib/scim-1.0/1.4.0/Helper/unikey-helper.so
48 %{_prefix}/libexec/scim-setup-unikey
49 %{_prefix}/share/scim-unikey/setup/setup-macro.glade
50 %{_prefix}/share/scim-unikey/setup/setup-main.glade
51 %{_prefix}/share/scim/icons/scim-unikey*.png
52 %{_prefix}/share/locale/*/LC_MESSAGES/scim-unikey.mo
53