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