File libgtksourceviewmm.spec of Package libgtksourceviewmm

#
# spec file for package libgtksourceviewmm (Version 1.9.5)
#
# Copyright (c) 2009 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:           libgtksourceviewmm
Version:        1.9.5
Release:        4
Summary:        C++ bindings for libgtksourceview
Group:          System/Libraries
License:        LGPL v2.1 or later
Url:            http://home.gna.org/gtksourceviewmm/
Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgtksourceviewmm/0.2/%{name}-%{version}.tar.bz2
Patch0:         libgtksourceviewmm-missing-include.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libgtksourceviewmm-2_0-2 = %{version}-%{release}
BuildRequires:  doxygen gcc-c++
BuildRequires:  gtkmm2-devel >= 2.4
%if %{?suse_version} >= 1030 && %{?suse_version} <= 1100
BuildRequires:  gtksourceview18-devel
%else
BuildRequires:  gtksourceview-devel
%endif
%if 0%{?suse_version} < 1030
# Preserve old _docdir before _prefix is overridden
%define _docdir %{_datadir}/doc
%define _prefix /opt/gnome
%endif

%description
libgtksourceviewmm is a C++ wrapper for the gtksourceview widget
library. It offers all the power of gtksourceview with an interface
familiar to c++ developers, including users of the gtkmm library.



Authors:
--------
    Dodji Seketeli
    Rob Page

%package -n libgtksourceviewmm-2_0-2
License:        LGPL v2.1 or later
Summary:        C++ bindings for libgtksourceview
Group:          System/Libraries

%description -n libgtksourceviewmm-2_0-2
libgtksourceviewmm is a C++ wrapper for the gtksourceview widget
library. It offers all the power of gtksourceview with an interface
familiar to c++ developers, including users of the gtkmm library.



Authors:
--------
    Dodji Seketeli
    Rob Page

%package doc
License:        LGPL v2.1 or later
Summary:        C++ bindings for libgtksourceview
Group:          System/Libraries

%description doc
libgtksourceviewmm is a C++ wrapper for the gtksourceview widget
library. It offers all the power of gtksourceview with an interface
familiar to c++ developers, including users of the gtkmm library.



Authors:
--------
    Dodji Seketeli
    Rob Page

%package        -n libgtksourceviewmm-2_0-devel
License:        LGPL v2.1 or later
Summary:        C++ bindings for libgtksourceview
Group:          System/Libraries
Requires:       %{name}-2_0-2 = %{version}-%{release}
Requires:       gtkmm2-devel, pkgconfig, automake, doxygen
%if %{?suse_version} >= 1030 && %{?suse_version} <= 1100
Requires:       gtksourceview18-devel
%else
Requires:       gtksourceview-devel
%endif

%description    -n libgtksourceviewmm-2_0-devel
libgtksourceviewmm is a C++ wrapper for the gtksourceview widget
library. It offers all the power of gtksourceview with an interface
familiar to c++ developers, including users of the gtkmm library.



Authors:
--------
    Dodji Seketeli
    Rob Page

%prep
%setup -q
%patch0

%build
%configure --disable-static --docdir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}

%install
make INSTALL="install -c -p" DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name 'Makefile*' -exec rm -f {} ';'
# makefile does not honour _docdir
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}
mv $RPM_BUILD_ROOT/%{_datadir}/doc/libgtksourceviewmm-2.0 $RPM_BUILD_ROOT/%{_docdir}/%{name}

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

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

%clean
rm -rf $RPM_BUILD_ROOT

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

%files -n libgtksourceviewmm-2_0-devel
%defattr(-,root,root,-)
%doc ChangeLog NEWS
%{_includedir}/gtksourceviewmm-2.0
%{_libdir}/gtksourceviewmm-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-, root, root, -)
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/libgtksourceviewmm-2.0

%changelog
openSUSE Build Service is sponsored by