specs/SUNWgtk-doc.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 20090 437564f99ab5
child 20169 269b1e9ef64e
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca

%include default-depend.inc
%include Solaris.inc

%use gtkdoc = gtk-doc.spec

Name:                    SUNWgtk-doc
IPS_package_name:        developer/documentation-tool/gtk-doc
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries
Summary:                 GTK+ DocBook Documentation Generator
Version:                 %{default_pkg_version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

Requires: SUNWPython26
Requires: SUNWgnome-xml-share
Requires: SUNWgnome-common-devel
BuildRequires: SUNWPython26-devel
BuildRequires: SUNWgnome-xml-share
BuildRequires: SUNWPython26
BuildRequires: SUNWgnome-doc-utils
BuildRequires: SUNWdesktop-cache
Requires: SUNWlxml
Requires: SUNWlxml-python26

%if %build_l10n
%package l10n
Summary:		 %{summary} - l10n files
SUNW_BaseDir:		 %{_basedir}
%include default-depend.inc
Requires:		 %{name}
%endif

%prep
rm -rf %name-%version
mkdir %name-%version

%gtkdoc.prep -d %name-%version
cd %{_builddir}/%name-%version

%build
cd %{_builddir}
export PYTHON="/usr/bin/python2.6"
export CXXFLAGS="%{cxx_optflags}"
export ACLOCAL_FLAGS="-I /usr/share/gnome-doc-utils -I./m4"
%gtkdoc.build -d %name-%version

%install
rm -rf $RPM_BUILD_ROOT
%gtkdoc.install -d %name-%version

# Normally we build this package before we build scrollkeeper, but
# remove any scrollkeeper files if user happens to rebuild this
# package after scrollkeeper is already on the system.
#
rm -rf $RPM_BUILD_ROOT%{_prefix}/var

# Remove /usr/share/info/dir, it's a generated file and shared by multiple
# packages
rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir

%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%doc -d gtk-doc-%{gtkdoc.version} README MAINTAINERS
%doc(bzip2) -d gtk-doc-%{gtkdoc.version} COPYING COPYING-DOCS NEWS ChangeLog
%dir %attr (0755, root, other) %{_datadir}/doc
%dir %attr (0755, root, other) %{_datadir}/aclocal
%{_datadir}/aclocal/gtk-doc.m4
%dir %attr (0755, root, bin) %{_datadir}/omf
%{_datadir}/sgml/gtk-doc/gtk-doc.cat
%{_datadir}/gtk-doc/data/*
%{_datadir}/pkgconfig/gtk-doc.pc
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/gtk-doc-manual/C/fdl-appendix.xml
%{_bindir}/gtkdoc*
%{_datadir}/omf/gtk-doc-manual/gtk-doc-manual-*.omf
%{_datadir}/gnome/help/gtk-doc-manual/*/gtk-doc-manual.xml


%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%endif

%changelog
* Tue Jun 08 2010 - [email protected]
- Updated BuildRequires to fit SourceJuicer.
* Tue Oct 13 2009 - [email protected]
- Correct Summary line(doo9505).
* Mon Mar 23 2009 - [email protected]
* Add 'BuildRequires: SUNWgnome-doc-utils'.
* Mon Mar 23 2009 - [email protected]
- Change BuildRequires to SUNWPython26-devel.
* Thu Mar 19 2009 - [email protected]
- Add BuildRequires: SUNWPython-devel