File libgnomemm.spec of Package libgnomemm
#
# spec file for package libgnomemm
#
# 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/
#
%define so_ver -2_6-1
Name: libgnomemm
Version: 2.30.0
Release: 0
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to <
Summary: C++ Interface for GNOME Libraries (a GUI Library for X)
License: LGPL-2.1+
Group: System/Libraries
Url: http://www.gtkmm.org/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: gtkmm2-devel
BuildRequires: libgnome-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides a C++ interface for GnomeUI. It is a subpackage
of the GTK-- project. The interface provides a convenient interface
for C++ programmers to create GNOME GUIs with GTK+'s flexible
object-oriented framework.
%package -n libgnomemm%{so_ver}
Summary: C++ Interface for GNOME libs (a GUI library for X)
Group: System/Libraries
Provides: %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.30.0 (when this provides/obsoletes was introduced)
Obsoletes: %{name} <= %{version}
%description -n libgnomemm%{so_ver}
This package provides a C++ interface for GnomeUI. It is a subpackage
of the GTK-- project. The interface provides a convenient interface
for C++ programmers to create GNOME GUIs with GTK+'s flexible
object-oriented framework.
%package devel
Summary: C++ Interface for GNOME libs (a GUI library for X)
Group: Development/Libraries/GNOME
Requires: libgnomemm%{so_ver} = %{version}
%description devel
This package provides a C++ interface for GnomeUI. It is a subpackage
of the GTK-- project. The interface provides a convenient interface
for C++ programmers to create GNOME GUIs with GTK+'s flexible
object-oriented framework.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%post -n libgnomemm%{so_ver} -p /sbin/ldconfig
%postun -n libgnomemm%{so_ver} -p /sbin/ldconfig
%files -n libgnomemm%{so_ver}
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%doc docs/reference/html
%{_includedir}/*
%{_libdir}/*.so
%dir %{_libdir}/libgnomemm-2.6
%dir %{_libdir}/libgnomemm-2.6/proc
%{_libdir}/libgnomemm-2.6/include/
%{_libdir}/libgnomemm-2.6/proc/m4/
%{_libdir}/pkgconfig/*.pc
%changelog