author | hawklu |
Fri, 18 Jul 2008 08:53:12 +0000 | |
branch | gnome-2-22 |
changeset 12476 | 3a21fc945607 |
parent 12385 | 134271d6a7c1 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-help-viewer |
|
3 |
# |
|
10347 | 4 |
# includes module(s): yelp |
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: mattman |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use yelp = yelp.spec |
|
15 |
||
16 |
Name: SUNWgnome-help-viewer |
|
17 |
Summary: GNOME help system |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11958
9a5520e3cc7a
* SUNWgnome-pdf-viewer.spec : Add Copyright to preamble
mattman
parents:
11510
diff
changeset
|
21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
%include default-depend.inc |
|
24 |
Requires: SUNWgnome-libs |
|
25 |
Requires: SUNWgnome-vfs |
|
26 |
Requires: SUNWgnome-component |
|
27 |
Requires: SUNWgnome-base-libs |
|
28 |
Requires: SUNWgnome-config |
|
29 |
Requires: SUNWlxml |
|
30 |
Requires: SUNWlxsl |
|
12317 | 31 |
Requires: SUNWfirefox |
9397 | 32 |
Requires: SUNWbzip |
33 |
Requires: SUNWgnome-print |
|
34 |
Requires: SUNWlibC |
|
35 |
Requires: SUNWlibpopt |
|
36 |
Requires: SUNWzlib |
|
37 |
Requires: SUNWpostrun |
|
38 |
BuildRequires: SUNWgnome-print-devel |
|
39 |
BuildRequires: SUNWlibpopt-devel |
|
12317 | 40 |
BuildRequires: SUNWfirefox-devel |
9397 | 41 |
BuildRequires: SUNWgnome-print-devel |
42 |
BuildRequires: SUNWgnome-vfs-devel |
|
43 |
BuildRequires: SUNWgnome-component-devel |
|
44 |
BuildRequires: SUNWgnome-libs-devel |
|
45 |
BuildRequires: SUNWgnome-base-libs-devel |
|
46 |
BuildRequires: SUNWgnome-config-devel |
|
10645 | 47 |
BuildRequires: SUNWgnome-doc-utils |
9397 | 48 |
BuildRequires: SUNWlxml |
49 |
BuildRequires: SUNWlxsl |
|
50 |
||
11510 | 51 |
%package root |
52 |
Summary: %{summary} - / filesystem |
|
53 |
SUNW_BaseDir: / |
|
54 |
%include default-depend.inc |
|
55 |
Requires: SUNWpostrun-root |
|
56 |
Requires: SUNWgnome-config |
|
57 |
||
9397 | 58 |
%if %build_l10n |
59 |
%package l10n |
|
60 |
Summary: %{summary} - l10n files |
|
61 |
SUNW_BaseDir: %{_basedir} |
|
62 |
%include default-depend.inc |
|
63 |
Requires: %{name} |
|
64 |
%endif |
|
65 |
||
66 |
%prep |
|
67 |
rm -rf %name-%version |
|
68 |
mkdir %name-%version |
|
69 |
%yelp.prep -d %name-%version |
|
70 |
cd %{_builddir}/%name-%version |
|
71 |
gzcat %SOURCE0 | tar xf - |
|
72 |
||
73 |
||
74 |
%build |
|
12298 | 75 |
export CFLAGS="%optflags -I%{_includedir}/mps -DANSICPP -DI_KNOW_RARIAN_0_8_IS_UNSTABLE" |
9397 | 76 |
export RPM_OPT_FLAGS="$CFLAGS" |
77 |
export CXXFLAGS="%cxx_optflags -I%{_includedir}/mps" |
|
12298 | 78 |
export ACLOCAL_FLAGS="-I ./m4" |
10569 | 79 |
%if %cc_is_gcc |
80 |
%else |
|
81 |
export CXX="${CXX} -norunpath" |
|
82 |
%endif |
|
83 |
export LDFLAGS="%_ldflags" |
|
9397 | 84 |
|
85 |
%yelp.build -d %name-%version |
|
86 |
||
87 |
%install |
|
88 |
%yelp.install -d %name-%version |
|
89 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
90 |
cd %{_builddir}/%name-%version/sun-manpages |
|
91 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
92 |
||
93 |
%if %build_l10n |
|
94 |
%else |
|
95 |
# REMOVE l10n FILES |
|
96 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
97 |
%endif |
|
98 |
||
99 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
100 |
||
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%post |
|
105 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
9979 | 106 |
echo '/usr/bin/update-desktop-database' |
9397 | 107 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
108 |
||
109 |
%postun |
|
110 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
111 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
112 |
echo '/usr/bin/update-desktop-database' |
|
113 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
114 |
||
11510 | 115 |
%post root |
116 |
%include gconf-install.script |
|
117 |
||
118 |
%preun root |
|
119 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
120 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
121 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
122 |
echo ' exit 0'; |
|
123 |
echo '}'; |
|
124 |
echo 'umask 0022'; |
|
125 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
126 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
127 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
128 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
129 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
130 |
echo 'retval=0'; |
|
131 |
echo 'for schemas in yelp; do' ; |
|
132 |
echo ' $PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $SDIR/$schemas.schemas || retval=1'; |
|
133 |
echo 'done'; |
|
134 |
echo 'exit $retval' |
|
135 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
136 |
||
9397 | 137 |
%files |
138 |
%defattr (-, root, bin) |
|
139 |
%dir %attr (0755, root, bin) %{_bindir} |
|
140 |
%{_bindir}/* |
|
141 |
%dir %attr(0755, root, sys) %{_datadir} |
|
142 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
143 |
%{_datadir}/applications/* |
|
144 |
%attr (-, root, other) %{_datadir}/icons |
|
145 |
%{_datadir}/yelp |
|
146 |
%dir %attr(0755, root, bin) %{_mandir} |
|
147 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
148 |
%{_mandir}/*/* |
|
149 |
||
11510 | 150 |
%files root |
151 |
%defattr (-, root, sys) |
|
152 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
153 |
%{_sysconfdir}/gconf/schemas/yelp.schemas |
|
154 |
||
9397 | 155 |
%if %build_l10n |
156 |
%files l10n |
|
157 |
%defattr (-, root, bin) |
|
158 |
%dir %attr (0755, root, sys) %{_datadir} |
|
159 |
%attr (-, root, other) %{_datadir}/locale |
|
160 |
%endif |
|
161 |
||
162 |
%changelog |
|
12385
134271d6a7c1
Remove the unnecessary dependency "Requires: SUNWgnome-help-viewer"
davelam
parents:
12317
diff
changeset
|
163 |
* Thu May 29 2008 - [email protected] |
134271d6a7c1
Remove the unnecessary dependency "Requires: SUNWgnome-help-viewer"
davelam
parents:
12317
diff
changeset
|
164 |
- Remove unnecessary dependency "Requires: SUNWgnome-help-viewer" |
12317 | 165 |
* Fri May 16 2008 - [email protected] |
166 |
- Undo Evan's change - revert todepend on SUNWfirefox/-devel because FF3 is not |
|
167 |
stable enough to be the default browser in Nevada. |
|
12298 | 168 |
* Thu May 15 2008 - [email protected] |
169 |
- Remove references to /usr/sfw because freetype2 is under /usr now. |
|
12265 | 170 |
* Thu May 08 2008 - [email protected] |
171 |
- Remove Build/Requires SUNWfirefox/-devel because we have moved dependence to |
|
172 |
firefox3 and will remove firefox2 from vermillion. |
|
12183 | 173 |
* Mon Apr 21 2008 - [email protected] |
174 |
- Add Build/Requires SUNWfirefox3/-devel because yelp has been patched to use |
|
175 |
firefox3. |
|
11510 | 176 |
* Thu Jan 24 2008 - [email protected] |
177 |
- Fix up gconf install |
|
178 |
* Wed Nov 28 2008 - [email protected] |
|
11258 | 179 |
- Add -DI_KNOW_RARIAN_0_8_IS_UNSTABLE to CFLAGS as required by rarian-info.h. |
10645 | 180 |
* Thu Oct 11 2007 - [email protected] |
181 |
- Remove install dependency on SUNWgnome-doc-utils and change the build |
|
182 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. |
|
10569 | 183 |
* Fri Sep 28 2007 - [email protected] |
184 |
- delete SUNWxwrtl dep |
|
185 |
- add -norunpath flag for CXX and fix LDFLAGS |
|
10347 | 186 |
* Fri Aug 17 2007 - [email protected] |
187 |
- Move rarian to SUNWgnome-libs.spec, replacing scrollkeeper. Remove devel |
|
188 |
package and other rarian related changes. |
|
10241 | 189 |
* Wed Aug 01 2007 - [email protected] |
10347 | 190 |
- Add rarian module as required by yelp 2.19.1. |
9397 | 191 |
* Mon Sep 04 2006 - [email protected] |
192 |
- New Manpage tarball |
|
193 |
* Sat Aug 12 2006 - [email protected] |
|
194 |
- delete some unnecessary env variables |
|
195 |
* Sat Aug 12 2006 - [email protected] |
|
196 |
- change datadir/icons permissions back to root:other since it's a stable |
|
197 |
interface and wasn't supposed to be changed |
|
198 |
* Wed Jul 26 2006 - [email protected] |
|
199 |
- Bump to 2.15.5, update %files, bonobo support has been removed. |
|
200 |
* Fri Jul 14 2006 - [email protected] |
|
201 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
202 |
part of 6448317 |
|
203 |
* Thu Jun 29 2006 - [email protected] |
|
204 |
- update postrun scripts |
|
205 |
* Sun Jun 11 2006 - [email protected] |
|
206 |
- change group from other to bin/sys |
|
207 |
* Sat May 13 2006 - [email protected] |
|
208 |
- Remove /usr/lib/jds-private from LDFLAGS |
|
209 |
* Wed May 10 2006 - [email protected] |
|
210 |
- merge -share pkg(s) into the base pkg(s) |
|
211 |
* Mon Feb 20 2006 - [email protected] |
|
212 |
- Update Build/Requires after running check-deps.pl script. |
|
213 |
* Thu Jan 05 2006 - [email protected] |
|
214 |
- Complete the Build/Requires lists. |
|
215 |
* Sat Dec 3 2005 - [email protected] |
|
216 |
- add %post script that runs update-desktop-database |
|
217 |
* Fri Sep 30 2005 - [email protected] |
|
218 |
- Add icons dir to %files; remove /etc dir before packaging. |
|
219 |
* Thu Jul 21 2005 - [email protected] |
|
220 |
- Add SUNWmozilla dependency as configure breaking without mozilla. |
|
221 |
* Sat Oct 02 2004 - [email protected] |
|
222 |
- added %pkgbuild_postprocess |
|
223 |
* Wed Aug 18 2004 - [email protected] |
|
224 |
- Change manpage perms for Solaris integration. |
|
225 |
* Fri Jul 09 2004 - [email protected] |
|
226 |
- Return -R to LDFLAGS. I had incorrectly implemented the ARC decision. |
|
227 |
* Thu Jul 08 2004 - [email protected] |
|
228 |
- Remove -R from LDFLAGS because ARC said to use -norunpath. |
|
229 |
* Fri Jul 02 2004 - [email protected] |
|
230 |
- Add /usr/lib/jds-private to LDFLAGS. |
|
231 |
* Sat Jun 26 2004 [email protected] |
|
232 |
- Changed install location to /usr/... |
|
233 |
* Wed Jun 2 2004 - [email protected] |
|
234 |
- Added %{_datadir}/locale to install l10n messages |
|
235 |
* Fri May 14 2004 - [email protected] |
|
236 |
- Added libxslt dependency |
|
237 |
* Wed Mar 24 2004 - [email protected] |
|
238 |
- Added SGML man page integration |
|
239 |
* Mon Mar 01 2004 - <[email protected]> |
|
240 |
- define PERL5LIB. |
|
241 |
- remove non-existant dirs from %files share |
|
242 |
* Tue Feb 17 2004 - <[email protected] |
|
243 |
- initial spec file created |
|
244 |