File libglademm.spec of Package libglademm
#
# spec file for package libglademm (Version 2.6.7)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: libglademm
BuildRequires: gcc-c++ gtkmm2-devel libglade2-devel update-desktop-files
Version: 2.6.7
Release: 3
Url: http://www.gtkmm.org/
Group: System/GUI/GNOME
License: LGPLv2.1+
Summary: C++ Interface for libglade (Part of GNOME Project)
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
%package devel
License: LGPLv2.1+
Group: System/GUI/GNOME
Summary: C++ interface for libglade (a part of GNOME project)
Requires: %{name} = %{version} gtkmm2-devel glibmm2-devel 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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
%package -n libglademm-2_4-1
License: LGPLv2.1+
Group: System/GUI/GNOME
Summary: C++ Interface for libglade (Part of GNOME Project)
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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
%prep
%setup -q
%build
libtoolize -f
aclocal -I scripts
automake
autoconf
# FIXME: cannot autoreconf - bad template
#ACLOCAL="aclocal -I scripts" autoreconf -f -i
%configure --disable-static --with-pic
make docdir=%{_docdir}/%{name}/docs %{?jobs:-j%jobs}
%install
make docdir=%{_docdir}/%{name}/docs DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp AUTHORS COPYING ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libglademm-2_4-1 -p /sbin/ldconfig
%postun -n libglademm-2_4-1 -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%files -n libglademm-2_4-1
%defattr(-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%{_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