1 %include Solaris.inc |
|
2 |
|
3 %define src_name scim-m17n |
|
4 %define src_url http://jaist.dl.sourceforge.net/sourceforge/scim |
|
5 |
|
6 Summary: Smart Common Input Method Framework - libm17n IMEngine |
|
7 SUNW_BaseDir: %{_basedir} |
|
8 Name: SUNWscim-m17n |
|
9 Version: 0.2.2 |
|
10 Release: 1 |
|
11 License: GPL |
|
12 Source: %{src_url}/%{src_name}-%{version}.tar.gz |
|
13 BuildRoot: %{_tmppath}/%{src_name}-%{version}-build |
|
14 SUNW_Copyright: scim-m17n.copyright |
|
15 IPS_Package_Name: system/input-method/scim/scim-m17n |
|
16 IPS_Component_Version: %{ipscompverdefault} |
|
17 Meta(info.classification): %{ipsclass_sys_i18n} |
|
18 |
|
19 %include default-depend.inc |
|
20 Requires: SUNWscim |
|
21 Requires: SUNWm17n-lib-core |
|
22 Requires: SUNWm17n-db |
|
23 BuildRequires: SUNWgnome-base-libs-devel |
|
24 BuildRequires: SUNWscim-devel |
|
25 BuildRequires: SUNWm17n-lib-core-devel |
|
26 |
|
27 %prep |
|
28 %setup -q -n %{src_name}-%{version} |
|
29 |
|
30 %build |
|
31 export CXX="${CXX} -norunpath" |
|
32 export CFLAGS="%optflags" |
|
33 export CXXFLAGS="%cxx_optflags" |
|
34 ./bootstrap |
|
35 ./configure --prefix=%{_prefix} \ |
|
36 --sysconfdir=%{_sysconfdir} \ |
|
37 --disable-debug |
|
38 make |
|
39 |
|
40 %install |
|
41 rm -rf ${RPM_BUILD_ROOT} |
|
42 DESTDIR=${RPM_BUILD_ROOT} make install |
|
43 find ${RPM_BUILD_ROOT} -name "*.a" -exec rm {} \; -print |
|
44 find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print |
|
45 |
|
46 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
47 |
|
48 %clean |
|
49 rm -rf ${RPM_BUILD_ROOT} |
|
50 |
|
51 %files |
|
52 %defattr(-, root, bin) |
|
53 %{_libdir}/scim-1.0/* |
|
54 %dir %attr (0755, root, sys) %{_datadir} |
|
55 %{_datadir}/* |
|