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}
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWgnome-libs
|
|
24 |
Requires: SUNWgnome-vfs
|
|
25 |
Requires: SUNWgnome-component
|
|
26 |
Requires: SUNWgnome-base-libs
|
|
27 |
Requires: SUNWgnome-config
|
|
28 |
Requires: SUNWlxml
|
|
29 |
Requires: SUNWlxsl
|
|
30 |
Requires: SUNWfirefox
|
|
31 |
Requires: SUNWbzip
|
|
32 |
Requires: SUNWgnome-print
|
|
33 |
Requires: SUNWlibC
|
|
34 |
Requires: SUNWlibpopt
|
|
35 |
Requires: SUNWzlib
|
|
36 |
Requires: SUNWpostrun
|
|
37 |
BuildRequires: SUNWgnome-print-devel
|
|
38 |
BuildRequires: SUNWlibpopt-devel
|
|
39 |
BuildRequires: SUNWfirefox-devel
|
|
40 |
BuildRequires: SUNWgnome-print-devel
|
|
41 |
BuildRequires: SUNWgnome-vfs-devel
|
|
42 |
BuildRequires: SUNWgnome-component-devel
|
|
43 |
BuildRequires: SUNWgnome-libs-devel
|
|
44 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
45 |
BuildRequires: SUNWgnome-config-devel
|
10645
|
46 |
BuildRequires: SUNWgnome-doc-utils
|
9397
|
47 |
BuildRequires: SUNWlxml
|
|
48 |
BuildRequires: SUNWlxsl
|
|
49 |
|
|
50 |
%if %build_l10n
|
|
51 |
%package l10n
|
|
52 |
Summary: %{summary} - l10n files
|
|
53 |
SUNW_BaseDir: %{_basedir}
|
|
54 |
%include default-depend.inc
|
|
55 |
Requires: %{name}
|
|
56 |
%endif
|
|
57 |
|
|
58 |
%prep
|
|
59 |
rm -rf %name-%version
|
|
60 |
mkdir %name-%version
|
|
61 |
%yelp.prep -d %name-%version
|
|
62 |
cd %{_builddir}/%name-%version
|
|
63 |
gzcat %SOURCE0 | tar xf -
|
|
64 |
|
|
65 |
|
|
66 |
%build
|
11258
|
67 |
export CFLAGS="%optflags -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I%{_includedir}/mps -DANSICPP -DI_KNOW_RARIAN_0_8_IS_UNSTABLE"
|
9397
|
68 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
69 |
export CXXFLAGS="%cxx_optflags -I%{_includedir}/mps"
|
|
70 |
export PKG_CONFIG_PATH=%{_pkg_config_path}:/usr/sfw/lib/pkgconfig
|
|
71 |
#FIXME: freetype2.m4?
|
|
72 |
export ACLOCAL_FLAGS="-I ./m4 -I /usr/sfw/share/aclocal"
|
10569
|
73 |
%if %cc_is_gcc
|
|
74 |
%else
|
|
75 |
export CXX="${CXX} -norunpath"
|
|
76 |
%endif
|
|
77 |
export LDFLAGS="%_ldflags"
|
9397
|
78 |
|
|
79 |
%yelp.build -d %name-%version
|
|
80 |
|
|
81 |
%install
|
|
82 |
%yelp.install -d %name-%version
|
|
83 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
84 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
86 |
|
|
87 |
# TODO: Should we keep the gconf files?
|
|
88 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}
|
|
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';
|
9979
|
103 |
echo '/usr/bin/update-desktop-database'
|
9397
|
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 |
%files
|
|
113 |
%defattr (-, root, bin)
|
|
114 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
115 |
%{_bindir}/*
|
|
116 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
117 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
118 |
%{_datadir}/applications/*
|
|
119 |
%attr (-, root, other) %{_datadir}/icons
|
|
120 |
%{_datadir}/yelp
|
|
121 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
122 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
123 |
%{_mandir}/*/*
|
|
124 |
|
|
125 |
%if %build_l10n
|
|
126 |
%files l10n
|
|
127 |
%defattr (-, root, bin)
|
|
128 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
129 |
%attr (-, root, other) %{_datadir}/locale
|
|
130 |
%endif
|
|
131 |
|
|
132 |
%changelog
|
11258
|
133 |
* Wed Nov 28 2007 - [email protected]
|
|
134 |
- Add -DI_KNOW_RARIAN_0_8_IS_UNSTABLE to CFLAGS as required by rarian-info.h.
|
10645
|
135 |
* Thu Oct 11 2007 - [email protected]
|
|
136 |
- Remove install dependency on SUNWgnome-doc-utils and change the build
|
|
137 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils.
|
10569
|
138 |
* Fri Sep 28 2007 - [email protected]
|
|
139 |
- delete SUNWxwrtl dep
|
|
140 |
- add -norunpath flag for CXX and fix LDFLAGS
|
10347
|
141 |
* Fri Aug 17 2007 - [email protected]
|
|
142 |
- Move rarian to SUNWgnome-libs.spec, replacing scrollkeeper. Remove devel
|
|
143 |
package and other rarian related changes.
|
10241
|
144 |
* Wed Aug 01 2007 - [email protected]
|
10347
|
145 |
- Add rarian module as required by yelp 2.19.1.
|
9397
|
146 |
* Mon Sep 04 2006 - [email protected]
|
|
147 |
- New Manpage tarball
|
|
148 |
* Sat Aug 12 2006 - [email protected]
|
|
149 |
- delete some unnecessary env variables
|
|
150 |
* Sat Aug 12 2006 - [email protected]
|
|
151 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
152 |
interface and wasn't supposed to be changed
|
|
153 |
* Wed Jul 26 2006 - [email protected]
|
|
154 |
- Bump to 2.15.5, update %files, bonobo support has been removed.
|
|
155 |
* Fri Jul 14 2006 - [email protected]
|
|
156 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
157 |
part of 6448317
|
|
158 |
* Thu Jun 29 2006 - [email protected]
|
|
159 |
- update postrun scripts
|
|
160 |
* Sun Jun 11 2006 - [email protected]
|
|
161 |
- change group from other to bin/sys
|
|
162 |
* Sat May 13 2006 - [email protected]
|
|
163 |
- Remove /usr/lib/jds-private from LDFLAGS
|
|
164 |
* Wed May 10 2006 - [email protected]
|
|
165 |
- merge -share pkg(s) into the base pkg(s)
|
|
166 |
* Mon Feb 20 2006 - [email protected]
|
|
167 |
- Update Build/Requires after running check-deps.pl script.
|
|
168 |
* Thu Jan 05 2006 - [email protected]
|
|
169 |
- Complete the Build/Requires lists.
|
|
170 |
* Sat Dec 3 2005 - [email protected]
|
|
171 |
- add %post script that runs update-desktop-database
|
|
172 |
* Fri Sep 30 2005 - [email protected]
|
|
173 |
- Add icons dir to %files; remove /etc dir before packaging.
|
|
174 |
* Thu Jul 21 2005 - [email protected]
|
|
175 |
- Add SUNWmozilla dependency as configure breaking without mozilla.
|
|
176 |
* Sat Oct 02 2004 - [email protected]
|
|
177 |
- added %pkgbuild_postprocess
|
|
178 |
* Wed Aug 18 2004 - [email protected]
|
|
179 |
- Change manpage perms for Solaris integration.
|
|
180 |
* Fri Jul 09 2004 - [email protected]
|
|
181 |
- Return -R to LDFLAGS. I had incorrectly implemented the ARC decision.
|
|
182 |
* Thu Jul 08 2004 - [email protected]
|
|
183 |
- Remove -R from LDFLAGS because ARC said to use -norunpath.
|
|
184 |
* Fri Jul 02 2004 - [email protected]
|
|
185 |
- Add /usr/lib/jds-private to LDFLAGS.
|
|
186 |
* Sat Jun 26 2004 [email protected]
|
|
187 |
- Changed install location to /usr/...
|
|
188 |
* Wed Jun 2 2004 - [email protected]
|
|
189 |
- Added %{_datadir}/locale to install l10n messages
|
|
190 |
* Fri May 14 2004 - [email protected]
|
|
191 |
- Added libxslt dependency
|
|
192 |
* Wed Mar 24 2004 - [email protected]
|
|
193 |
- Added SGML man page integration
|
|
194 |
* Mon Mar 01 2004 - <[email protected]>
|
|
195 |
- define PERL5LIB.
|
|
196 |
- remove non-existant dirs from %files share
|
|
197 |
* Tue Feb 17 2004 - <[email protected]
|
|
198 |
- initial spec file created
|
|
199 |
|