gamin/gamin.spec

121 lines
3.0 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et:
Name: gamin
Version: 0.1.10
Release: 0
Summary: Library providing the FAM File Alteration Monitor API
License: GNU Library General Public License version 2 (LGPL v2)
Group: System/Daemons
URL: http://www.gnome.org/~veillard/gamin/
# http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz
Source: %{name}-%{version}.tar.bz2
Patch0: gamin-return.patch
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
Patch2: gamin-fix_python_main.patch
Provides: fam
Provides: libfam0
Provides: libgamin1_0 = %{version}-%{release}
Requires: gamin-server = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: glib2-devel python-devel gcc gcc-c++ libstdc++-devel make pkgconfig
%description
This C library provides an API and ABI compatible file alteration
monitor mechanism compatible with FAM but not dependent on a system wide
daemon.
Authors:
--------
Daniel Veillard <veillard@redhat.com>
%package server
Summary: Server for the Library providing the FAM File Alteration Monitor API
Group: System/Daemons
%description server
This package contains the daemon for %{name}.
It is split off into its own subpackage to void file conflicts when both
%{name} and %{name}-32bit are installed on a multiarch platform.
%package devel
Summary: Libraries and includes to build against the Gamin library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
Provides: fam-devel
%description devel
Libraries, includes, etc. to use and build against the Gamin library.
%package -n python-gamin
Summary: Python bindings for the gamin library
Group: Development/Libraries/Python
Requires: %{name} = %{version}-%{release}
Requires: python
Provides: gamin-python = %{version}-%{release}
%py_requires
%description -n python-gamin
The gamin-python package contains a module that allow monitoring of
files and directories from the Python language based on the support
of the gamin package.
%prep
%setup -q
%patch0 -p0
%patch1
%patch2
%build
%configure \
--disable-static
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}"/*.la
%__mkdir_p .rpmdoc/python
%__mv doc/python.html .rpmdoc/python/doc.html
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO
%doc doc/*.html
%doc doc/*.gif
%doc doc/*.txt
%{_libdir}/libfam.so.0.*.*
%{_libdir}/libfam.so.0
%{_libdir}/libgamin-1.so.0
%{_libdir}/libgamin-1.so.0.*.*
%files server
%defattr(-, root, root)
%{_libexecdir}/gam_server
%files devel
%defattr(-, root, root)
%{_libdir}/libfam.so
%{_libdir}/libgamin-1.so
%{_libdir}/libgamin_shared.a
%{_includedir}/fam.h
%{_libdir}/pkgconfig/gamin.pc
%files -n python-gamin
%defattr(-, root, root)
%doc .rpmdoc/python/*
%{py_sitedir}/gamin.py*
%{py_sitedir}/_gamin*
%changelog