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