1 # 2 # spec file for package SUNWgnome-devel-docs 3 # 4 # includes module(s): GNOME Devel Docs 5 # 6 # Copyright 2009 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 %define 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 30 %if %build_l10n 31 %package l10n 32 Summary: %{summary} - l10n files 33 SUNW_BaseDir: %{_basedir} 34 %include default-depend.inc 35 Requires: %{name} 36 %endif 37 38 %prep 39 rm -rf %name-%version 40 mkdir %name-%version 41 %gdd.prep -d %name-%version 42 43 %build 44 export PKG_CONFIG_PATH=%{_pkg_config_path} 45 export MSGFMT="/usr/bin/msgfmt" 46 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 47 export LDFLAGS="%_ldflags" 48 export CFLAGS="%optflags" 49 %gdd.build -d %name-%version 50 51 %install 52 %gdd.install -d %name-%version 53 54 %if %build_l10n 55 %else 56 # REMOVE l10n FILES 57 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 58 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 59 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/integration-guide-en_GB.omf 60 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/integration-guide-pt_BR.omf 61 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/integration-guide-zh_CN.omf 62 %endif 63 64 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 65 66 # Remove scrollkeeper files before packaging. 67 rm -rf $RPM_BUILD_ROOT/var 68 69 %clean 70 rm -rf $RPM_BUILD_ROOT 71 72 %files 73 %defattr (-, root, bin) 74 %dir %attr (0755, root, sys) %{_datadir} 75 %dir %attr (0755, root, other) %{_datadir}/gnome 76 %{_datadir}/gnome/help/*/C 77 %{_datadir}/omf/*/*-C.omf 78 79 %if %build_l10n 80 %files l10n 81 %defattr (-, root, bin) 82 %dir %attr (0755, root, sys) %{_datadir} 83 %dir %attr (0755, root, other) %{_datadir}/gnome 84 %{_datadir}/gnome/help/*/[a-z]* 85 %{_datadir}/omf/*/*-[a-z][a-z].omf 86 %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf 87 %endif 88 89 %changelog 90 * Tue Jun 09 2009 - brian.cameron@sun.com 91 - Fix packaging when building without l10n. 92 * Fri Apr 03 2009 - laca@sun.com 93 - stop using postrun. 94 * Tue Mar 17 2009 - dave.lin@sun.conm 95 - Uncomment %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf in %file l10n. 96 * Mon Sep 10 2007 - Damien Carbery <damien.carbery@sun.com> 97 - Update dependencies. 98 * Sat Sep 01 2007 - Dave Lin <dave.lin@sun.com> 99 - initial version. 100 101