File gtkmm-documentation.spec of Package gtkmm-documentation

#
# spec file for package gtkmm-documentation
#
# 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:           gtkmm-documentation
Version:        2.22.0
Release:        3
License:        GFDL 1.2 ; GPLv2+
Summary:        C++ Bindings for GTK+ -- Documentation
Url:            http://www.gnome.org
Group:          Documentation/Other
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  glibmm2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtkmm2-devel
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 2. Highlights include typesafe callbacks, widgets extensible via
inheritance, and a comprehensive set of widget classes that can be
freely combined to quickly create complex user interfaces.

%package -n gtkmm2-tutorial
License:        GFDL 1.2 ; GPLv2+
Group:          Documentation/Other
Summary:        C++ Bindings for GTK+ -- Tutorial
Requires:       gtkmm2-doc
Supplements:    gtkmm2-doc

%description -n gtkmm2-tutorial
Gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 2. Highlights include typesafe callbacks, widgets extensible via
inheritance, and a comprehensive set of widget classes that can be
freely combined to quickly create complex user interfaces.

%lang_package -n gtkmm2-tutorial
%prep
%setup -q

%build
%configure\
	--disable-scrollkeeper
# Note keep gtkmm_docdir in sync with what is used in gtkmm2
make %{?jobs:-j%jobs} gtkmm_docdir=%{_docdir}/gtkmm2/docs

%install
%makeinstall gtkmm_docdir=%{_docdir}/gtkmm2/docs
%find_lang gtkmm-tutorial %{?no_lang_C}

%clean
rm -rf %{buildroot}

%files -n gtkmm2-tutorial
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING.examples NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/gtkmm-tutorial/
%doc %{_datadir}/gnome/help/gtkmm-tutorial/C/
%dir %{_docdir}/gtkmm2
%dir %{_docdir}/gtkmm2/docs
%{_docdir}/gtkmm2/docs/tutorial/

%files -n gtkmm2-tutorial-lang -f gtkmm-tutorial.lang

%changelog