File libbeagle.spec of Package libbeagle
#
# spec file for package libbeagle (Version 0.3.9)
#
# 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/
#
# norootforbuild
Name: libbeagle
BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libxml2-devel
BuildRequires: python-gtk-devel
License: MIT License (or similar)
Group: Development/Libraries/GNOME
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: libbeagle-64bit
%endif
#
Version: 0.3.9
Release: 2
Summary: Beagle C Interface
Url: http://www.gnome.org/projects/beagle/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: libbeagle-0.3.5.1-pkgconfig.patch
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%description
Library to talk to the beagle server in C.
%package -n libbeagle1
License: MIT License (or similar)
Summary: Beagle C Interface
Group: Development/Libraries/GNOME
# Added for openSUSE 11.0
Provides: libbeagle
Obsoletes: libbeagle < %{version}
%description -n libbeagle1
Library to talk to the beagle server in C.
%package devel
License: MIT License (or similar)
Summary: Beagle C interface development files
Group: Development/Libraries/GNOME
Requires: libbeagle1 = %{version} glib2-devel
Requires: libbeagle-python = %{version}
%description devel
This package contains files needed to develop applications using the
beagle Library.
%package python
License: MIT License (or similar)
Summary: Beagle Python Interface
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
# bug437293
%ifarch ppc64
Obsoletes: libbeagle-64bit
%endif
#
%py_requires
%description python
Library to talk to the beagle server in python.
%package doc
License: MIT License (or similar)
Summary: Beagle C documentation
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description doc
Documentation on how to use the libbeagle library.
%prep
%setup -q
%patch0
%build
%configure --disable-static --with-pic \
--disable-schemas-install \
--libexecdir=/usr/lib/beagle \
--enable-python \
--enable-gtk-doc
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -name "*.la" -print -delete
%post -n libbeagle1 -p /sbin/ldconfig
%postun -n libbeagle1 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libbeagle1
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%{_libdir}/*.so.1*
%files devel
%defattr(-, root, root)
%{_includedir}/libbeagle/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc
%files python
%defattr(-, root, root)
%{python_sitelib}/*
%changelog