File pangomm.spec of Package pangomm

#
# spec file for package pangomm
#
# Copyright (c) 2013 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/
#


# Update baselibs.conf when changing this
%define so_ver -1_4-1

Name:           pangomm
Version:        2.34.0
Release:        0
Summary:        C++ interface for pango
License:        GPL-2.0+ and LGPL-2.0+
Group:          Development/Libraries/C and C++
Url:            http://www.gtkmm.org
Source:         http://download.gnome.org/sources/pangomm/2.34/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(cairomm-1.0) >= 1.2.2
BuildRequires:  pkgconfig(glibmm-2.4) >= 2.36.0
BuildRequires:  pkgconfig(pangocairo) >= 1.23.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pangomm provides a C++ interface to the pango library.

%package -n libpangomm%{so_ver}

Summary:        C++ interface for pango
Group:          Development/Libraries/C and C++

%description -n libpangomm%{so_ver}
pangomm provides a C++ interface to the pango library.

%package devel
Summary:        C++ interface for pango -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libpangomm%{so_ver} = %{version}

%description devel
pangomm provides a C++ interface to the pango library.

%package doc
Summary:        C++ interface for pango -- Developer Documentation
Group:          Development/Libraries/C and C++

%description doc
pangomm provides a C++ interface to the pango library.

%prep
%setup

%build
%configure --disable-static
make %{?jobs:-j%jobs}

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

%clean
rm -rf %{buildroot}

%post -n libpangomm%{so_ver} -p /sbin/ldconfig

%postun -n libpangomm%{so_ver} -p /sbin/ldconfig

%files -n libpangomm%{so_ver}
%defattr (-, root, root)
%doc AUTHORS NEWS README
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/pangomm-1.4

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

%changelog
openSUSE Build Service is sponsored by