File cairomm.spec of Package cairomm

#
# spec file for package cairomm
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           cairomm
Version:        1.15.5
Release:        0
Summary:        C++ Interface for Cairo
License:        LGPL-2.1-or-later
Group:          System/GUI/GNOME
URL:            http://cairographics.org
Source:         https://www.cairographics.org/releases/%{name}-%{version}.tar.gz
Source99:       baselibs.conf
# needs doxygen for the documentation
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  mm-common
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xsltproc
BuildRequires:  pkgconfig(cairo) >= 1.10.0
BuildRequires:  pkgconfig(sigc++-3.0) >= 2.5.1

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

%package -n libcairomm-1_16-1
Summary:        C++ interface for Cairo
Group:          System/Libraries

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

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

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

%package doc
Summary:        C++ Interface for Cairo
Group:          Documentation/HTML

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

%prep
%setup -q

%build
export CXXFLAGS="-std=c++17 %{optflags}"
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libcairomm-1_16-1 -p /sbin/ldconfig
%postun -n libcairomm-1_16-1 -p /sbin/ldconfig

%files -n libcairomm-1_16-1
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/*.so.*

%files devel
%{_libdir}/*.so
%dir %{_libdir}/cairomm-1.16/
%{_libdir}/cairomm-1.16/include
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%files doc
%{_datadir}/devhelp/books/cairomm-1.16
%{_datadir}/doc/cairomm-1.16
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books

%changelog
openSUSE Build Service is sponsored by