File gconfmm.spec of Package gconfmm

#
# spec file for package gconfmm
#
# 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:           gconfmm
Version:        2.28.2
Release:        5
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to <
# FIXME: if there is a new upstream version, remove --disable-documentation from configure: this is right now broken because of the move to mm-common upstream, and we need a tarball to have this work. See bgo#648860.
License:        LGPLv2.1+
Summary:        C++ Interface for GConf
Url:            http://www.gtkmm.org/
Group:          System/GUI/GNOME
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
License:        LGPLv2.1+
Summary:        C++ Interface for GConf
Group:          System/GUI/GNOME
Provides:       %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.28.2 (when this provides/obsoletes was introduced)
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
License:        LGPLv2.1+
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 \
        --disable-documentation
make %{?jobs:-j%jobs}

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

%clean
rm -rf %{buildroot}

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

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

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

%files devel
%defattr (-, root, root)
#%%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
openSUSE Build Service is sponsored by