File libglademm.spec of Package libglademm
#
# spec file for package libglademm
#
# Copyright (c) 2018 SUSE LINUX 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: libglademm
Version: 2.6.7
Release: 0
Summary: C++ Interface for libglade (Part of GNOME Project)
License: LGPL-2.1-or-later
Group: System/GUI/GNOME
URL: http://www.gtkmm.org/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: gtkmm2-devel
BuildRequires: libglade2-devel
BuildRequires: update-desktop-files
%description
This package provides a C++ interface for libglade. It is a subpackage
of the gnomemm project. The interface provides a convenient interface
for C++ programmers to use libglade with flexible object-oriented
framework.
%package devel
Summary: C++ interface for libglade (a part of GNOME project)
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: glibmm2-devel
Requires: gtkmm2-devel
Requires: libglade2-devel
Requires: libglademm-2_4-1
%description devel
This package provides a C++ interface for libglade. It is a subpackage
of the gnomemm project. The interface provides a convenient interface
for C++ programmers to use libglade with flexible object-oriented
framework.
%package -n libglademm-2_4-1
Summary: C++ Interface for libglade (Part of GNOME Project)
Group: System/GUI/GNOME
Requires: %{name} >= %{version}
%description -n libglademm-2_4-1
This package provides a C++ interface for libglade. It is a subpackage
of the gnomemm project. The interface provides a convenient interface
for C++ programmers to use libglade with flexible object-oriented
framework.
%prep
%setup -q
%build
%configure --disable-static --with-pic
make docdir=%{_docdir}/%{name}/docs %{?_smp_mflags}
%install
make docdir=%{_docdir}/%{name}/docs DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_docdir}/%{name}
cp AUTHORS ChangeLog NEWS README TODO %{buildroot}%{_docdir}/%{name}
%post -n libglademm-2_4-1 -p /sbin/ldconfig
%postun -n libglademm-2_4-1 -p /sbin/ldconfig
%files
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%license COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%files -n libglademm-2_4-1
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/libglademm-2.4
%{_libdir}/pkgconfig/*.pc
%exclude %{_libdir}/*.la
%{_datadir}/devhelp/books/libglademm-2.4
%doc %{_docdir}/%{name}/docs
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books
%changelog