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