# # spec file for package gnome-doc-utils (Version 0.18.0) # # Copyright (c) 2009 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.18.0 Release: 1 License: GPL v2 or later ; LGPL v2.1 or later 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: %{name}-lang = %{version} Requires: libxml2-python Requires: libxslt BuildRoot: %{_tmppath}/%{name}-%{version}-build %py_requires %if %suse_version <= 1110 %define python_sitelib %{py_sitedir} %endif %description The gnome-doc-utils package is a collection of documentation utilities for the GNOMEproject. 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. Starting with GNOME 2.8, Yelp requires gnome-doc-utils for XSLT. It also contains the Python program xml2po that extracts translatable content from XML documents and outputs gettext-compatible POT files. For simple tags, it works out-of-the-box. For complicated tags, provide a list of all tags that are considered "final" (tags with contents that should be put into one "message" in the POT file), "ignored" (skipped over), and "space preserving". Sane defaults are available for DocBook documents and other common document types (like GNOME Summaries and XHTML). For other kinds of documents, it is possible to use -a (--automatic-tags) to choose suitable translatable pieces. %package devel License: GPL v2 or later ; LGPL v2.1 or later Summary: A Collection of Documentation Utilities for GNOME Group: System/GUI/GNOME Requires: %{name} = %{version} Requires: libxml2-devel # Needed by packages being built with gnome-doc-utils, unless they # use --disable-scrollkeeper Requires: scrollkeeper %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. Starting with GNOME 2.8, Yelp requires gnome-doc-utils for XSLT. It also contains the Python program xml2po that extracts translatable content from XML documents and outputs gettext-compatible POT files. For simple tags, it works out-of-the-box. For complicated tags, provide a list of all tags that are considered "final" (tags with contents that should be put into one "message" in the POT file), "ignored" (skipped over), and "space preserving". Sane defaults are available for DocBook documents and other common document types (like GNOME Summaries and XHTML). For other kinds of documents, it is possible to use -a (--automatic-tags) to choose suitable translatable pieces. %lang_package %prep %setup -q translation-update-upstream %build # autoreconf fails... # ACLOCAL="aclocal -I $PWD" autoreconf -f -i %configure\ --disable-scrollkeeper make %{?jobs:-j%jobs} pkgconfigdir=%{_datadir}/pkgconfig %install %makeinstall pkgconfigdir=%{_datadir}/pkgconfig %find_lang %{name} %find_lang gnome-doc-mallard-spec %{name}.lang %find_lang gnome-doc-make %{name}.lang %find_lang gnome-doc-xslt %{name}.lang %fdupes %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README # xml2po stuff %{_bindir}/xml2po %{python_sitelib}/xml2po # gnome-doc-tool stuff %{_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 # Misc. %{_mandir}/man?/*.* %files devel %defattr (-, root, root) %{_bindir}/gnome-doc-prepare %{_datadir}/aclocal/gnome-doc-utils.m4 %{_datadir}/pkgconfig/*.pc %{_datadir}/gnome-doc-utils/gnome-doc-utils.make %{_datadir}/gnome-doc-utils/templates %{_datadir}/gnome-doc-utils/template*.* %files lang -f %{name}.lang %defattr (-, root, root) # Own these directories to not depend on gnome-common while building: %dir %{_datadir}/gnome %dir %{_datadir}/gnome/help # Own this directory to not depend on scrollkeeper %dir %{_datadir}/omf %changelog