1 %include Solaris.inc |
|
2 |
|
3 %define src_name scim-anthy |
|
4 %define src_url http://iij.dl.sourceforge.jp/scim-imengine/25404 |
|
5 |
|
6 Summary: Smart Common Input Method Framework - libanthy IMEngine |
|
7 SUNW_BaseDir: %{_basedir} |
|
8 Name: SUNWscim-anthy |
|
9 Version: 1.2.4 |
|
10 Release: 1 |
|
11 License: GPL |
|
12 Source: %{src_url}/%{src_name}-%{version}.tar.gz |
|
13 Patch1: scim-anthy-%{version}-on-nv-ss11-patch.diff |
|
14 BuildRoot: %{_tmppath}/%{src_name}-%{version}-build |
|
15 SUNW_PKGLIST: SUNWscim |
|
16 SUNW_LOC: ja,ja_JP.PCK,ja_JP.UTF-8 |
|
17 SUNW_Copyright: %{src_name}.copyright |
|
18 IPS_Package_Name: system/input-method/scim/anthy |
|
19 IPS_Component_Version: %{version} |
|
20 Meta(info.classification): %{ipsclass_sys_i18n} |
|
21 |
|
22 %include default-depend.inc |
|
23 Requires: SUNWscim |
|
24 Requires: SUNWlibanthy |
|
25 BuildRequires: SUNWgnome-base-libs-devel |
|
26 BuildRequires: SUNWscim-devel |
|
27 BuildRequires: SUNWlibanthy-devel |
|
28 |
|
29 %prep |
|
30 %setup -q -n %{src_name}-%{version} |
|
31 %patch1 -p0 |
|
32 |
|
33 %build |
|
34 glib-gettextize --force |
|
35 aclocal |
|
36 autoconf |
|
37 autoheader |
|
38 automake --add-missing |
|
39 export CXX="${CXX} -norunpath" |
|
40 export CFLAGS="%optflags" |
|
41 export CXXFLAGS="%cxx_optflags" |
|
42 ./configure --prefix=%{_prefix} \ |
|
43 --sysconfdir=%{_sysconfdir} \ |
|
44 --disable-debug |
|
45 make |
|
46 |
|
47 %install |
|
48 rm -rf ${RPM_BUILD_ROOT} |
|
49 DESTDIR=${RPM_BUILD_ROOT} make install |
|
50 find ${RPM_BUILD_ROOT} -name "*.a" -exec rm {} \; -print |
|
51 find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print |
|
52 |
|
53 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
54 |
|
55 %clean |
|
56 rm -rf ${RPM_BUILD_ROOT} |
|
57 |
|
58 %files |
|
59 %defattr(-, root, bin) |
|
60 %{_libdir}/scim-1.0/* |
|
61 %dir %attr (0755, root, sys) %{_datadir} |
|
62 %attr (0755, root, other) %{_datadir}/locale |
|
63 %{_datadir}/scim/* |
|