gamin/gamin.spec

139 lines
3.7 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: LGPL-2.1
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
Source2: %name-rpmlintrc
Patch0: gamin-return.patch
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
Patch2: gamin-fix_python_main.patch
Patch3: gamin-obsol-glib.diff
#Provides: fam
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.
%package -n libgamin-1-0
Summary: Library providing the FAM File Alteration Monitor API
Group: System/Libraries
%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.
%package -n libfam0-gamin
Summary: Library providing the FAM File Alteration Monitor API
Group: System/Libraries
Conflicts: libfam0
%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.
%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: libgamin-1-0 = %version, libfam0-gamin = %version
# Both have libfam.so
Conflicts: 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
%patch -P 3 -p1
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}"/*.la
%__mkdir_p .rpmdoc/python
%__mv doc/python.html .rpmdoc/python/doc.html
%post -n libgamin-1-0 -p /sbin/ldconfig
%postun -n libgamin-1-0 -p /sbin/ldconfig
%post -n libfam0-gamin -p /sbin/ldconfig
%postun -n libfam0-gamin -p /sbin/ldconfig
%files -n libgamin-1-0
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO
%{_libdir}/libgamin-1.so.0
%{_libdir}/libgamin-1.so.0.*.*
%files -n libfam0-gamin
%defattr(-,root,root)
%{_libdir}/libfam.so.0.*.*
%{_libdir}/libfam.so.0
%files server
%defattr(-, root, root)
%doc doc/*.html
%doc doc/*.gif
%doc doc/*.txt
%{_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