File gdlmm.spec of Package gdlmm
#
# spec file for package gdlmm
#
# 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: gdlmm
Version: 3.3.2
Release: 0
Summary: C++ interface for gdl
License: LGPL-2.1+
Group: System/Libraries
Url: http://git.gnome.org/gdlmm/
Source0: http://download.gnome.org/sources/gdlmm/3.3/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gdlmm-gdl-3_4.patch dimstar@opensuse.org -- Fix build with gdl 3.4.0. Taken from git.
Patch0: gdlmm-gdl-3_4.patch
# PATCH-FIX-UPSTREAM gdlmm-gdl-3_6.patch bgo#688095 bgo#688141 dimstar@opensuse.org -- Fix build with gdl 3.6.0
Patch1: gdlmm-gdl-3_6.patch
# Needed for patch0
BuildRequires: doxygen
BuildRequires: gcc-c++
# Needed for patch0
BuildRequires: graphviz
# Needed for patch0
BuildRequires: xsltproc
BuildRequires: perl(XML::Parser)
BuildRequires: pkgconfig(gdl-3.0) >= 3.0
BuildRequires: pkgconfig(glibmm-2.4) >= 2.16
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gdlmm provides a C++ interface to the gdl library.
%package -n libgdlmm-3_0-1
Summary: C++ interface for gdl
Group: System/Libraries
%description -n libgdlmm-3_0-1
gdlmm provides a C++ interface to the gdl library.
%package devel
Summary: C++ interface for gdl -- Development Files
Group: Development/Libraries/C and C++
Requires: libgdlmm-3_0-1 = %{version}
%description devel
gdlmm provides a C++ interface to the gdl library.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
# --enable-maintainer-mode and --enable-documentation are needed fro patch0.
%configure \
--disable-static \
--enable-maintainer-mode \
--enable-documentation
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%post -n libgdlmm-3_0-1 -p /sbin/ldconfig
%postun -n libgdlmm-3_0-1 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n libgdlmm-3_0-1
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libgdlmm-3.0.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/gdlmm-3.0/
%{_libdir}/gdlmm-3.0/
%{_libdir}/libgdlmm-3.0.so
%{_libdir}/pkgconfig/gdlmm-3.0.pc
%doc %{_datadir}/devhelp/books/gdlmm-3.0/
%doc %{_datadir}/doc/gdlmm-3.0/
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books
%changelog