File libyui-doc.spec of Package libyui

# spec file for package libyui-doc
# Copyright (c) 2016 SUSE LINUX 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

%define parent libyui
%define so_version 7

Name:           %{parent}-doc
Version:        3.2.9
Release:        0
Source:         %{parent}-%{version}.tar.bz2

BuildArch:      noarch

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

Summary:        Libyui documentation
License:        LGPL-2.1 or LGPL-3.0
Group:          Documentation/HTML

This is the user interface engine that provides the abstraction from
graphical user interfaces (Qt, Gtk) and text based user interfaces

Originally developed for YaST, it can now be used independently of
YaST for generic (C++) applications. This package has very few

This package provides the documentation. (HTML & PDF)


%setup -n %{parent}-%{version}



./ %{_prefix}

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

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

cd build
make install DESTDIR="$RPM_BUILD_ROOT"

%fdupes -s $RPM_BUILD_ROOT/%_docdir/%{parent}%{so_version}

rm -rf "$RPM_BUILD_ROOT"

%doc %{_docdir}/%{parent}%{so_version}