File libyui-gtk-pkg-doc.spec of Package libyui-gtk-pkg

#
# spec file for package libyui-gtk-pkg (Version 2.42.2)
#
# 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:		libyui-gtk-pkg-doc
Version:	2.42.2
Release:	0
License:	LGPL-2.1 or LGPL-3.0
Source:		libyui-gtk-pkg-%{version}.tar.bz2
Group:		Documentation/HTML

BuildArch:	noarch

BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  graphviz-gnome
BuildRequires:  texlive-latex
BuildRequires:  cmake >= 2.8
BuildRequires:  gcc-c++
BuildRequires:  libyui-devel


URL:		http://github.com/libyui/
Summary:	Libyui-gtk-pkg documentation

%description
This package contains the Gtk package selector
component for libYUI.


This package provides the documentation. (HTML & PDF)


%prep


%setup -n libyui-gtk-pkg-%{version}


%build

export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"

mkdir build
cd build
cmake .. \
	-DDOC_DIR=%{_docdir} \
	-DDOCS_ONLY=ON

make %{?jobs:-j%jobs} docs


%install
cd build
make install DESTDIR="$RPM_BUILD_ROOT"

%fdupes -s $RPM_BUILD_ROOT/%_docdir/libyui-gtk-pkg4


%clean
rm -rf "$RPM_BUILD_ROOT"


%files
%defattr(-,root,root)
%doc %{_docdir}/libyui-gtk-pkg4

%changelog
openSUSE Build Service is sponsored by