2011-02-13 20:14:10 +00:00
|
|
|
# vim: set sw=4 ts=4 et:
|
|
|
|
|
|
|
|
Name: gamin
|
|
|
|
Version: 0.1.10
|
|
|
|
Release: 0
|
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
2011-10-02 11:43:54 +00:00
|
|
|
License: LGPL-2.1
|
2011-02-13 20:14:10 +00:00
|
|
|
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
|
2011-10-02 11:43:54 +00:00
|
|
|
Source2: %name-rpmlintrc
|
2011-02-13 20:14:10 +00:00
|
|
|
Patch0: gamin-return.patch
|
|
|
|
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
|
|
|
|
Patch2: gamin-fix_python_main.patch
|
2011-10-02 11:43:54 +00:00
|
|
|
Patch3: gamin-obsol-glib.diff
|
|
|
|
#Provides: fam
|
2011-02-13 20:14:10 +00:00
|
|
|
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
|
2011-10-02 11:43:54 +00:00
|
|
|
monitor mechanism compatible with FAM, but not dependent on a system wide
|
2011-02-13 20:14:10 +00:00
|
|
|
daemon.
|
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%package -n libgamin-1-0
|
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Libraries
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%description -n libgamin-1-0
|
|
|
|
This C library provides an API and ABI compatible file alteration
|
|
|
|
monitor mechanism compatible with FAM, but not dependent on a system wide
|
|
|
|
daemon.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%package -n libfam0-gamin
|
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: libfam0
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%description -n libfam0-gamin
|
|
|
|
This C library provides an API and ABI compatible file alteration
|
|
|
|
monitor mechanism compatible with FAM, but not dependent on a system wide
|
|
|
|
daemon.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%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++
|
2011-10-02 11:43:54 +00:00
|
|
|
Requires: libgamin-1-0 = %version, libfam0-gamin = %version
|
|
|
|
# Both have libfam.so
|
|
|
|
Conflicts: fam-devel
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%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
|
2011-10-02 11:43:54 +00:00
|
|
|
%patch -P 3 -p1
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static
|
2011-10-02 11:43:54 +00:00
|
|
|
make %{?_smp_mflags}
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%__rm "%{buildroot}%{_libdir}"/*.la
|
|
|
|
|
|
|
|
%__mkdir_p .rpmdoc/python
|
|
|
|
%__mv doc/python.html .rpmdoc/python/doc.html
|
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%post -n libgamin-1-0 -p /sbin/ldconfig
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%postun -n libgamin-1-0 -p /sbin/ldconfig
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%post -n libfam0-gamin -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libfam0-gamin -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libgamin-1-0
|
|
|
|
%defattr(-,root,root)
|
2011-02-13 20:14:10 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README Copyright TODO
|
|
|
|
%{_libdir}/libgamin-1.so.0
|
|
|
|
%{_libdir}/libgamin-1.so.0.*.*
|
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%files -n libfam0-gamin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfam.so.0.*.*
|
|
|
|
%{_libdir}/libfam.so.0
|
|
|
|
|
2011-02-13 20:14:10 +00:00
|
|
|
%files server
|
|
|
|
%defattr(-, root, root)
|
2011-10-02 11:43:54 +00:00
|
|
|
%doc doc/*.html
|
|
|
|
%doc doc/*.gif
|
|
|
|
%doc doc/*.txt
|
2011-02-13 20:14:10 +00:00
|
|
|
%{_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
|