author | jenda |
Tue, 29 Nov 2011 11:11:56 +0100 | |
changeset 714 | 7e428d437ae9 |
parent 707 | dfbe6c035259 |
permissions | -rw-r--r-- |
322 | 1 |
%include Solaris.inc |
2 |
||
696
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
3 |
%define pythonver 2.6 |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
4 |
|
322 | 5 |
%define src_name ibus |
6 |
%define src_url http://ibus.googlecode.com/files |
|
7 |
||
699 | 8 |
Summary: IBus - Intelligent Input Bus |
322 | 9 |
SUNW_BaseDir: %{_basedir} |
10 |
Name: SUNWibus |
|
659 | 11 |
Version: 1.3.9 |
322 | 12 |
Release: 1 |
13 |
License: LGPL |
|
14 |
Source: %{src_url}/%{src_name}-%{version}.tar.gz |
|
615
a8c9e813f0fd
Removed old input method framework startup script to use new imf startup
mkaz
parents:
497
diff
changeset
|
15 |
Source1: ibus-xinput |
659 | 16 |
Patch1: ibus-on-ss12.patch.diff |
17 |
Patch2: ibus-trigger.patch.diff |
|
18 |
Patch3: ibus-autostart.patch.diff |
|
19 |
Patch4: ibus-for-xkbc.patch.diff |
|
20 |
Patch5: ibus-panel-i18n.patch.diff |
|
694
aed1d741dbc7
Bug fix for 7060930 Menu names for input method/selector are not appropriate
mkaz
parents:
677
diff
changeset
|
21 |
Patch6: ibus-menu.patch.diff |
322 | 22 |
BuildRoot: %{_tmppath}/%{src_name}-%{version}-build |
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
23 |
SUNW_Copyright: %{src_name}.copyright |
644 | 24 |
IPS_Package_Name: system/input-method/ibus |
659 | 25 |
IPS_Component_Version: 1.3.9 |
644 | 26 |
Meta(info.classification): %{ipsclass_sys_i18n} |
699 | 27 |
Meta(pkg.description): Intelligent Input Bus Input Method Framework |
322 | 28 |
|
29 |
%include default-depend.inc |
|
30 |
Requires: SUNWibus-root |
|
31 |
Requires: SUNWgnome-panel |
|
32 |
Requires: SUNWPython26 |
|
644 | 33 |
Requires: library/python-2/python-dbus-26 |
34 |
Requires: library/python-2/python-gnome-libs-26 |
|
35 |
Requires: library/python-2/python-xdg-26 |
|
659 | 36 |
Requires: library/desktop/gobject/gobject-introspection |
704
a4910901d2e7
BugFix 7082200 to B174 Trusted Extension, The language panel and candidate window are not displayed in labeled zones
mkaz
parents:
699
diff
changeset
|
37 |
Requires: library/python-2/python-notify-26 |
322 | 38 |
BuildRequires: SUNWgnome-base-libs-devel |
39 |
BuildRequires: SUNWgnome-panel-devel |
|
40 |
BuildRequires: SUNWPython26-devel |
|
41 |
BuildRequires: SUNWdbus-python26-devel |
|
714
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
42 |
BuildRequires: library/python-2/pycairo-26 |
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
43 |
BuildRequires: library/python-2/pyorbit-26 |
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
44 |
BuildRequires: library/python-2/pygtksourceview2-26 |
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
45 |
BuildRequires: library/python-2/python-gnome-26 |
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
46 |
BuildRequires: library/python-2/pygobject-26 |
7e428d437ae9
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents:
707
diff
changeset
|
47 |
BuildRequires: library/python-2/pygtk2-26 |
659 | 48 |
BuildRequires: library/desktop/gobject/gobject-introspection |
322 | 49 |
|
50 |
%package root |
|
51 |
Summary: %{summary} (ROOT) |
|
52 |
SUNW_BaseDir: / |
|
53 |
%include default-depend.inc |
|
54 |
Requires: SUNWgnome-panel-root |
|
55 |
||
56 |
%package devel |
|
57 |
Summary: %{summary} - development files |
|
58 |
SUNW_BaseDir: %{_basedir} |
|
59 |
%include default-depend.inc |
|
60 |
||
61 |
%prep |
|
62 |
%setup -q -n %{src_name}-%{version} |
|
63 |
%patch1 -p1 |
|
615
a8c9e813f0fd
Removed old input method framework startup script to use new imf startup
mkaz
parents:
497
diff
changeset
|
64 |
%patch2 -p1 |
a8c9e813f0fd
Removed old input method framework startup script to use new imf startup
mkaz
parents:
497
diff
changeset
|
65 |
%patch3 -p1 |
659 | 66 |
%patch4 -p1 |
67 |
%patch5 -p1 |
|
694
aed1d741dbc7
Bug fix for 7060930 Menu names for input method/selector are not appropriate
mkaz
parents:
677
diff
changeset
|
68 |
%patch6 -p1 |
322 | 69 |
|
70 |
%ifarch amd64 sparcv9 |
|
71 |
cd .. |
|
72 |
rm -rf %{src_name}-%{version}-64 |
|
73 |
cp -pr %{src_name}-%{version} %{src_name}-%{version}-64 |
|
74 |
%endif |
|
75 |
||
76 |
%build |
|
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
77 |
GTK_BIN_VER=`pkg-config --variable=gtk_binary_version gtk+-2.0` |
322 | 78 |
export CXX="${CXX} -norunpath" |
79 |
export CFLAGS="%optflags" |
|
80 |
export CXXFLAGS="%cxx_optflags" |
|
81 |
export LDFLAGS="%_ldflags -lsocket" |
|
659 | 82 |
./configure --disable-static \ |
83 |
--enable-gtk2 \ |
|
84 |
--enable-xim \ |
|
85 |
--disable-gtk-doc \ |
|
86 |
--enable-introspection \ |
|
87 |
--prefix=/usr \ |
|
88 |
--sysconfdir=/etc \ |
|
89 |
--libdir=/usr/lib \ |
|
90 |
--libexecdir=/usr/lib/ibus |
|
640 | 91 |
|
92 |
# use system default libtool (depends on $PATH) |
|
93 |
cp `which libtool` . |
|
94 |
||
322 | 95 |
make |
96 |
||
97 |
%ifarch amd64 sparcv9 |
|
98 |
cd .. |
|
99 |
cd %{src_name}-%{version}-64 |
|
677
91b719ebc412
imf-selector.spec and ibus.spec: update requires & buildrequires
jenda
parents:
675
diff
changeset
|
100 |
export CXX="${CXX} -norunpath" |
322 | 101 |
export CFLAGS="%optflags64" |
102 |
export CXXFLAGS="%cxx_optflags64" |
|
103 |
export LDFLAGS="%_ldflags -lsocket" |
|
659 | 104 |
./configure --disable-static \ |
105 |
--enable-gtk2 \ |
|
106 |
--enable-xim \ |
|
107 |
--disable-gtk-doc \ |
|
108 |
--enable-introspection \ |
|
109 |
--prefix=%{_prefix}/%{_arch64} \ |
|
110 |
--bindir=%{_bindir}/%{_arch64} \ |
|
111 |
--libdir=%{_libdir}/%{_arch64} \ |
|
112 |
--libexecdir=%{_libdir}/ibus/%{_arch64} \ |
|
113 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
114 |
--with-gtk-im-module-dir=%{_libdir}/%{_arch64}/gtk-2.0/$GTK_BIN_VER/immodules |
640 | 115 |
|
116 |
# use system default libtool (depends on $PATH) |
|
117 |
cp `which libtool` . |
|
118 |
||
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
119 |
make |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
120 |
|
322 | 121 |
%endif |
122 |
||
123 |
%install |
|
124 |
rm -rf ${RPM_BUILD_ROOT} |
|
125 |
DESTDIR=${RPM_BUILD_ROOT} make install |
|
418 | 126 |
rm -f ${RPM_BUILD_ROOT}/usr/share/applications/ibus.desktop |
675 | 127 |
ginstall -D --mode=0755 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/imf.d/0010.ibus |
322 | 128 |
|
696
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
129 |
# move to vendor-packages |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
130 |
if [ -x $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages ]; then |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
131 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
132 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \ |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
133 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/ |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
134 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
135 |
fi |
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
136 |
|
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
137 |
|
322 | 138 |
%ifarch amd64 sparcv9 |
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
139 |
cd .. |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
140 |
cd %{src_name}-%{version}-64 |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
141 |
DESTDIR=${RPM_BUILD_ROOT} make install |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
142 |
rm -rf ${RPM_BUILD_ROOT}/etc/%{_arch64} |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
143 |
rm -rf ${RPM_BUILD_ROOT}/usr/%{_arch64} |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
144 |
rm -rf ${RPM_BUILD_ROOT}/usr/bin/%{_arch64} |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
145 |
rm -rf ${RPM_BUILD_ROOT}/usr/lib/%{_arch64}/pkgconfig |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
146 |
rm -rf ${RPM_BUILD_ROOT}/usr/lib/%{_arch64}/python* |
418 | 147 |
rm -f ${RPM_BUILD_ROOT}/usr/%{_arch64}/share/applications/ibus.desktop |
322 | 148 |
%endif |
149 |
||
150 |
find ${RPM_BUILD_ROOT} -name "*.a" -exec rm {} \; -print |
|
151 |
find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print |
|
152 |
||
707
dfbe6c035259
7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents:
704
diff
changeset
|
153 |
# removing CDDL from copies of source/text files delivered to the binary product |
dfbe6c035259
7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents:
704
diff
changeset
|
154 |
(cd ${RPM_BUILD_ROOT}; ggrep -rlF 'CDDL HEADER START' . 2>/dev/null|xargs perl -i -ne 'print unless /CDDL HEADER START/ .. /CDDL HEADER END/') |
dfbe6c035259
7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents:
704
diff
changeset
|
155 |
|
322 | 156 |
%post |
659 | 157 |
%include update-gtk-immodules.script |
322 | 158 |
|
159 |
%postun |
|
659 | 160 |
%include update-gtk-immodules.script |
322 | 161 |
|
162 |
%clean |
|
163 |
#rm -rf ${RPM_BUILD_ROOT} |
|
164 |
||
165 |
%files |
|
166 |
%defattr(-, root, bin) |
|
167 |
%{_bindir}/* |
|
168 |
%{_libdir}/lib*.so* |
|
169 |
%{_libdir}/gtk-2.0/* |
|
659 | 170 |
%{_libdir}/ibus/* |
696
1a27aeb5dea8
BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents:
694
diff
changeset
|
171 |
%{_libdir}/python*/vendor-packages/ibus/* |
659 | 172 |
%{_libdir}/girepository-*/* |
322 | 173 |
%dir %attr (0755, root, sys) %{_datadir} |
174 |
%attr (-, root, other) %{_datadir}/applications |
|
175 |
%attr (-, root, other) %{_datadir}/pixmaps |
|
176 |
%attr (-, root, other) %{_datadir}/locale |
|
469 | 177 |
%attr (-, root, other) %{_datadir}/icons |
322 | 178 |
%{_datadir}/ibus/* |
179 |
||
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
180 |
%ifarch amd64 sparcv9 |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
181 |
%{_libdir}/%{_arch64}/lib*.so* |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
182 |
%{_libdir}/%{_arch64}/gtk-2.0/* |
659 | 183 |
%{_libdir}/%{_arch64}/girepository-*/* |
328
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
184 |
%endif |
38ce3b884dfb
added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents:
325
diff
changeset
|
185 |
|
322 | 186 |
%files root |
187 |
%attr (0755, root, sys) %{_sysconfdir} |
|
188 |
||
189 |
%files devel |
|
190 |
%defattr(-, root, bin) |
|
191 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
192 |
%{_libdir}/pkgconfig/* |
|
193 |
%{_includedir}/* |
|
194 |
%dir %attr (0755, root, sys) %{_datadir} |
|
195 |
%{_datadir}/gtk-doc/html/ibus/* |
|
659 | 196 |
%{_datadir}/gir-*/* |
197 |
%{_datadir}/vala/* |