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

76 lines
2.3 KiB
RPMSpec
Raw Normal View History

2019-12-06 10:07:42 +08:00
Name: gnome-doc-utils
Version: 0.20.10
2021-05-18 10:37:39 +08:00
Release: 19
2019-12-06 10:07:42 +08:00
Summary: A collection of documentation utilities for the Gnome project
License: GPLv2+ and LGPLv2+ and GFDL
URL: https://wiki.gnome.org/Projects/GnomeDocUtils
Source: https://download.gnome.org/sources/%{name}/0.20/%{name}-%{version}.tar.xz
Patch0001: gnome-doc-utils-0.14.0-package.patch
2020-10-30 09:39:00 +08:00
Patch0002: gnome-doc-utils-0.20.10-python3.patch
2019-12-06 10:07:42 +08:00
BuildArch: noarch
2021-05-18 10:37:39 +08:00
BuildRequires: gcc
2020-10-30 09:39:00 +08:00
BuildRequires: libxml2-devel >= 2.6.12 libxslt-devel >= 1.1.8 python3-libxml2
BuildRequires: python3-devel intltool gettext scrollkeeper
Requires: libxml2 >= 2.6.12 libxslt >= 1.1.8 python3-libxml2 automake
2019-12-06 10:07:42 +08:00
Requires: gnome-doc-utils-stylesheets = %{version}-%{release}
%description
gnome-doc-utils is a collection of documentation utilities for the Gnome project.
It includes xml2po tool which makes it easier to translate and keep up to date
translations of documentation. It is highly recommended that all GNOME projects
that have user documentation should use gnome-doc-utils.
%package stylesheets
Summary: XSL stylesheets which is uesd by Gnome
License: LGPLv2+
Requires: docbook-dtds pkgconfig xml-common
%description stylesheets
The package includes XSL stylesheets used by yelp and by the tools in gnome-doc-utils.
%package help
Summary: This package contains help documents
%description help
Files for help with gnome-doc-utils.
%prep
%autosetup -p1
%build
%configure --disable-scrollkeeper --enable-build-utils
%make_build
%install
%make_install
sed -i -e '/^Requires:/d' %{buildroot}%{_datadir}/pkgconfig/xml2po.pc
%find_lang %{name}
%files -f %{name}.lang
%license COPYING COPYING.GPL COPYING.LGPL
%{_bindir}/*
%{_datadir}/aclocal/gnome-doc-utils.m4
%{_datadir}/gnome-doc-utils
2020-10-30 09:39:00 +08:00
%{python3_sitelib}/xml2po/
2019-12-06 10:07:42 +08:00
%{_datadir}/pkgconfig/{gnome-doc-utils.pc,xml2po.pc}
%files stylesheets
%{_datadir}/xml/{gnome,mallard}
%files help
%doc AUTHORS NEWS README
%{_datadir}/gnome/help/gnome-doc-make
%{_datadir}/gnome/help/gnome-doc-xslt
%{_mandir}/man1/xml2po.1*
%changelog
2021-05-18 10:37:39 +08:00
* Tue May 18 2021 lin.zhang <lin.zhang@turbolinux.com.cn> -0.20.10-19
- add BuildRequires gcc
2020-10-30 09:39:00 +08:00
* Mon Oct 26 2020 huanghaitao <huanghaitao8@huawei.com> - 0.20.10-18
- Switch to python3
2019-12-06 10:07:42 +08:00
* Wed Dec 4 2019 wangyiru <wangyiru1@huawei.com> - 0.20.10-17
- Package init