File cairomm.spec of Package cairomm

#
# spec file for package cairomm (Version 1.9.8)
#
# 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:           cairomm
Version:        1.9.8
Release:        1
License:        LGPLv2.1+
Summary:        C++ Interface for Cairo
Url:            http://cairographics.org
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  cairo-devel
# needs doxygen for the documentation
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  libsigc++2-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides a C++ interface for Cairo.

%package -n libcairomm-1_0-1
License:        LGPLv2.1+
Summary:        C++ interface for Cairo
Group:          System/GUI/GNOME
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n libcairomm-1_0-1
This package provides a C++ interface for Cairo.

%package devel
License:        LGPLv2.1+
Summary:        C++ interface for Cairo
Group:          Development/Libraries/GNOME
Requires:       libcairomm-1_0-1 = %{version}

%description devel
This package provides a C++ interface for Cairo.

%package doc
License:        LGPLv2.1+
Summary:        C++ Interface for Cairo
Group:          Documentation/HTML

%description doc
This package provides a C++ interface for Cairo.

%prep
%setup -q

%build
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -n libcairomm-1_0-1 -p /sbin/ldconfig

%postun -n libcairomm-1_0-1 -p /sbin/ldconfig

%files -n libcairomm-1_0-1
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%dir %{_libdir}/cairomm-1.0/
%{_libdir}/cairomm-1.0/include
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%files doc
%defattr (-, root, root)
%{_datadir}/devhelp/books/cairomm-1.0
%{_datadir}/doc/cairomm-1.0
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books

%changelog