Dominique Leuenberger
7373c94d14
Add docbook_4 Requires to avoid fetching non-local DTD OBS-URL: https://build.opensuse.org/request/show/71731 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-doc-utils?expand=0&rev=62
161 lines
4.9 KiB
RPMSpec
161 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package gnome-doc-utils
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: gnome-doc-utils
|
|
Version: 0.20.6
|
|
Release: 1
|
|
License: GPLv2+
|
|
Summary: A Collection of Documentation Utilities for GNOME
|
|
Url: http://www.gnome.org
|
|
Group: System/GUI/GNOME
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-doc-utils/0.8/%{name}-%{version}.tar.bz2
|
|
BuildRequires: docbook_4
|
|
BuildRequires: fdupes
|
|
BuildRequires: intltool
|
|
BuildRequires: libxml2-python
|
|
BuildRequires: libxslt-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: python
|
|
BuildRequires: translation-update-upstream
|
|
Requires: libxslt
|
|
Recommends: %{name}-lang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%if %suse_version <= 1110
|
|
%define python_sitelib %{py_sitedir}
|
|
%endif
|
|
|
|
%description
|
|
The gnome-doc-utils package 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. It also
|
|
contains the DocBook XSLT stylesheets that were once distributed with
|
|
Yelp.
|
|
|
|
%package -n xml2po
|
|
License: GPLv2+
|
|
Summary: Tool to extract translatable content from XML documents
|
|
Group: System/GUI/GNOME
|
|
Requires: libxml2-python
|
|
%py_requires
|
|
|
|
%description -n xml2po
|
|
xml2po is a simple Python program which extracts translatable
|
|
content from free-form XML documents and outputs gettext compatible
|
|
POT files.
|
|
|
|
%package devel
|
|
License: GPLv2+ ; LGPLv2.1+
|
|
Summary: A Collection of Documentation Utilities for GNOME
|
|
Group: System/GUI/GNOME
|
|
Requires: %{name} = %{version}
|
|
# For the validation with xsltproc to use a local DTD
|
|
Requires: docbook_4
|
|
# Needed by packages being built with gnome-doc-utils, unless they
|
|
# use --disable-scrollkeeper
|
|
Requires: scrollkeeper
|
|
Requires: xml2po-devel
|
|
|
|
%description devel
|
|
The gnome-doc-utils package 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. It also
|
|
contains the DocBook XSLT stylesheets that were once distributed with
|
|
Yelp.
|
|
|
|
%package -n xml2po-devel
|
|
License: GPLv2+
|
|
Summary: Tool to extract translatable content from XML documents
|
|
Group: System/GUI/GNOME
|
|
Requires: libxml2-devel
|
|
Requires: xml2po = %{version}
|
|
|
|
%description -n xml2po-devel
|
|
xml2po is a simple Python program which extracts translatable
|
|
content from free-form XML documents and outputs gettext compatible
|
|
POT files.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
translation-update-upstream
|
|
|
|
%build
|
|
%configure\
|
|
--disable-scrollkeeper
|
|
make %{?jobs:-j%jobs} pkgconfigdir=%{_datadir}/pkgconfig
|
|
|
|
%install
|
|
%makeinstall pkgconfigdir=%{_datadir}/pkgconfig
|
|
%if 0%{?suse_version} <= 1120
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
%endif
|
|
%find_lang %{name} %{?no_lang_C}
|
|
%find_lang gnome-doc-make %{?no_lang_C} %{name}.lang
|
|
%find_lang gnome-doc-xslt %{?no_lang_C} %{name}.lang
|
|
%fdupes %{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
%dir %{_datadir}/gnome/
|
|
%dir %{_datadir}/gnome/help/
|
|
%dir %{_datadir}/omf/
|
|
%dir %{_datadir}/gnome/help/gnome-doc-make/
|
|
%doc %{_datadir}/gnome/help/gnome-doc-make/C/
|
|
%dir %{_datadir}/omf/gnome-doc-make/
|
|
%doc %{_datadir}/omf/gnome-doc-make/gnome-doc-make-C.omf
|
|
%dir %{_datadir}/gnome/help/gnome-doc-xslt/
|
|
%doc %{_datadir}/gnome/help/gnome-doc-xslt/C/
|
|
%dir %{_datadir}/omf/gnome-doc-xslt/
|
|
%doc %{_datadir}/omf/gnome-doc-xslt/gnome-doc-xslt-C.omf
|
|
%{_bindir}/gnome-doc-tool
|
|
%dir %{_datadir}/gnome-doc-utils
|
|
%{_datadir}/gnome-doc-utils/icons
|
|
%{_datadir}/gnome-doc-utils/watermarks
|
|
%{_datadir}/xml/gnome
|
|
%{_datadir}/xml/mallard
|
|
|
|
%files -n xml2po
|
|
%defattr (-, root, root)
|
|
%doc xml2po/AUTHORS xml2po/ChangeLog xml2po/COPYING xml2po/NEWS xml2po/README
|
|
%{_bindir}/xml2po
|
|
%{python_sitelib}/xml2po
|
|
%{_mandir}/man?/xml2po.*
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%{_bindir}/gnome-doc-prepare
|
|
%{_datadir}/aclocal/gnome-doc-utils.m4
|
|
%{_datadir}/pkgconfig/gnome-doc-utils.pc
|
|
%{_datadir}/gnome-doc-utils/gnome-doc-utils.make
|
|
%{_datadir}/gnome-doc-utils/templates
|
|
%{_datadir}/gnome-doc-utils/template*.*
|
|
|
|
%files -n xml2po-devel
|
|
%defattr (-, root, root)
|
|
%{_datadir}/pkgconfig/xml2po.pc
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|