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