author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16421 | 4f0a764edf5b |
child 16444 | 21951569e37f |
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 |
# |
15556 | 6 |
# Copyright 2009 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 |
# |
|
16434 | 10 |
%define owner elaine |
9397 | 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 |
|
15650 | 27 |
Requires: SUNWgtk2 |
9397 | 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 |
|
15556 | 38 |
Requires: SUNWdesktop-cache |
9397 | 39 |
Requires: SUNWgnome-media |
11815 | 40 |
Requires: SUNWavahi-bridge-dsd |
12330 | 41 |
Requires: SUNWsqlite3 |
42 |
Requires: SUNWpr |
|
43 |
Requires: SUNWtls |
|
14481 | 44 |
Requires: SUNWgtkspell |
15556 | 45 |
Requires: %{name}-root |
15650 | 46 |
BuildRequires: SUNWgtk2-devel |
9397 | 47 |
BuildRequires: SUNWPython-devel |
48 |
BuildRequires: SUNWdbus-devel |
|
49 |
BuildRequires: SUNWevolution-data-server-devel |
|
50 |
BuildRequires: SUNWgnome-component-devel |
|
51 |
BuildRequires: SUNWgnome-libs-devel |
|
52 |
BuildRequires: SUNWgnutls-devel |
|
53 |
BuildRequires: SUNWgnome-libs-devel |
|
54 |
BuildRequires: SUNWgnome-media-devel |
|
11815 | 55 |
BuildRequires: SUNWavahi-bridge-dsd-devel |
12330 | 56 |
BuildRequires: SUNWsqlite3 |
57 |
BuildRequires: SUNWpr |
|
58 |
BuildRequires: SUNWtls |
|
15597 | 59 |
BuildRequires: SUNWgtkspell-devel |
9397 | 60 |
|
61 |
%package root |
|
62 |
Summary: %{summary} - / filesystem |
|
63 |
SUNW_BaseDir: / |
|
64 |
%include default-depend.inc |
|
65 |
||
66 |
%package devel |
|
67 |
Summary: %{summary} - development files |
|
68 |
SUNW_BaseDir: %{_basedir} |
|
69 |
%include default-depend.inc |
|
70 |
Requires: %name |
|
15650 | 71 |
Requires: SUNWgtk2 |
9397 | 72 |
|
73 |
%if %build_l10n |
|
74 |
%package l10n |
|
75 |
Summary: %{summary} - l10n files |
|
76 |
SUNW_BaseDir: %{_basedir} |
|
77 |
%include default-depend.inc |
|
78 |
Requires: %{name} |
|
79 |
%endif |
|
80 |
||
81 |
%prep |
|
82 |
rm -rf %name-%version |
|
83 |
mkdir %name-%version |
|
9968 | 84 |
%pidgin.prep -d %name-%version |
12916 | 85 |
%libotr.prep -d %name-%version |
9968 | 86 |
%pidginotr.prep -d %name-%version |
11205 | 87 |
cd %{_builddir}/%name-%version |
88 |
gzcat %SOURCE0 | tar xf - |
|
9397 | 89 |
|
90 |
%build |
|
16310 | 91 |
%{!?perl_installarchlib: %define perl_installarchlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} |
92 |
%{!?perl_installvendorlib: %define perl_installvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} |
|
16421
4f0a764edf5b
Add "../pidgin-%{pidgin.version}/pidgin" in PKG_CONFIG_PATH
davelam
parents:
16317
diff
changeset
|
93 |
export PKG_CONFIG_PATH=../pidgin-%{pidgin.version}/pidgin:../pidgin-%{pidgin.version}/libpurple:../pidgin-%{pidgin.version}:%{_pkg_config_path} |
9397 | 94 |
export CFLAGS="%optflags -DHAVE_ALLOCA_H" |
95 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
96 |
export LDFLAGS="%_ldflags" |
|
16310 | 97 |
echo BrianXX %{perl_installarchlib} |
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 |
|
15556 | 134 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 135 |
|
136 |
%postun |
|
15556 | 137 |
%restart_fmri desktop-mime-cache |
9397 | 138 |
|
139 |
%files |
|
140 |
%defattr (-, root, bin) |
|
141 |
%dir %attr (0755, root, bin) %{_bindir} |
|
142 |
%{_bindir}/* |
|
143 |
%dir %attr (0755, root, bin) %{_libdir} |
|
144 |
%{_libdir}/*.so* |
|
9968 | 145 |
%{_libdir}/pidgin/*.so* |
146 |
%{_libdir}/purple-2/*.so* |
|
16310 | 147 |
%attr(755, root, bin) %{_libdir}/pidgin/perl/Pidgin.pm |
148 |
%attr(755, root, bin) %{_libdir}/purple-2/perl/Purple.pm |
|
149 |
%attr(755, root, bin) %{_libdir}/pidgin/perl/auto/Pidgin |
|
150 |
%attr(755, root, bin) %{_libdir}/purple-2/perl/auto/Purple |
|
16317 | 151 |
#%attr(755, root, bin) %{perl_installarchlib}/perllocal.pod |
16310 | 152 |
%dir %attr (0755, root, bin) %{perl_installvendorlib} |
9397 | 153 |
%dir %attr (0755, root, sys) %{_datadir} |
154 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
155 |
%{_datadir}/applications/* |
|
156 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
157 |
%{_datadir}/pixmaps/* |
|
158 |
%{_datadir}/sounds |
|
9972 | 159 |
%dir %attr (-, root, other) %{_datadir}/icons |
160 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor |
|
161 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 |
|
162 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps |
|
11300 | 163 |
%{_datadir}/icons/hicolor/16x16/apps/pidgin.* |
10361 | 164 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 |
165 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps |
|
11300 | 166 |
%{_datadir}/icons/hicolor/22x22/apps/pidgin.* |
9972 | 167 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 |
168 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps |
|
11300 | 169 |
%{_datadir}/icons/hicolor/24x24/apps/pidgin.* |
9972 | 170 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 |
171 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps |
|
11300 | 172 |
%{_datadir}/icons/hicolor/32x32/apps/pidgin.* |
9972 | 173 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 |
174 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps |
|
11300 | 175 |
%{_datadir}/icons/hicolor/48x48/apps/pidgin.* |
16310 | 176 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable |
177 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps |
|
178 |
%{_datadir}/icons/hicolor/scalable/apps/pidgin.* |
|
9397 | 179 |
%dir %attr(0755, root, bin) %{_mandir} |
180 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
12993 | 181 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
9397 | 182 |
%{_mandir}/man1/* |
12993 | 183 |
%{_mandir}/man3/* |
13657 | 184 |
%doc pidgin-%{pidgin.version}/COPYRIGHT |
185 |
%doc(bzip2) pidgin-%{pidgin.version}/COPYING |
|
186 |
%doc pidgin-%{pidgin.version}/ChangeLog |
|
187 |
%doc pidgin-%{pidgin.version}/README |
|
188 |
%doc(bzip2) pidgin-otr-%{pidginotr.version}/COPYING |
|
189 |
%doc pidgin-otr-%{pidginotr.version}/ChangeLog |
|
190 |
%doc pidgin-otr-%{pidginotr.version}/README |
|
191 |
%doc pidgin-otr-%{pidginotr.version}/NEWS |
|
192 |
%doc pidgin-otr-%{pidginotr.version}/AUTHORS |
|
193 |
%doc(bzip2) libotr-%{libotr.version}/COPYING |
|
194 |
%doc(bzip2) libotr-%{libotr.version}/COPYING.LIB |
|
195 |
%doc libotr-%{libotr.version}/ChangeLog |
|
196 |
%doc libotr-%{libotr.version}/README |
|
197 |
%doc libotr-%{libotr.version}/NEWS |
|
198 |
%doc libotr-%{libotr.version}/AUTHORS |
|
199 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 200 |
|
201 |
%files root |
|
9780 | 202 |
%defattr(-, root, sys) |
9397 | 203 |
%attr(0755, root, sys) %dir %{_sysconfdir} |
9968 | 204 |
%{_sysconfdir}/gconf/schemas/purple.schemas |
9397 | 205 |
|
206 |
%files devel |
|
207 |
%defattr (-, root, bin) |
|
208 |
%dir %attr (0755, root, bin) %{_libdir} |
|
209 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
210 |
%{_libdir}/pkgconfig/* |
|
211 |
%dir %attr (0755, root, bin) %{_includedir} |
|
9968 | 212 |
%{_includedir}/pidgin |
213 |
%{_includedir}/libpurple |
|
9397 | 214 |
%{_includedir}/libotr |
215 |
%dir %attr (0755, root, sys) %{_datadir} |
|
216 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
217 |
%{_datadir}/aclocal/* |
|
218 |
||
219 |
%if %build_l10n |
|
220 |
%files l10n |
|
221 |
%defattr (-, root, bin) |
|
222 |
%dir %attr (0755, root, sys) %{_datadir} |
|
223 |
%attr (-, root, other) %{_datadir}/locale |
|
224 |
%endif |
|
225 |
||
226 |
%changelog |
|
16421
4f0a764edf5b
Add "../pidgin-%{pidgin.version}/pidgin" in PKG_CONFIG_PATH
davelam
parents:
16317
diff
changeset
|
227 |
* Mon Aug 31 2009 - [email protected] |
4f0a764edf5b
Add "../pidgin-%{pidgin.version}/pidgin" in PKG_CONFIG_PATH
davelam
parents:
16317
diff
changeset
|
228 |
- Add "../pidgin-%{pidgin.version}/pidgin" in PKG_CONFIG_PATH |
15597 | 229 |
* Fri Apr 10 2009 - [email protected] |
230 |
- correct gtkspell-devel build dependency. |
|
15556 | 231 |
* Fri Apr 3 2009 - [email protected] |
232 |
- use desktop-cache instead of postrun |
|
15353 | 233 |
* Wed Mar 11 2009 - [email protected] |
234 |
- Change ownership to elaine. |
|
12993 | 235 |
* Fri Aug 01 2008 - [email protected] |
236 |
- Correct %files: add in man3 entries |
|
12916 | 237 |
* Thu Jul 23 2008 - [email protected] |
238 |
- Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to |
|
239 |
track for ARC and Legal reviews. |
|
12330 | 240 |
* Wed May 21 2008 - [email protected] |
241 |
- Add Build/Requires SUNWsqlite3, SUNWpr and SUNWtls to fix #6703993. |
|
11815 | 242 |
* Fri Mar 07 2008 - [email protected] |
243 |
- add SUNWavahi-bridge-dsd dependency |
|
11370 | 244 |
* Thu Jan 3 2008 - [email protected] |
245 |
- use gconf-install.script instead of an inline script |
|
11300 | 246 |
* Thu Dec 06 2007 - [email protected] |
247 |
- %files changed to bump to pidgin 2.3.0 |
|
11205 | 248 |
* Tue Nov 16 2007 - [email protected] |
249 |
- 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
|
250 |
* Tue Nov 06 2007 - [email protected] |
ae4488c40e2f
Correct commit (s/purple/libpurple), add %changelog entry and rework ChangeLog
dcarbery
parents:
11125
diff
changeset
|
251 |
- 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
|
252 |
pidgin-otr can find the libpurple libraries during build. |
11105 | 253 |
* Fri Nov 02 2007 - [email protected] |
254 |
remove SUNWavahi-bridge-dsd dependency |
|
255 |
* Wed Oct 10 2007 - [email protected] |
|
10633 | 256 |
- Update Build/Requires after running check-deps.pl script. |
10569 | 257 |
* Fri Sep 28 2007 - [email protected] |
258 |
- delete some unnecessary env variables |
|
10361 | 259 |
* Wed Aug 22 2007 - [email protected] |
260 |
- Update %files for new pidgin tarball. |
|
9972 | 261 |
* Fri Jun 01 2007 - [email protected] |
262 |
- Set %attr for %{datadir}/icons dirs. |
|
9968 | 263 |
* Tue May 30 2007 - [email protected] |
264 |
- bump to pidgin 2.0.1 |
|
9780 | 265 |
* Tue Apr 24 2007 - [email protected] |
266 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 267 |
* Fri Feb 9 2007 - [email protected] |
268 |
- After a review, remove code that made unnecessary copy of $RPM_BUILD_ROOT |
|
269 |
before installing second module in this spec file. |
|
270 |
* Wed Feb 7 2007 - [email protected] |
|
271 |
- Fixed an install issue (copy $RPM_BUILD_ROOT before %gaimotr.install. |
|
272 |
* Mon Feb 5 2007 - [email protected] |
|
273 |
- Add Build/Requires SUNWgnome-media/-devel after check-deps.pl run. |
|
274 |
* Wed Jan 17 2007 - [email protected] |
|
275 |
- Add gaim-otr.spec. |
|
276 |
* Fri May 12 2006 - [email protected] |
|
277 |
- Updates for new tarball. Add 'root' package for the gaim.schemas file (and |
|
278 |
%post/%preun scripts too). Remove %{_datadir}/doc from %files as nothing is |
|
279 |
installed there now. |
|
280 |
* Mon Sep 04 2006 - [email protected] |
|
281 |
- New Manpage tarball |
|
282 |
* Fri Jul 14 2006 - [email protected] |
|
283 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
284 |
part of 6448317 |
|
285 |
* Thu Jun 29 2006 - [email protected] |
|
286 |
- update postrun scripts |
|
287 |
* Sun Jun 11 2006 - [email protected] |
|
288 |
- change group from other to bin/sys |
|
289 |
* Fri May 12 2006 - [email protected] |
|
290 |
- Small update to dependency list after check-deps.pl run. |
|
291 |
* Thu May 11 2006 - [email protected] |
|
292 |
- Move gaim-client-example to demo directory. |
|
293 |
* Thu May 11 2006 - [email protected] |
|
294 |
- Merge -share pkg(s) into the base pkg(s). |
|
295 |
* Wed May 10 2006 - [email protected] |
|
296 |
- Now package gaim-notifications-example demo program. |
|
297 |
* Mon Feb 20 2006 - [email protected] |
|
298 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
299 |
* Thu Feb 16 2006 - [email protected] |
|
300 |
- Update Build/Requires after running check-deps.pl script. |
|
301 |
* Wed Jan 18 2006 - [email protected] |
|
302 |
- Add devel files from 2.0.0beta1 tarball. |
|
303 |
* Sat Dec 3 2005 - [email protected] |
|
304 |
- add %post script that runs update-desktop-database |
|
305 |
* Tue Nov 29 2005 - [email protected] |
|
306 |
- remove javahelp stuff |
|
307 |
* Thu Sep 15 2005 - [email protected] |
|
308 |
- Define devel subpkg |
|
309 |
* Fri Nov 12 2004 - [email protected] |
|
310 |
- Added workaround fix for 6193354 |
|
311 |
* Wed Nov 3 2004 - [email protected] |
|
312 |
- Add BuildRequires of SUNWgnome-javahelp-convert to get |
|
313 |
javahelp-convert-install. |
|
314 |
* Tue Oct 05 2004 - [email protected] |
|
315 |
- Added localized help files to l10n %files section |
|
316 |
* Sat Oct 02 2004 - [email protected] |
|
317 |
- added %pkgbuild_postprocess |
|
318 |
* Thu Sep 23 2004 - [email protected] |
|
319 |
- Add BuildRequires of SUNWgnome-libs to get scrollkeeper-preinstall. |
|
320 |
* Mon Sep 06 2004 - [email protected] |
|
321 |
- Added javahelp to %files share |
|
322 |
* Fri Sep 03 2004 - [email protected] |
|
323 |
- Changes to support docs tarball added to gaim.spec. |
|
324 |
* Mon Aug 23 2004 - [email protected] |
|
325 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
326 |
* Mon Jul 12 2004 - [email protected] |
|
327 |
- Unset perms for /usr/share/pixmaps and /usr/share/applications. |
|
328 |
* Sat Jul 10 2004 - [email protected] |
|
329 |
- Set perms for /usr/share/pixmaps and /usr/share/applications. |
|
330 |
* Tue Jun 22 2004 - [email protected] |
|
331 |
- changed install location to /usr/lib and /usr/bin |
|
332 |
* Wed Jun 2 2004 - [email protected] |
|
333 |
- Added %{_datadir}/locale to install l10n messages |
|
334 |
* Wed Mar 24 2004 - [email protected] |
|
335 |
- Added SGML man page integration |
|
336 |
* Tue Mar 23 2004 - <[email protected]> |
|
337 |
- add -DHAVE_ALLOCA_H to CFLAGS |
|
338 |
* Fri Mar 05 2004 - <[email protected]> |
|
339 |
- define PERL5LIB |
|
340 |
* Wed Mar 03 2004 - <[email protected]> |
|
341 |
- remove unnecessary env vars |
|
342 |
- fix %files share |
|
343 |
* Mon Mar 01 2004 - <[email protected]> |
|
344 |
- set CFLAGS, LDFLAGS |
|
15650 | 345 |