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