author | daniell |
Wed, 13 Oct 2010 16:43:58 +0000 | |
branch | opensolaris-2009-06 |
changeset 20159 | f18a6979f732 |
parent 14342 | e74a4a9aa10f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# # spec file for package SUNWgnome-im-client |
|
3 |
# |
|
12916 | 4 |
# includes module(s): pidgin, pidgin-otr, libotr |
9397 | 5 |
# |
11370 | 6 |
# Copyright 2008 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: rickju |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
9968 | 14 |
%use pidgin = pidgin.spec |
12916 | 15 |
%use libotr = libotr.spec |
9968 | 16 |
%use pidginotr = pidgin-otr.spec |
9397 | 17 |
|
18 |
Name: SUNWgnome-im-client |
|
19 |
Summary: GNOME multi-protocol instant messaging client |
|
20 |
Version: %{default_pkg_version} |
|
11205 | 21 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 22 |
SUNW_BaseDir: %{_basedir} |
11938 | 23 |
SUNW_Copyright: %{name}.copyright |
9397 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
25 |
||
26 |
%include default-depend.inc |
|
27 |
Requires: SUNWgnome-base-libs |
|
28 |
Requires: SUNWgnome-libs |
|
29 |
Requires: SUNWPython |
|
30 |
Requires: SUNWbash |
|
31 |
Requires: SUNWdbus |
|
32 |
Requires: SUNWevolution-data-server |
|
33 |
Requires: SUNWgnome-component |
|
34 |
Requires: SUNWgnome-libs |
|
35 |
Requires: SUNWgnutls |
|
36 |
Requires: SUNWlibms |
|
37 |
Requires: SUNWperl584core |
|
38 |
Requires: SUNWpostrun |
|
39 |
Requires: SUNWgnome-media |
|
11815 | 40 |
Requires: SUNWavahi-bridge-dsd |
12330 | 41 |
Requires: SUNWsqlite3 |
42 |
Requires: SUNWpr |
|
43 |
Requires: SUNWtls |
|
14300 | 44 |
Requires: SUNWgtkspell |
9397 | 45 |
BuildRequires: SUNWPython-devel |
46 |
BuildRequires: SUNWdbus-devel |
|
47 |
BuildRequires: SUNWevolution-data-server-devel |
|
48 |
BuildRequires: SUNWgnome-component-devel |
|
49 |
BuildRequires: SUNWgnome-libs-devel |
|
50 |
BuildRequires: SUNWgnutls-devel |
|
51 |
BuildRequires: SUNWgnome-base-libs-devel |
|
52 |
BuildRequires: SUNWgnome-libs-devel |
|
53 |
BuildRequires: SUNWgnome-media-devel |
|
11815 | 54 |
BuildRequires: SUNWavahi-bridge-dsd-devel |
12330 | 55 |
BuildRequires: SUNWsqlite3 |
56 |
BuildRequires: SUNWpr |
|
57 |
BuildRequires: SUNWtls |
|
14300 | 58 |
BuildRequires: SUNWgtkspell-devel |
9397 | 59 |
|
60 |
%package root |
|
61 |
Summary: %{summary} - / filesystem |
|
62 |
SUNW_BaseDir: / |
|
63 |
%include default-depend.inc |
|
64 |
Requires: SUNWpostrun-root |
|
65 |
Requires: SUNWgnome-config |
|
66 |
||
67 |
%package devel |
|
68 |
Summary: %{summary} - development files |
|
69 |
SUNW_BaseDir: %{_basedir} |
|
70 |
%include default-depend.inc |
|
71 |
Requires: %name |
|
72 |
Requires: SUNWgnome-base-libs |
|
73 |
||
74 |
%if %build_l10n |
|
75 |
%package l10n |
|
76 |
Summary: %{summary} - l10n files |
|
77 |
SUNW_BaseDir: %{_basedir} |
|
78 |
%include default-depend.inc |
|
79 |
Requires: %{name} |
|
80 |
%endif |
|
81 |
||
82 |
%prep |
|
83 |
rm -rf %name-%version |
|
84 |
mkdir %name-%version |
|
9968 | 85 |
%pidgin.prep -d %name-%version |
12916 | 86 |
%libotr.prep -d %name-%version |
9968 | 87 |
%pidginotr.prep -d %name-%version |
11205 | 88 |
cd %{_builddir}/%name-%version |
89 |
gzcat %SOURCE0 | tar xf - |
|
9397 | 90 |
|
91 |
%build |
|
14342 | 92 |
%{!?perl_installarchlib: %define perl_installarchlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} |
93 |
%{!?perl_installvendorlib: %define perl_installvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} |
|
11126
ae4488c40e2f
Correct commit (s/purple/libpurple), add %changelog entry and rework ChangeLog
dcarbery
parents:
11125
diff
changeset
|
94 |
export PKG_CONFIG_PATH=../pidgin-%{pidgin.version}/libpurple:../pidgin-%{pidgin.version}:%{_pkg_config_path} |
9397 | 95 |
export CFLAGS="%optflags -DHAVE_ALLOCA_H" |
96 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
97 |
export LDFLAGS="%_ldflags" |
|
9968 | 98 |
%pidgin.build -d %name-%version |
12916 | 99 |
%libotr.build -d %name-%version |
100 |
export ACLOCAL_FLAGS="-I %{_builddir}/%name-%version/libotr-%{libotr.version}" |
|
101 |
export CFLAGS="$CFLAGS -I %{_builddir}/%name-%version/libotr-%{libotr.version}/my_build_tmp" |
|
102 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
103 |
export LDFLAGS="$LDFLAGS -L%{_builddir}/%name-%version/libotr-%{libotr.version}/src/.libs -lotr" |
|
104 |
export LIBOTR_BLD_DIR=%{_builddir}/%name-%version/libotr-%{libotr.version} |
|
9968 | 105 |
%pidginotr.build -d %name-%version |
9397 | 106 |
|
107 |
%install |
|
9968 | 108 |
%pidgin.install -d %name-%version |
12916 | 109 |
%libotr.install -d %name-%version |
9968 | 110 |
%pidginotr.install -d %name-%version |
9397 | 111 |
|
12916 | 112 |
# Delete .a and .la files. |
113 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
114 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
115 |
rm $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la |
|
116 |
||
9397 | 117 |
%if %build_l10n |
118 |
%else |
|
119 |
# REMOVE l10n FILES |
|
120 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
121 |
%endif |
|
122 |
||
11205 | 123 |
# install man page |
124 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
125 |
cd %{_builddir}/%name-%version/sun-manpages |
|
126 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
127 |
||
9397 | 128 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
129 |
||
130 |
%clean |
|
131 |
rm -rf $RPM_BUILD_ROOT |
|
132 |
||
133 |
%post |
|
134 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
135 |
echo '/usr/bin/update-desktop-database' |
|
136 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
137 |
||
138 |
%postun |
|
139 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
140 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
141 |
echo '/usr/bin/update-desktop-database' |
|
142 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
143 |
||
144 |
%post root |
|
11370 | 145 |
%include gconf-install.script |
9397 | 146 |
|
147 |
%preun root |
|
148 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
149 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
150 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
151 |
echo ' exit 0'; |
|
152 |
echo '}'; |
|
153 |
echo 'umask 0022'; |
|
154 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
155 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
156 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
157 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
158 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
159 |
echo 'schemas="$SDIR/gaim.schemas"'; |
|
160 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
161 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
162 |
||
163 |
%files |
|
164 |
%defattr (-, root, bin) |
|
165 |
%dir %attr (0755, root, bin) %{_bindir} |
|
166 |
%{_bindir}/* |
|
167 |
%dir %attr (0755, root, bin) %{_libdir} |
|
168 |
%{_libdir}/*.so* |
|
9968 | 169 |
%{_libdir}/pidgin/*.so* |
170 |
%{_libdir}/purple-2/*.so* |
|
14342 | 171 |
%attr(755, root, bin) %{_libdir}/pidgin/perl/Pidgin.pm |
172 |
%attr(755, root, bin) %{_libdir}/purple-2/perl/Purple.pm |
|
173 |
%attr(755, root, bin) %{_libdir}/pidgin/perl/auto/Pidgin |
|
174 |
%attr(755, root, bin) %{_libdir}/purple-2/perl/auto/Purple |
|
175 |
#%attr(755, root, bin) %{perl_installarchlib}/perllocal.pod |
|
176 |
%dir %attr (0755, root, bin) %{perl_installvendorlib} |
|
9397 | 177 |
%dir %attr (0755, root, sys) %{_datadir} |
178 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
179 |
%{_datadir}/applications/* |
|
180 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
181 |
%{_datadir}/pixmaps/* |
|
182 |
%{_datadir}/sounds |
|
9972 | 183 |
%dir %attr (-, root, other) %{_datadir}/icons |
184 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor |
|
185 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 |
|
186 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps |
|
11300 | 187 |
%{_datadir}/icons/hicolor/16x16/apps/pidgin.* |
10361 | 188 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 |
189 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps |
|
11300 | 190 |
%{_datadir}/icons/hicolor/22x22/apps/pidgin.* |
9972 | 191 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 |
192 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps |
|
11300 | 193 |
%{_datadir}/icons/hicolor/24x24/apps/pidgin.* |
9972 | 194 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 |
195 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps |
|
11300 | 196 |
%{_datadir}/icons/hicolor/32x32/apps/pidgin.* |
9972 | 197 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 |
198 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps |
|
11300 | 199 |
%{_datadir}/icons/hicolor/48x48/apps/pidgin.* |
14342 | 200 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable |
201 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps |
|
202 |
%{_datadir}/icons/hicolor/scalable/apps/pidgin.* |
|
9397 | 203 |
%dir %attr(0755, root, bin) %{_mandir} |
204 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
12993 | 205 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
9397 | 206 |
%{_mandir}/man1/* |
12993 | 207 |
%{_mandir}/man3/* |
13657 | 208 |
%doc pidgin-%{pidgin.version}/COPYRIGHT |
209 |
%doc(bzip2) pidgin-%{pidgin.version}/COPYING |
|
210 |
%doc pidgin-%{pidgin.version}/ChangeLog |
|
211 |
%doc pidgin-%{pidgin.version}/README |
|
212 |
%doc(bzip2) pidgin-otr-%{pidginotr.version}/COPYING |
|
213 |
%doc pidgin-otr-%{pidginotr.version}/ChangeLog |
|
214 |
%doc pidgin-otr-%{pidginotr.version}/README |
|
215 |
%doc pidgin-otr-%{pidginotr.version}/NEWS |
|
216 |
%doc pidgin-otr-%{pidginotr.version}/AUTHORS |
|
217 |
%doc(bzip2) libotr-%{libotr.version}/COPYING |
|
218 |
%doc(bzip2) libotr-%{libotr.version}/COPYING.LIB |
|
219 |
%doc libotr-%{libotr.version}/ChangeLog |
|
220 |
%doc libotr-%{libotr.version}/README |
|
221 |
%doc libotr-%{libotr.version}/NEWS |
|
222 |
%doc libotr-%{libotr.version}/AUTHORS |
|
223 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 224 |
|
225 |
%files root |
|
9780 | 226 |
%defattr(-, root, sys) |
9397 | 227 |
%attr(0755, root, sys) %dir %{_sysconfdir} |
9968 | 228 |
%{_sysconfdir}/gconf/schemas/purple.schemas |
9397 | 229 |
|
230 |
%files devel |
|
231 |
%defattr (-, root, bin) |
|
232 |
%dir %attr (0755, root, bin) %{_libdir} |
|
233 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
234 |
%{_libdir}/pkgconfig/* |
|
235 |
%dir %attr (0755, root, bin) %{_includedir} |
|
9968 | 236 |
%{_includedir}/pidgin |
237 |
%{_includedir}/libpurple |
|
9397 | 238 |
%{_includedir}/libotr |
239 |
%dir %attr (0755, root, sys) %{_datadir} |
|
240 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
241 |
%{_datadir}/aclocal/* |
|
242 |
||
243 |
%if %build_l10n |
|
244 |
%files l10n |
|
245 |
%defattr (-, root, bin) |
|
246 |
%dir %attr (0755, root, sys) %{_datadir} |
|
247 |
%attr (-, root, other) %{_datadir}/locale |
|
248 |
%endif |
|
249 |
||
250 |
%changelog |
|
14342 | 251 |
* Thu Sep 24 2009 - [email protected] |
252 |
- Update %files for bump to pidgin 2.6.2 |
|
14300 | 253 |
* Thu Apr 16 2009 - [email protected] |
254 |
- Add build dependencies of spellcheck feature. |
|
12993 | 255 |
* Fri Aug 01 2008 - [email protected] |
256 |
- Correct %files: add in man3 entries |
|
12916 | 257 |
* Thu Jul 23 2008 - [email protected] |
258 |
- Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to |
|
259 |
track for ARC and Legal reviews. |
|
12330 | 260 |
* Wed May 21 2008 - [email protected] |
261 |
- Add Build/Requires SUNWsqlite3, SUNWpr and SUNWtls to fix #6703993. |
|
11815 | 262 |
* Fri Mar 07 2008 - [email protected] |
263 |
- add SUNWavahi-bridge-dsd dependency |
|
11370 | 264 |
* Thu Jan 3 2008 - [email protected] |
265 |
- use gconf-install.script instead of an inline script |
|
11300 | 266 |
* Thu Dec 06 2007 - [email protected] |
267 |
- %files changed to bump to pidgin 2.3.0 |
|
11205 | 268 |
* Tue Nov 16 2007 - [email protected] |
269 |
- Use SGML man page instead of the one from community |
|
11126
ae4488c40e2f
Correct commit (s/purple/libpurple), add %changelog entry and rework ChangeLog
dcarbery
parents:
11125
diff
changeset
|
270 |
* Tue Nov 06 2007 - [email protected] |
ae4488c40e2f
Correct commit (s/purple/libpurple), add %changelog entry and rework ChangeLog
dcarbery
parents:
11125
diff
changeset
|
271 |
- Add ../pidgin-%{pidgin.version}/libpurple to PKG_CONFIG_PATH so that |
ae4488c40e2f
Correct commit (s/purple/libpurple), add %changelog entry and rework ChangeLog
dcarbery
parents:
11125
diff
changeset
|
272 |
pidgin-otr can find the libpurple libraries during build. |
11105 | 273 |
* Fri Nov 02 2007 - [email protected] |
274 |
remove SUNWavahi-bridge-dsd dependency |
|
275 |
* Wed Oct 10 2007 - [email protected] |
|
10633 | 276 |
- Update Build/Requires after running check-deps.pl script. |
10569 | 277 |
* Fri Sep 28 2007 - [email protected] |
278 |
- delete some unnecessary env variables |
|
10361 | 279 |
* Wed Aug 22 2007 - [email protected] |
280 |
- Update %files for new pidgin tarball. |
|
9972 | 281 |
* Fri Jun 01 2007 - [email protected] |
282 |
- Set %attr for %{datadir}/icons dirs. |
|
9968 | 283 |
* Tue May 30 2007 - [email protected] |
284 |
- bump to pidgin 2.0.1 |
|
9780 | 285 |
* Tue Apr 24 2007 - [email protected] |
286 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 287 |
* Fri Feb 9 2007 - [email protected] |
288 |
- After a review, remove code that made unnecessary copy of $RPM_BUILD_ROOT |
|
289 |
before installing second module in this spec file. |
|
290 |
* Wed Feb 7 2007 - [email protected] |
|
291 |
- Fixed an install issue (copy $RPM_BUILD_ROOT before %gaimotr.install. |
|
292 |
* Mon Feb 5 2007 - [email protected] |
|
293 |
- Add Build/Requires SUNWgnome-media/-devel after check-deps.pl run. |
|
294 |
* Wed Jan 17 2007 - [email protected] |
|
295 |
- Add gaim-otr.spec. |
|
296 |
* Fri May 12 2006 - [email protected] |
|
297 |
- Updates for new tarball. Add 'root' package for the gaim.schemas file (and |
|
298 |
%post/%preun scripts too). Remove %{_datadir}/doc from %files as nothing is |
|
299 |
installed there now. |
|
300 |
* Mon Sep 04 2006 - [email protected] |
|
301 |
- New Manpage tarball |
|
302 |
* Fri Jul 14 2006 - [email protected] |
|
303 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
304 |
part of 6448317 |
|
305 |
* Thu Jun 29 2006 - [email protected] |
|
306 |
- update postrun scripts |
|
307 |
* Sun Jun 11 2006 - [email protected] |
|
308 |
- change group from other to bin/sys |
|
309 |
* Fri May 12 2006 - [email protected] |
|
310 |
- Small update to dependency list after check-deps.pl run. |
|
311 |
* Thu May 11 2006 - [email protected] |
|
312 |
- Move gaim-client-example to demo directory. |
|
313 |
* Thu May 11 2006 - [email protected] |
|
314 |
- Merge -share pkg(s) into the base pkg(s). |
|
315 |
* Wed May 10 2006 - [email protected] |
|
316 |
- Now package gaim-notifications-example demo program. |
|
317 |
* Mon Feb 20 2006 - [email protected] |
|
318 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
319 |
* Thu Feb 16 2006 - [email protected] |
|
320 |
- Update Build/Requires after running check-deps.pl script. |
|
321 |
* Wed Jan 18 2006 - [email protected] |
|
322 |
- Add devel files from 2.0.0beta1 tarball. |
|
323 |
* Sat Dec 3 2005 - [email protected] |
|
324 |
- add %post script that runs update-desktop-database |
|
325 |
* Tue Nov 29 2005 - [email protected] |
|
326 |
- remove javahelp stuff |
|
327 |
* Thu Sep 15 2005 - [email protected] |
|
328 |
- Define devel subpkg |
|
329 |
* Fri Nov 12 2004 - [email protected] |
|
330 |
- Added workaround fix for 6193354 |
|
331 |
* Wed Nov 3 2004 - [email protected] |
|
332 |
- Add BuildRequires of SUNWgnome-javahelp-convert to get |
|
333 |
javahelp-convert-install. |
|
334 |
* Tue Oct 05 2004 - [email protected] |
|
335 |
- Added localized help files to l10n %files section |
|
336 |
* Sat Oct 02 2004 - [email protected] |
|
337 |
- added %pkgbuild_postprocess |
|
338 |
* Thu Sep 23 2004 - [email protected] |
|
339 |
- Add BuildRequires of SUNWgnome-libs to get scrollkeeper-preinstall. |
|
340 |
* Mon Sep 06 2004 - [email protected] |
|
341 |
- Added javahelp to %files share |
|
342 |
* Fri Sep 03 2004 - [email protected] |
|
343 |
- Changes to support docs tarball added to gaim.spec. |
|
344 |
* Mon Aug 23 2004 - [email protected] |
|
345 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
346 |
* Mon Jul 12 2004 - [email protected] |
|
347 |
- Unset perms for /usr/share/pixmaps and /usr/share/applications. |
|
348 |
* Sat Jul 10 2004 - [email protected] |
|
349 |
- Set perms for /usr/share/pixmaps and /usr/share/applications. |
|
350 |
* Tue Jun 22 2004 - [email protected] |
|
351 |
- changed install location to /usr/lib and /usr/bin |
|
352 |
* Wed Jun 2 2004 - [email protected] |
|
353 |
- Added %{_datadir}/locale to install l10n messages |
|
354 |
* Wed Mar 24 2004 - [email protected] |
|
355 |
- Added SGML man page integration |
|
356 |
* Tue Mar 23 2004 - <[email protected]> |
|
357 |
- add -DHAVE_ALLOCA_H to CFLAGS |
|
358 |
* Fri Mar 05 2004 - <[email protected]> |
|
359 |
- define PERL5LIB |
|
360 |
* Wed Mar 03 2004 - <[email protected]> |
|
361 |
- remove unnecessary env vars |
|
362 |
- fix %files share |
|
363 |
* Mon Mar 01 2004 - <[email protected]> |
|
364 |
- set CFLAGS, LDFLAGS |