1 # 2 # spec file for package SUNWgnome-devel-docs 3 # 4 # includes module(s): GNOME Devel Docs 5 # 6 # Copyright (c) 2005 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: davelam 11 # 12 # 13 %include Solaris.inc 14 15 %use gdd = gnome-devel-docs.spec 16 17 Name: SUNWgnome-devel-docs 18 Summary: GNOME developer documentation 19 Version: %{default_pkg_version} 20 SUNW_BaseDir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 %include default-depend.inc 24 BuildRequires: SUNWlxml-python 25 BuildRequires: SUNWlxsl 26 BuildRequires: SUNWgnome-libs 27 Requires: SUNWgnome-help-viewer 28 Requires: SUNWgnome-libs 29 Requires: SUNWpostrun 30 31 %if %build_l10n 32 %package l10n 33 Summary: %{summary} - l10n files 34 SUNW_BaseDir: %{_basedir} 35 %include default-depend.inc 36 Requires: %{name} 37 %endif 38 39 %prep 40 rm -rf %name-%version 41 mkdir %name-%version 42 %gdd.prep -d %name-%version 43 44 %build 45 export PKG_CONFIG_PATH=%{_pkg_config_path} 46 export MSGFMT="/usr/bin/msgfmt" 47 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 48 export LDFLAGS="%_ldflags" 49 export CFLAGS="%optflags" 50 %gdd.build -d %name-%version 51 52 %install 53 %gdd.install -d %name-%version 54 55 %if %build_l10n 56 %else 57 # REMOVE l10n FILES 58 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 59 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 60 %endif 61 62 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 63 64 # Remove scrollkeeper files before packaging. 65 rm -rf $RPM_BUILD_ROOT/var 66 67 %clean 68 rm -rf $RPM_BUILD_ROOT 69 70 %post 71 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 72 echo '/usr/bin/scrollkeeper-update' 73 ) | $BASEDIR/lib/postrun -b -u -c JDS 74 75 %postun 76 test -x $BASEDIR/lib/postrun || exit 0 77 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 78 echo '/usr/bin/scrollkeeper-update' 79 ) | $BASEDIR/lib/postrun -b -u -c JDS 80 81 %files 82 %defattr (-, root, bin) 83 %dir %attr (0755, root, sys) %{_datadir} 84 %dir %attr (0755, root, other) %{_datadir}/gnome 85 %{_datadir}/gnome/help/*/C 86 %{_datadir}/omf/*/*-C.omf 87 88 %if %build_l10n 89 %files l10n 90 %defattr (-, root, bin) 91 %dir %attr (0755, root, sys) %{_datadir} 92 %dir %attr (0755, root, other) %{_datadir}/gnome 93 %{_datadir}/gnome/help/*/[a-z]* 94 %{_datadir}/omf/*/*-[a-z][a-z].omf 95 #%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf 96 %endif 97 98 %changelog 99 * Mon Sep 10 2007 - Damien Carbery <damien.carbery@sun.com> 100 - Update dependencies. 101 102 * Sat Sep 01 2007 - Dave Lin <dave.lin@sun.com> 103 - initial version 104 105