9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-hex-editor
|
|
3 |
#
|
|
4 |
# includes module(s): ghex
|
|
5 |
#
|
11370
|
6 |
# Copyright 2008 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
|
13886
|
13 |
%include l10n.inc
|
9397
|
14 |
Name: SUNWgnome-hex-editor
|
|
15 |
Summary: GNOME hex editor
|
|
16 |
Version: %{default_pkg_version}
|
12512
|
17 |
%define tarball_version 2.22.0
|
|
18 |
Source: http://ftp.gnome.org/pub/gnome/sources/ghex/2.22/ghex-%{tarball_version}.tar.bz2
|
9397
|
19 |
Source1: %{name}-manpages-0.1.tar.gz
|
12031
|
20 |
%if %build_l10n
|
|
21 |
Source2: l10n-configure.sh
|
13886
|
22 |
Source3: ghex-po-sun-%{po_sun_version}.tar.bz2
|
12031
|
23 |
%endif
|
13137
|
24 |
#date:2008-08-15 owner:jedy type:branding
|
13250
|
25 |
Patch1: ghex-01-menu-entry.diff
|
9397
|
26 |
SUNW_BaseDir: %{_prefix}
|
11938
|
27 |
SUNW_Copyright: %{name}.copyright
|
9397
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
29 |
%include default-depend.inc
|
|
30 |
Requires: SUNWgnome-libs
|
|
31 |
Requires: SUNWgnome-hex-editor-root
|
|
32 |
Requires: SUNWgnome-print
|
|
33 |
Requires: SUNWgnome-base-libs
|
|
34 |
Requires: SUNWgnome-component
|
|
35 |
Requires: SUNWgnome-config
|
|
36 |
Requires: SUNWgnome-vfs
|
|
37 |
Requires: SUNWlibms
|
|
38 |
Requires: SUNWlibpopt
|
|
39 |
Requires: SUNWpostrun
|
|
40 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
41 |
BuildRequires: SUNWgnome-component-devel
|
|
42 |
BuildRequires: SUNWgnome-config-devel
|
|
43 |
BuildRequires: SUNWgnome-vfs-devel
|
|
44 |
BuildRequires: SUNWlibpopt-devel
|
|
45 |
BuildRequires: SUNWgnome-print-devel
|
|
46 |
BuildRequires: SUNWgnome-libs-devel
|
|
47 |
|
|
48 |
%package devel
|
|
49 |
Summary: %{summary} - development files
|
|
50 |
SUNW_BaseDir: %{_basedir}
|
|
51 |
Requires: SUNWgnome-hex-editor
|
|
52 |
%include default-depend.inc
|
|
53 |
|
|
54 |
%package root
|
|
55 |
Summary: %{summary} - / filesystem
|
|
56 |
SUNW_BaseDir: /
|
|
57 |
%include default-depend.inc
|
|
58 |
Requires: SUNWpostrun-root
|
|
59 |
Requires: SUNWgnome-config
|
|
60 |
|
|
61 |
%if %build_l10n
|
|
62 |
%package l10n
|
|
63 |
Summary: %{summary} - l10n files
|
|
64 |
SUNW_BaseDir: %{_basedir}
|
|
65 |
%include default-depend.inc
|
|
66 |
Requires: %{name}
|
|
67 |
%endif
|
|
68 |
|
|
69 |
%prep
|
|
70 |
%setup -c -n %name-%tarball_version
|
13886
|
71 |
%if %build_l10n
|
|
72 |
cd %{_builddir}/%name-%{tarball_version}
|
|
73 |
cd ghex-%{tarball_version}
|
|
74 |
bzcat %SOURCE3 | tar xf -
|
|
75 |
cd po-sun; make; cd ..
|
|
76 |
%endif
|
|
77 |
|
9397
|
78 |
cd %{_builddir}/%name-%{tarball_version}
|
|
79 |
gzcat %SOURCE1 | tar xf -
|
|
80 |
cd ghex-%{tarball_version}
|
|
81 |
|
13135
|
82 |
%patch1 -p1
|
|
83 |
|
9397
|
84 |
%build
|
|
85 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
86 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
87 |
CPUS=1
|
|
88 |
fi
|
|
89 |
|
|
90 |
cd ghex-%{tarball_version}
|
|
91 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
92 |
export CFLAGS="%optflags"
|
|
93 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
94 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
95 |
export LDFLAGS="%_ldflags"
|
|
96 |
glib-gettextize -f
|
|
97 |
libtoolize --force
|
|
98 |
intltoolize --force --copy --automake
|
12031
|
99 |
|
|
100 |
%if %build_l10n
|
|
101 |
bash -x %SOURCE2 --enable-copyright
|
|
102 |
%endif
|
|
103 |
|
9397
|
104 |
aclocal $ACLOCAL_FLAGS
|
|
105 |
autoheader
|
|
106 |
automake -a -c -f
|
|
107 |
autoconf
|
|
108 |
./configure \
|
|
109 |
--prefix=%{_prefix} \
|
|
110 |
--libexecdir=%{_libexecdir} \
|
|
111 |
--sysconfdir=%{_sysconfdir}
|
|
112 |
|
|
113 |
%install
|
|
114 |
rm -rf $RPM_BUILD_ROOT
|
|
115 |
cd ghex-%{tarball_version}
|
|
116 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
117 |
make install DESTDIR=$RPM_BUILD_ROOT -j$CPUS
|
|
118 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
119 |
cd %{_builddir}/%name-%{tarball_version}/sun-manpages
|
|
120 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
121 |
|
|
122 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
|
|
123 |
|
|
124 |
%if %build_l10n
|
|
125 |
%else
|
|
126 |
# REMOVE l10n FILES*files-list*
|
|
127 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
128 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
129 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf
|
|
130 |
%endif
|
|
131 |
|
|
132 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
133 |
|
|
134 |
%post
|
|
135 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
136 |
echo '/usr/bin/scrollkeeper-update'
|
|
137 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
138 |
|
|
139 |
%postun
|
|
140 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
141 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
142 |
echo '/usr/bin/scrollkeeper-update'
|
|
143 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
144 |
|
|
145 |
%post root
|
11370
|
146 |
%include gconf-install.script
|
9397
|
147 |
|
|
148 |
%preun root
|
|
149 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
150 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
151 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
152 |
echo ' exit 0';
|
|
153 |
echo '}';
|
|
154 |
echo 'umask 0022';
|
|
155 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
156 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
157 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
158 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
159 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
160 |
echo 'schemas="$SDIR/ghex2.schemas"';
|
|
161 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
162 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
163 |
|
|
164 |
%clean
|
|
165 |
rm -rf $RPM_BUILD_ROOT
|
|
166 |
|
|
167 |
%files
|
|
168 |
%defattr (-, root, bin)
|
|
169 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
170 |
%{_bindir}/*
|
|
171 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
172 |
%{_libdir}/lib*.so*
|
|
173 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
174 |
%{_datadir}/gnome-2.0
|
|
175 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
176 |
%{_datadir}/gnome/help/*/C
|
9657
|
177 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
178 |
%{_datadir}/applications/*.desktop
|
9397
|
179 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
180 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
181 |
%{_mandir}/*/*
|
10296
|
182 |
%dir %attr (-, root, other) %{_datadir}/icons
|
|
183 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
|
|
184 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
|
|
185 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
|
|
186 |
%{_datadir}/icons/hicolor/16x16/apps/ghex.png
|
|
187 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
|
|
188 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
|
|
189 |
%{_datadir}/icons/hicolor/22x22/apps/ghex.png
|
|
190 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
|
|
191 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
|
|
192 |
%{_datadir}/icons/hicolor/24x24/apps/ghex.png
|
|
193 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
|
|
194 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
|
|
195 |
%{_datadir}/icons/hicolor/32x32/apps/ghex.png
|
|
196 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
|
|
197 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
|
|
198 |
%{_datadir}/icons/hicolor/48x48/apps/ghex.png
|
|
199 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
|
|
200 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
|
|
201 |
%{_datadir}/icons/hicolor/scalable/apps/ghex.svg
|
13657
|
202 |
%doc -d ghex-%{tarball_version} AUTHORS ChangeLog NEWS README
|
|
203 |
%doc(bzip2) -d ghex-%{tarball_version} COPYING
|
|
204 |
%doc(bzip2) -d ghex-%{tarball_version} COPYING-DOCS
|
|
205 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
9397
|
206 |
|
|
207 |
%files root
|
9780
|
208 |
%defattr (-, root, sys)
|
9397
|
209 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
210 |
%{_sysconfdir}/gconf/schemas/ghex2.schemas
|
|
211 |
|
|
212 |
%files devel
|
|
213 |
%defattr (-, root, bin)
|
|
214 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
215 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
216 |
%{_libdir}/pkgconfig/*
|
|
217 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
218 |
%{_includedir}/*
|
|
219 |
|
|
220 |
%if %build_l10n
|
|
221 |
%files l10n
|
|
222 |
%defattr (-, root, bin)
|
|
223 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
224 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
225 |
%attr (-, root, other) %{_datadir}/locale
|
|
226 |
%{_datadir}/gnome/help/*/[a-z]*
|
|
227 |
%endif
|
|
228 |
|
|
229 |
%changelog
|
13886
|
230 |
* Wed Oct 01 2008 - [email protected]
|
|
231 |
- Add l10n tarball.
|
13250
|
232 |
* Fri Aug 22 2008 - [email protected]
|
|
233 |
- rename desktop.diff to menu-entry.diff.
|
13204
|
234 |
* Thu Aug 21 2008 - [email protected]
|
|
235 |
- Remove option_with_indiana_branding.
|
13137
|
236 |
* Fri Aug 15 2008 - [email protected]
|
|
237 |
- Add 01-desktop.diff.
|
12512
|
238 |
* Wed May 28 2008 - [email protected]
|
|
239 |
- Bump to 2.22.0
|
11370
|
240 |
* Thu Jan 3 2008 - [email protected]
|
|
241 |
- use gconf-install.script instead of an inline script
|
10541
|
242 |
* Thu Sep 20 2007 - [email protected]
|
|
243 |
- Bump to 2.20.0.
|
10451
|
244 |
* Wed Sep 05 2007 - [email protected]
|
|
245 |
- Remove references to SUNWgnome-a11y-base-libs as its contents have been
|
|
246 |
moved to SUNWgnome-base-libs.
|
10327
|
247 |
* Wed Aug 15 2007 - [email protected]
|
|
248 |
- Bump to 2.19.90.
|
10296
|
249 |
* Fri Aug 10 2007 - [email protected]
|
|
250 |
- Bump to 2.19.0. Update %files to remove omf files and add icons.
|
9780
|
251 |
* Tue Apr 24 2007 - [email protected]
|
|
252 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
253 |
* Fri Sep 08 2006 - [email protected]
|
|
254 |
- Add man page tarball
|
|
255 |
* Fri Jul 14 2006 - [email protected]
|
|
256 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
257 |
part of 6448317
|
|
258 |
* Thu Jun 29 2006 - [email protected]
|
|
259 |
- update postrun scripts
|
|
260 |
* Sun Jun 11 2006 - [email protected]
|
|
261 |
- change group from other to bin/sys
|
|
262 |
* Thu May 25 2006 - [email protected]
|
|
263 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
264 |
* Wed May 10 2006 - [email protected]
|
|
265 |
- merge -share pkg(s) into the base pkg(s)
|
|
266 |
* Mon Feb 20 2006 - [email protected]
|
|
267 |
- Update Build/Requires after running check-deps.pl script.
|
|
268 |
* Tue Nov 29 2005 - [email protected]
|
|
269 |
- remove javahelp stuff
|
|
270 |
* Thu Sep 15 2005 - [email protected]
|
|
271 |
- update to 2.8.1
|
|
272 |
* Fri Nov 26 2004 - [email protected]
|
|
273 |
- initial version of spec file
|