File gtksourceviewmm2.spec of Package gtksourceviewmm2

#
# spec file for package gtksourceviewmm2
#
# Copyright (c) 2012 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:           gtksourceviewmm2
%define _name   gtksourceviewmm
Version:        2.10.3
Release:        0
Summary:        C++ interface for gtksourceview
License:        LGPL-2.1+
Group:          System/Libraries
Url:            http://projects.gnome.org/gtksourceviewmm/
Source0:        http://download.gnome.org/sources/gtksourceviewmm/2.10/%{_name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(gtkmm-2.4)
BuildRequires:  pkgconfig(gtksourceview-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gtksourceviewmm provides a C++ interface to the gtksourceview library.

%package -n libgtksourceviewmm-2_0-2
Summary:        C++ interface for gtksourceview
Group:          System/Libraries

%description -n libgtksourceviewmm-2_0-2
gtksourceviewmm provides a C++ interface to the gtksourceview library.

%package devel
Summary:        C++ interface for gtksourceview -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libgtksourceviewmm-2_0-2 = %{version}
# Packages that were created by libgtksourceviewmm
Provides:       libgtksourceviewmm-2_0-devel = %{version}
Obsoletes:      libgtksourceviewmm-2_0-devel < %{version}
Provides:       libgtksourceviewmm-doc = %{version}
Obsoletes:      libgtksourceviewmm-doc < %{version}

%description devel
gtksourceviewmm provides a C++ interface to the gtksourceview library.

%prep
%setup -q -n %{_name}-%{version}

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

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

%post -n libgtksourceviewmm-2_0-2 -p /sbin/ldconfig

%postun -n libgtksourceviewmm-2_0-2 -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n libgtksourceviewmm-2_0-2
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%doc %{_datadir}/devhelp/books/gtksourceviewmm-2.0/
%doc %{_datadir}/doc/gtksourceviewmm-2.0/
%{_includedir}/gtksourceviewmm-2.0/
%{_libdir}/gtksourceviewmm-2.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/gtksourceviewmm-2.0.pc

%changelog
openSUSE Build Service is sponsored by