File gnome-devel-docs.spec of Package gnome-devel-docs
#
# spec file for package gnome-devel-docs
#
# Copyright (c) 2012 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-devel-docs
Version: 3.6.2
Release: 0
Summary: GNOME Platform Documentation
License: GFDL-1.1
Group: Documentation/Other
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-devel-docs/3.6/%{name}-%{version}.tar.xz
BuildRequires: fdupes
# Needed to get the fix from gnome-doc-utils in here. Can be removed once g-d-u does no longer carry a patch
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: pkg-config
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package contains documents that are useful for GNOME developers.
%lang_package
%prep
%setup -q
# WEIRD HACK to get around bgo#682987 -- Figure is likely wrong, but better than nothing.
if [ -f platform-demos/C/media/03_jssignal_02b.png ]; then
echo "platform-demos/C/media/03_jssignal_02.png exists... please remove this hack"
/bin/false
else
cp platform-demos/C/media/03_jssignal_02.png platform-demos/C/media/03_jssignal_02b.png
fi
%build
# Needed to get the fix from gnome-doc-utils in here. Can be removed once g-d-u does no longer carry a patch
NOCONFIGURE=1 gnome-autogen.sh
%configure\
--disable-scrollkeeper
make %{?_smp_mflags}
%install
%make_install
%find_lang accessibility-devel-guide %{?no_lang_C} devel-docs.lang
%find_lang gnome-devel-demos %{no_lang_C} devel-docs.lang
%find_lang hig-book %{?no_lang_C} devel-docs.lang
%find_lang integration-guide %{?no_lang_C} devel-docs.lang
%find_lang optimization-guide %{?no_lang_C} devel-docs.lang
%find_lang platform-overview %{?no_lang_C} devel-docs.lang
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/accessibility-devel-guide/
%doc %{_datadir}/gnome/help/accessibility-devel-guide/C/
%dir %{_datadir}/gnome/help/gnome-devel-demos/
%doc %{_datadir}/gnome/help/gnome-devel-demos/C/
%dir %{_datadir}/gnome/help/hig-book/
%doc %{_datadir}/gnome/help/hig-book/C/
%dir %{_datadir}/gnome/help/integration-guide/
%doc %{_datadir}/gnome/help/integration-guide/C/
%dir %{_datadir}/gnome/help/optimization-guide/
%doc %{_datadir}/gnome/help/optimization-guide/C/
%dir %{_datadir}/gnome/help/platform-overview/
%doc %{_datadir}/gnome/help/platform-overview/C/
%files lang -f devel-docs.lang
%changelog