author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 15650 | dbcf7e3715dd |
child 16960 | 6f34f03c7d11 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-print |
|
3 |
# |
|
4 |
# includes module(s): libgnomeprint, libgnomeprintui |
|
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 gheet |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use gprint = libgnomeprint.spec |
|
15 |
%use gprintui = libgnomeprintui.spec |
|
16 |
%use printman = printman.spec |
|
17 |
||
11390 | 18 |
# NOTE: If the version is bumped the new tarball must be uploaded to the |
19 |
# Sun Download Center. Contact GNOME RE for assistance. |
|
9397 | 20 |
%define g20_version sun-1.116.1 |
21 |
||
22 |
Name: SUNWgnome-print |
|
23 |
Summary: GNOME printing technology |
|
24 |
Version: %{default_pkg_version} |
|
25 |
Source: %{name}-manpages-0.1.tar.gz |
|
26 |
Source1: http://dlc.sun.com/osol/jds/downloads/extras/libgnomeprint-%{g20_version}.tar.bz2 |
|
12835 | 27 |
# owner:davelam date:2008-05-14 type:bug bugzilla:532100 |
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
28 |
Patch1: libgnomeprint-sun-01-add-libm.diff |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
29 |
|
9397 | 30 |
Source2: http://dlc.sun.com/osol/jds/downloads/extras/libgnomeprintui-%{g20_version}.tar.bz2 |
12031 | 31 |
%if %build_l10n |
32 |
Source3: l10n-configure.sh |
|
33 |
%endif |
|
9397 | 34 |
SUNW_BaseDir: %{_basedir} |
11996 | 35 |
SUNW_Copyright: %{name}.copyright |
9397 | 36 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
37 |
%include default-depend.inc |
|
15650 | 38 |
Requires: SUNWlibgnomecanvas |
9397 | 39 |
Requires: SUNWgnome-print-root |
40 |
Requires: SUNWgnome-libs |
|
41 |
Requires: SUNWperl584usr |
|
42 |
Requires: SUNWbzip |
|
43 |
Requires: SUNWzlib |
|
44 |
Requires: SUNWlxml |
|
45 |
Requires: SUNWscplp |
|
46 |
Requires: SUNWlibms |
|
47 |
Requires: SUNWfontconfig |
|
48 |
Requires: SUNWfreetype2 |
|
49 |
Requires: SUNWgnome-component |
|
50 |
Requires: SUNWgnome-config |
|
51 |
Requires: SUNWgnome-vfs |
|
52 |
Requires: SUNWlibms |
|
53 |
Requires: SUNWlibpopt |
|
54 |
Requires: SUNWpapi |
|
15556 | 55 |
Requires: SUNWdesktop-cache |
15650 | 56 |
BuildRequires: SUNWlibgnomecanvas-devel |
9397 | 57 |
BuildRequires: SUNWgnome-component-devel |
58 |
BuildRequires: SUNWgnome-config-devel |
|
59 |
BuildRequires: SUNWgnome-vfs-devel |
|
60 |
BuildRequires: SUNWlibpopt-devel |
|
61 |
BuildRequires: SUNWgnome-themes-devel |
|
62 |
BuildRequires: SUNWgnome-libs-devel |
|
63 |
BuildRequires: SUNWpapi |
|
64 |
||
65 |
%package root |
|
66 |
Summary: %{summary} - / filesystem |
|
67 |
SUNW_BaseDir: / |
|
68 |
%include default-depend.inc |
|
69 |
||
70 |
%package devel |
|
71 |
Summary: %{summary} - development files |
|
72 |
SUNW_BaseDir: %{_basedir} |
|
73 |
Requires: SUNWgnome-print |
|
74 |
%include default-depend.inc |
|
75 |
||
76 |
%if %build_l10n |
|
77 |
%package l10n |
|
78 |
Summary: %{summary} - l10n files |
|
79 |
SUNW_BaseDir: %{_basedir} |
|
80 |
%include default-depend.inc |
|
81 |
Requires: %{name} |
|
82 |
%endif |
|
83 |
||
84 |
%prep |
|
85 |
rm -rf %name-%version |
|
86 |
mkdir %name-%version |
|
87 |
%gprint.prep -d %name-%version |
|
88 |
%gprintui.prep -d %name-%version |
|
89 |
%printman.prep -d %name-%version |
|
90 |
||
91 |
cd %{_builddir}/%name-%version |
|
92 |
gzcat %SOURCE0 | tar xf - |
|
93 |
bzcat %SOURCE1 | tar xf - |
|
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
94 |
cd libgnomeprint-%{g20_version} |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
95 |
%patch1 -p1 |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
96 |
cd .. |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
97 |
|
9397 | 98 |
bzcat %SOURCE2 | tar xf - |
99 |
||
100 |
#FIXME - hack needed because subdir gpa does not exist in libgnomeprint |
|
101 |
cd libgnomeprint-%{gprint.version}/libgnomeprint |
|
102 |
ln -s . private |
|
103 |
cd ../../libgnomeprintui-%{gprintui.version} |
|
104 |
mkdir libgnomeprint |
|
105 |
ln -s ../../libgnomeprint-%{gprint.version}/libgnomeprint/gpa libgnomeprint/private |
|
106 |
||
107 |
%build |
|
108 |
export PKG_CONFIG_PATH=../libgnomeprint-%{gprint.version}/libgnomeprint:%{_pkg_config_path} |
|
12728 | 109 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib" |
9397 | 110 |
export CFLAGS="%optflags" |
111 |
||
112 |
%gprint.build -d %name-%version |
|
113 |
%gprintui.build -d %name-%version |
|
114 |
%printman.build -d %name-%version |
|
115 |
||
116 |
cd %{_builddir}/%name-%version |
|
117 |
||
118 |
export PKG_CONFIG_PATH=../libgnomeprint-%{g20_version}/libgnomeprint:%{_pkg_config_path} |
|
119 |
cd libgnomeprint-%{g20_version} |
|
120 |
libtoolize --force |
|
121 |
aclocal $ACLOCAL_FLAGS |
|
122 |
intltoolize --copy --force --automake |
|
12031 | 123 |
|
124 |
%if %build_l10n |
|
125 |
bash -x %SOURCE3 --enable-copyright |
|
126 |
%endif |
|
127 |
||
9397 | 128 |
aclocal $ACLOCAL_FLAGS |
129 |
autoheader |
|
130 |
automake -a -c -f |
|
131 |
autoconf |
|
132 |
./configure --prefix=%{_prefix} \ |
|
133 |
--sysconfdir=%{_sysconfdir} |
|
134 |
make |
|
135 |
cd .. |
|
136 |
||
137 |
pwd |
|
138 |
||
139 |
cd libgnomeprintui-%{g20_version} |
|
140 |
libtoolize --force |
|
141 |
aclocal $ACLOCAL_FLAGS |
|
142 |
autoheader |
|
143 |
automake -a -c -f |
|
144 |
autoconf |
|
145 |
./configure --prefix=%{_prefix} \ |
|
146 |
--sysconfdir=%{_sysconfdir} |
|
147 |
make |
|
148 |
||
149 |
%install |
|
150 |
cd %{_builddir}/%name-%version |
|
151 |
cd libgnomeprint-%{g20_version} |
|
152 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
153 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
154 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
155 |
cd .. |
|
156 |
||
157 |
cd libgnomeprintui-%{g20_version} |
|
158 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
159 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
160 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
161 |
cd .. |
|
162 |
||
163 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/fonts |
|
164 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc |
|
165 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/man |
|
166 |
||
167 |
cd %{_builddir} |
|
168 |
%gprint.install -d %name-%version |
|
169 |
%gprintui.install -d %name-%version |
|
170 |
%printman.install -d %name-%version |
|
171 |
||
172 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
173 |
cd %{_builddir}/%name-%version/sun-manpages |
|
174 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
175 |
||
176 |
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-print-2.0/*/lib*a |
|
177 |
||
178 |
%if %build_l10n |
|
179 |
%else |
|
180 |
# REMOVE l10n FILES |
|
181 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
182 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
183 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/printman/gnome-print-manager-[a-z]*.omf |
|
184 |
%endif |
|
185 |
||
186 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
187 |
||
188 |
%clean |
|
189 |
rm -rf $RPM_BUILD_ROOT |
|
190 |
||
191 |
%post |
|
15556 | 192 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 193 |
|
194 |
%postun |
|
15556 | 195 |
%restart_fmri desktop-mime-cache |
9397 | 196 |
|
197 |
%files |
|
13549 | 198 |
%doc libgnomeprint-%{gprint.version}/AUTHORS |
199 |
%doc libgnomeprint-%{gprint.version}/README |
|
200 |
%doc(bzip2) libgnomeprint-%{gprint.version}/COPYING.LIB |
|
201 |
%doc(bzip2) libgnomeprint-%{gprint.version}/ChangeLog |
|
202 |
%doc libgnomeprintui-%{gprintui.version}/AUTHORS |
|
203 |
%doc libgnomeprintui-%{gprintui.version}/README |
|
204 |
%doc(bzip2) libgnomeprintui-%{gprintui.version}/COPYING.LIB |
|
205 |
%doc(bzip2) libgnomeprintui-%{gprintui.version}/ChangeLog |
|
206 |
%doc printman-%{printman.version}/AUTHORS |
|
207 |
%doc printman-%{printman.version}/README |
|
208 |
%doc(bzip2) printman-%{printman.version}/COPYING |
|
209 |
%doc(bzip2) printman-%{printman.version}/ChangeLog |
|
210 |
%doc libgnomeprint-%{g20_version}/AUTHORS |
|
211 |
%doc libgnomeprint-%{g20_version}/README |
|
212 |
%doc(bzip2) libgnomeprint-%{g20_version}/COPYING.LIB |
|
213 |
%doc(bzip2) libgnomeprint-%{g20_version}/ChangeLog |
|
214 |
%doc libgnomeprintui-%{g20_version}/AUTHORS |
|
215 |
%doc libgnomeprintui-%{g20_version}/README |
|
216 |
%doc(bzip2) libgnomeprintui-%{g20_version}/COPYING.LIB |
|
217 |
%doc(bzip2) libgnomeprintui-%{g20_version}/ChangeLog |
|
218 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9780 | 219 |
%defattr (-, root, bin) |
9397 | 220 |
%dir %attr (0755, root, bin) %{_libdir} |
221 |
%{_libdir}/libgnomeprint/*/modules/transports/*.so |
|
222 |
%{_libdir}/libgnomeprint/*/modules/*.so* |
|
223 |
%{_libdir}/libgnomeprint/*/modules/filters/*.so |
|
224 |
%{_libdir}/lib*.so.* |
|
225 |
%{_libdir}/gnome-print-2.0/*/lib*.so* |
|
226 |
%dir %attr (0755, root, bin) %{_bindir} |
|
227 |
%{_bindir}/gnome-printinfo |
|
228 |
%{_bindir}/libgnomeprint-2.0-font-install |
|
229 |
%dir %attr (0755, root, sys) %{_datadir} |
|
13039 | 230 |
#%dir %attr (0755, root, other) %{_datadir}/applications |
231 |
#%{_datadir}/applications/* |
|
9397 | 232 |
%{_datadir}/libgnomeprint |
233 |
%{_datadir}/gnome-print-2.0 |
|
234 |
%{_datadir}/libgnomeprint-2.0 |
|
235 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
236 |
%{_datadir}/gnome/help/gnome-printinfo/C/ |
|
237 |
%{_datadir}/omf/printman/gnome-print-manager-C.omf |
|
238 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
239 |
%{_datadir}/pixmaps/* |
|
240 |
%{_datadir}/libgnomeprintui |
|
241 |
||
242 |
%files root |
|
9780 | 243 |
%defattr (-, root, sys) |
9397 | 244 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
245 |
%{_sysconfdir}/gconf/schemas/gnome-print-manager.schemas |
|
246 |
%{_sysconfdir}/gconf/schemas/gnome-print.schemas |
|
247 |
||
248 |
%files devel |
|
249 |
%defattr (-, root, bin) |
|
250 |
%dir %attr (0755, root, bin) %{_includedir} |
|
251 |
%{_includedir}/* |
|
252 |
%dir %attr (0755, root, bin) %{_libdir} |
|
253 |
%{_libdir}/*.so |
|
254 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
255 |
%{_libdir}/pkgconfig/* |
|
256 |
%dir %attr (0755, root, sys) %{_datadir} |
|
257 |
%{_datadir}/gtk-doc |
|
258 |
%dir %attr(0755, root, bin) %{_mandir} |
|
259 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
260 |
%{_mandir}/*/* |
|
261 |
||
262 |
%if %build_l10n |
|
263 |
%files l10n |
|
264 |
%defattr (-, root, bin) |
|
265 |
%dir %attr (0755, root, sys) %{_datadir} |
|
266 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
267 |
%attr (-, root, other) %{_datadir}/locale |
|
268 |
%{_datadir}/gnome/help/*/[a-z]* |
|
269 |
%{_datadir}/omf/*/gnome-print-manager-[a-z]*.omf |
|
270 |
%endif |
|
271 |
||
272 |
%changelog |
|
15556 | 273 |
* Fri Apr 3 2009 - [email protected] |
274 |
- use desktop-cache instead of postrun |
|
12728 | 275 |
* Tue Jun 24 2008 - [email protected] |
276 |
- Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430. |
|
12583 | 277 |
* Wed Jun 04 2008 - [email protected] |
278 |
- Add "-lgailutil" to LIBS so that libgailutil is linked in when libgnomecanvas |
|
279 |
is linked. libgnomecanvas.so includes some gail functions. |
|
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
280 |
* Wed May 14 2008 - [email protected] |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
281 |
- Add patch libgnomeprint-sun-01-add-libm.diff to fix build error |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12031
diff
changeset
|
282 |
* Th Jan 3 2008 - [email protected] |
11370 | 283 |
- use gconf-install.script instead of an inline script |
10562 | 284 |
* Thu Sep 27 2007 - [email protected] |
285 |
- delete some unnecessary env variables |
|
9780 | 286 |
* Tue Apr 24 2007 - [email protected] |
287 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 288 |
* Mon Sep 04 2006 - [email protected] |
289 |
- New Manpage tarball |
|
290 |
* Fri Jul 14 2006 - [email protected] |
|
291 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
292 |
part of 6448317 |
|
293 |
* Thu Jun 29 2006 - [email protected] |
|
294 |
- update postrun scripts |
|
295 |
* Thu Jun 29 2006 - [email protected] |
|
296 |
- update %post/%preun gconf scripts |
|
297 |
* Sun Jun 11 2006 - [email protected] |
|
298 |
- change group from other to bin/sys |
|
299 |
* Wed May 31 2006 - [email protected] |
|
300 |
- use post/preun scripts to install schemas into the merged gconf files |
|
301 |
* Mon May 15 2006 - [email protected] |
|
302 |
- Change omf ref in l10n package to avoid picking up C locale file. |
|
303 |
* Wed May 10 2006 - [email protected] |
|
304 |
- merge -share pkg(s) into the base pkg(s) |
|
305 |
* Mon Feb 20 2006 - [email protected] |
|
306 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
307 |
* Fri Feb 17 2006 - [email protected] |
|
308 |
- Update Build/Requires after running check-deps.pl script. |
|
309 |
* Mon Feb 13 2006 - [email protected] |
|
310 |
- Add autofoo to process intltool stuff. |
|
311 |
* Sat Dec 3 2005 - [email protected] |
|
312 |
- add %post script that runs update-desktop-database |
|
313 |
* Tue Nov 29 2005 - [email protected] |
|
314 |
- remove javahelp stuff |
|
315 |
* Wed Nov 09 2005 - [email protected] |
|
316 |
- Fix share package - add applications dir, remove capplets dir. |
|
317 |
* Fri Oct 28 2005 - [email protected] |
|
318 |
- Fix removal of l10n files for non-l10n build. |
|
319 |
* Tue Sep 20 2005 - <[email protected]> |
|
320 |
- add unpackaged files to %files |
|
321 |
* Fri Sep 09 2005 - <[email protected]> |
|
322 |
- remove unpackaged files or add to %files |
|
323 |
* Thu May 19 2005 - [email protected] |
|
324 |
- Update to 2.10, add needed calls to libtoolize, aclocal, etc for |
|
325 |
building the gnome 2.0 version of libgnomeprintui. |
|
326 |
* Tue Dec 14 2004 - [email protected] |
|
327 |
- Remove $(datadir)/fonts and $(datadir)/gnome-print since they've been |
|
328 |
removed from the original libgnomeprint.spec file. |
|
329 |
* Sat Nov 27 2004 - [email protected] |
|
330 |
- integrated the sun-gnome 2.0 versions of libgnomeprint and libgnomeprintui |
|
331 |
for backward compatibility, fixes 6196674 |
|
332 |
* Wed Oct 13 2004 - [email protected] |
|
333 |
- added root subpkg |
|
334 |
* Mon Oct 04 2004 - [email protected] |
|
335 |
- Added javahelp in %file section |
|
336 |
* Sat Oct 02 2004 - [email protected] |
|
337 |
- added %pkgbuild_postprocess |
|
338 |
* Thu Sep 09 2004 - [email protected] |
|
339 |
- Added libgnomeprint, libgnomeprintui manpages |
|
340 |
* Wed Aug 25 2004 - [email protected] |
|
341 |
- Install help files in gnome-printinfo/ instead of gnome-print-manager/ |
|
342 |
Also install help files under javahelp/ |
|
343 |
* Mon Aug 23 2004 - [email protected] |
|
344 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
345 |
* Tue Aug 03 2004 [email protected] |
|
346 |
- Add printman |
|
347 |
* Sat Jun 26 2004 [email protected] |
|
348 |
- Changed install location to /usr/... |
|
349 |
* Wed Jun 02 2004 - [email protected] |
|
350 |
- Add PAPI support |
|
351 |
* Wed Jun 2 2004 - [email protected] |
|
352 |
- Added %{_datadir}/locale to install l10n messages |
|
353 |
* Sun Apr 04 2004 - [email protected] |
|
354 |
- added SUNWgnome-themes build time dependency (for gnome-icon-themes) |
|
355 |
* Fri Feb 27 2004 - <[email protected]> |
|
356 |
- add -R%{_libdir} to LDFLAGS |
|
15650 | 357 |