File gnome-user-docs.spec of Package gnome-user-docs
#
# spec file for package gnome-user-docs
#
# 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-user-docs
Version: 2.32.0
Release: 2
License: GFDL 1.1
Summary: GNOME 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
Recommends: %{name}-lang
# This package should probably supplement more than just nautilus...
Supplements: nautilus
# Old name, for openSUSE <= 11.2
Provides: gnome2-user-docs = %{version}
Obsoletes: gnome2-user-docs < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package contains documents that are targeted for GNOME end-users.
%lang_package
%prep
%setup -q
%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 %{?no_lang_C}
%find_lang gnome-access-guide %{?no_lang_C} user-guide.lang
%find_lang system-admin-guide %{?no_lang_C} user-guide.lang
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING NEWS
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/omf/
%dir %{_datadir}/gnome/help/user-guide/
%doc %{_datadir}/gnome/help/user-guide/C/
%dir %{_datadir}/omf/user-guide/
%doc %{_datadir}/omf/user-guide/user-guide-C.omf
%dir %{_datadir}/gnome/help/gnome-access-guide/
%doc %{_datadir}/gnome/help/gnome-access-guide/C/
%dir %{_datadir}/omf/gnome-access-guide/
%doc %{_datadir}/omf/gnome-access-guide/gnome-access-guide-C.omf
%dir %{_datadir}/gnome/help/system-admin-guide/
%doc %{_datadir}/gnome/help/system-admin-guide/C/
%dir %{_datadir}/omf/system-admin-guide/
%doc %{_datadir}/omf/system-admin-guide/system-admin-guide-C.omf
%files lang -f user-guide.lang
%changelog