gnome-doc-utils/gnome-doc-utils.spec

158 lines
5.5 KiB
RPMSpec

### AUTOUPDATE-OFF: 9
%define majver %(echo %version | cut -d. -f 1-2)
Name: gnome-doc-utils
Version: 0.20.10
Release: 3mamba
Summary: A collection of documentation utilities for the Gnome project
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: ftp://ftp.gnome.org
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-doc-utils/%{majver}/gnome-doc-utils-%{version}.tar.xz
Patch0: gnome-doc-utils-0.20.10-python3.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: python3
## AUTOBUILDREQ-END
BuildRequires: gettext-devel
BuildRequires: perl
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: libpython3-devel
BuildRequires: libxslt-devel
BuildRequires: python-libxml2-py3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Gnome-doc-utils is a collection of documentation utilities for the Gnome project. Notably, it contains utilities for building documentation and all auxiliary files in your source tree, and it contains the DocBook XSLT stylesheets that were once distributed with Yelp. Starting with Gnome 2.8, Yelp will require gnome-doc-utils for the XSLT.
Gnome documentation utilities.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}
%description devel
gnome-doc-utils is a collection of documentation utilities for the Gnome project. Notably, it contains utilities for building documentation and all auxiliary files in your source tree, and it contains the DocBook XSLT stylesheets that were once distributed with Yelp. Starting with Gnome 2.8, Yelp will require gnome-doc-utils for the XSLT.
This package contains static libraries and header files needed for development.
%prep
%setup -q
%patch0 -p1
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
export PYTHON=%{__python3}
%configure --disable-scrollkeeper
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
#%find_lang gnome-doc-make --with-gnome
#%find_lang gnome-doc-xslt --with-gnome
#cat gnome-doc-xslt.lang gnome-doc-make.lang >> %{name}.lang
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gnome-doc-prepare
%{_bindir}/gnome-doc-tool
%{_bindir}/xml2po
%{_datadir}/gnome/help/gnome-doc-make/
%{_datadir}/gnome/help/gnome-doc-xslt/
%{_datadir}/gnome-doc-utils/*
#%{_datadir}/omf/gnome-doc-make/*
#%{_datadir}/omf/gnome-doc-xslt/*
%dir %{_datadir}/xml/gnome
%dir %{_datadir}/xml/gnome/xslt
%dir %{_datadir}/xml/gnome/xslt/common
%{_datadir}/xml/gnome/xslt/common/*
%dir %{_datadir}/xml/gnome/xslt/docbook
%dir %{_datadir}/xml/gnome/xslt/docbook/common
%{_datadir}/xml/gnome/xslt/docbook/common/*
%dir %{_datadir}/xml/gnome/xslt/docbook/html
%{_datadir}/xml/gnome/xslt/docbook/html/*
%dir %{_datadir}/xml/gnome/xslt/docbook/omf
%{_datadir}/xml/gnome/xslt/docbook/omf/*
%dir %{_datadir}/xml/gnome/xslt/docbook/utils
%{_datadir}/xml/gnome/xslt/docbook/utils/*
%dir %{_datadir}/xml/gnome/xslt/gettext
%{_datadir}/xml/gnome/xslt/gettext/*
%{_datadir}/xml/gnome/xslt/mallard
%{_datadir}/xml/mallard/1.0/mallard.rnc
%{_datadir}/xml/mallard/1.0/mallard.rng
%dir %{python3_sitelib}/xml2po
%{python3_sitelib}/xml2po/*
#%{_datadir}/xml/gnome/xslt/xsldoc/*
#%{_datadir}/xml2po/*
%{_mandir}/man1/xml2po.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_datadir}/aclocal/gnome-doc-utils.m4
%{_datadir}/pkgconfig/*.pc
%doc ChangeLog NEWS README
%changelog
* Sun Jan 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.10-3mamba
- rebuilt with python3
* Mon Apr 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.10-2mamba
- patched to use python 2.7
* Mon Jul 02 2012 Automatic Build System <autodist@mambasoft.it> 0.20.10-1mamba
- automatic version update by autodist
* Wed Mar 21 2012 Automatic Build System <autodist@mambasoft.it> 0.20.9-1mamba
- automatic version update by autodist
* Sun Mar 18 2012 Automatic Build System <autodist@mambasoft.it> 0.20.8-1mamba
- automatic version update by autodist
* Mon Mar 12 2012 Automatic Build System <autodist@mambasoft.it> 0.20.7-1mamba
- update to 0.20.7
* Tue May 03 2011 Automatic Build System <autodist@mambasoft.it> 0.20.6-1mamba
- automatic update by autodist
* Tue Mar 22 2011 Automatic Build System <autodist@mambasoft.it> 0.20.5-1mamba
- automatic update by autodist
* Mon Jan 10 2011 Automatic Build System <autodist@mambasoft.it> 0.20.4-1mamba
- automatic update by autodist
* Mon Dec 20 2010 Automatic Build System <autodist@mambasoft.it> 0.20.3-1mamba
- automatic update to 0.20.3 by autodist
* Tue Sep 28 2010 Automatic Build System <autodist@mambasoft.it> 0.20.2-1mamba
- automatic update to 0.20.2 by autodist
* Sun May 30 2010 Automatic Build System <autodist@mambasoft.it> 0.20.1-1mamba
- update to 0.20.1
* Thu Oct 02 2008 gil <puntogil@libero.it> 0.14.0-1mamba
- update to 0.14.0
* Mon May 19 2008 gil <puntogil@libero.it> 0.12.2-1mamba
- update to version 0.12.2
* Tue Apr 10 2007 Tiziano Pratellesi <tiziano.pratellesi@openmamba.org> 0.10.1-1mamba
- update to version 0.10.1
* Thu Jan 11 2007 Davide Madrisan <davide.madrisan@qilinux.it> 0.8.0-1qilnx
- update to version 0.8.0 by autospec
* Tue Mar 14 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.6.0-2qilnx
- use %%find_lang and %%majversion
- added missing build requirements
* Mon Mar 13 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-1qilnx
- package created by autospec