File gnome2-user-docs.spec of Package gnome2-user-docs
#
# spec file for package gnome2-user-docs (Version 2.28.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: gnome2-user-docs
# FIXME: Rename package to gnome-user-docs, as it was done in upstream long time ago.
%define _name gnome-user-docs
Version: 2.28.0
Release: 1
License: GFDL 1.1
Summary: GNOME 2.x Desktop Documentation
Url: http://www.gnome.org
Group: Documentation/Other
Source: %{_name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: libxslt
BuildRequires: pkg-config
Requires: %{name}-lang = %{version}
# This package should probably supplement more than just nautilus...
Supplements: nautilus
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package contains documents that are targeted for GNOME end-users.
%lang_package
%prep
%setup -q -n %{_name}-%{version}
%build
%configure\
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
for xml in %{buildroot}%{_datadir}/gnome/help/*/*/*.xml; do
if echo $xml | egrep 'share/gnome/help/([^/]*)/[^/]*/\1\.xml$' > /dev/null; then
meinproc --cache `echo $xml | sed 's/xml$/cache.bz2/'` $xml || :
fi
done
%find_lang user-guide
%find_lang gnome-access-guide user-guide.lang
%find_lang system-admin-guide user-guide.lang
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING NEWS
%files lang -f user-guide.lang
%defattr(-,root,root)
# Temporary workaround to not depend on libgnome: own the directories
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%changelog