File gconfmm.spec of Package gconfmm

#
# spec file for package gconfmm
#
# 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:           gconfmm
Version:        2.28.3
Release:        0
Summary:        C++ Interface for GConf
License:        LGPL-2.1-or-later
Group:          System/GUI/GNOME
URL:            http://www.gtkmm.org/
Source:         http://download.gnome.org/sources/gconfmm/2.28/%{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glibmm-2.4)

%description
This package provides a C++ interface for GConf. It is a subpackage of
the gnomemm project. The interface provides a convenient interface for
C++ programmers to use GConf with flexible object-oriented framework.

%package -n libgconfmm-2_6-1
Summary:        C++ Interface for GConf
Group:          System/Libraries
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n libgconfmm-2_6-1
This package provides a C++ interface for GConf. It is a subpackage of
the gnomemm project. The interface provides a convenient interface for
C++ programmers to use GConf with flexible object-oriented framework.

%package devel
Summary:        C++ Interface for GConf
Group:          System/GUI/GNOME
Requires:       libgconfmm-2_6-1 = %{version}

%description devel
This package provides a C++ interface for GConf. It is a subpackage of
the gnomemm project. The interface provides a convenient interface for
C++ programmers to use GConf with flexible object-oriented framework.

%prep
%setup -q

%build
%configure \
        --disable-static
make %{?_smp_mflags}

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

%post -n libgconfmm-2_6-1 -p /sbin/ldconfig
%postun -n libgconfmm-2_6-1 -p /sbin/ldconfig

%files -n libgconfmm-2_6-1
%license COPYING
%doc AUTHORS ChangeLog INSTALL NEWS README
%{_libdir}/*.so.*

%files devel
%doc %{_datadir}/doc/gconfmm-2.6/
%doc %{_datadir}/devhelp/books/gconfmm-2.6/
%{_includedir}/gconfmm-2.6/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/gconfmm-2.6/

%changelog