Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 5354b1178db183e970d5f4a38fe06c19 > files > 4

gamin-0.1.5-3mdk.src.rpm

%define lib_major 0
%define lib_name %mklibname %{name}- 1 %{lib_major}  
%define libfam %mklibname fam 0

Summary: Library providing the FAM File Alteration Monitor API
Name: gamin
Version: 0.1.5
Release: 3mdk
License: LGPL
Group: Monitoring
Source0: http://www.gnome.org/~veillard/gamin/sources/gamin-%{version}.tar.bz2
# (fc) 0.1.1-2mdk use local inotify header
Patch0: gamin-0.1.1-fixheader.patch.bz2
# (fc) 0.1.5-2mdk allow to disable inotify at runtime (CVS)
Patch1: gamin-0.1.5-disableinotify.patch.bz2

BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://www.gnome.org/~veillard/gamin/
Obsoletes: fam
Provides: fam
BuildRequires: glib2-devel
BuildRequires: python-devel

%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 python-%{name}
Summary: Python bindings for the gamin library
Group: Development/Python

%description -n python-%{name}
This package contains a module that allow monitoring of
files and directories from the Python language based on the support
of the gamin package.

%package -n %{lib_name}
Summary: Dynamic library for Gamin
Group: System/Libraries
Requires: %{name} >= %{version}
Obsoletes: %{libfam}
Provides: %{libfam}

%description -n %{lib_name}
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 %{lib_name}-devel
Summary: Libraries, includes, etc. to embed the Gamin library
Group: Development/C
Requires: %{name} = %{version}
Requires: %{lib_name} = %{version}
Provides: lib%{name}-1-devel = %{version}
Provides: lib%{name}-devel = %{version}
Provides: %{name}-devel = %{version}
Obsoletes: %{libfam}-devel
Provides: %{libfam}-devel
Provides: libfam-devel
Provides: fam-devel

%description -n %{lib_name}-devel
This C library provides an API and ABI compatible file alteration
monitor mechanism compatible with FAM but not dependent on a system wide
daemon.

%prep
%setup -q
%patch0 -p1 -b .fixheader
%patch1 -p1 -b .disableinotify

%build
%configure2_5x --enable-inotify

%make

%install
rm -fr %{buildroot}

%makeinstall_std
rm -f %buildroot%_libdir/python%pyver/site-packages/_gamin.a

%clean
rm -fr %{buildroot}

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog README Copyright TODO
%{_libdir}/gam_server

%files -n %{lib_name}
%defattr(-, root, root)
%{_libdir}/lib*.so.*

%files -n %{lib_name}-devel
%defattr(-, root, root)
%doc AUTHORS ChangeLog README Copyright TODO
%{_libdir}/lib*.so
%{_libdir}/*a
%{_includedir}/fam.h
%{_libdir}/pkgconfig/gamin.pc

%files -n python-%{name}
%defattr(-, root, root)
%doc python/tests/*.py
%doc doc/python.html
%{_libdir}/python*/site-packages/gamin.py
%{_libdir}/python*/site-packages/_gamin*

%changelog
* Fri Sep 09 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.5-3mdk 
- Remove patch2, it seems to cause crashes with 0.1.5

* Thu Sep 08 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.5-2mdk 
- Patch1 (CVS): allow to disable inotify at runtime
- Patch2 (CVS): fix memleak in inotify mode

* Wed Aug 10 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.5-1mdk 
- Release 0.1.5

* Thu Jul 28 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.1-2mdk 
- Enable inotify
- Patch0: use local header for inotify

* Wed Jun 22 2005 Götz Waschk <waschk@mandriva.org> 0.1.1-1mdk
- drop patches
- New release 0.1.1

* Thu May 19 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.0-2mdk 
- Patch0 (CVS): stop sending event after client unregisters
- Patch1: fix crash in poll only mode

* Thu May 12 2005 Frederic Crozat <fcrozat@mandriva.com> 0.1.0-1mdk 
- Release 0.1.0

* Tue Mar 15 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.26-1mdk 
- Release 0.0.26
- Remove patch0 (merged upstream)

* Tue Mar 15 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.25-4mdk 
- Update patch0 with upstream version

* Mon Mar 14 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.25-3mdk 
- Patch0 (Drean Brettle): fix crash when unmonitoring subdir with monitored
  files/dir (Mdk bug #14548)

* Fri Mar 04 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.25-2mdk 
- Disable inotify, it is not stable enough

* Tue Mar 01 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.25-1mdk 
- Release 0.0.25

* Tue Feb 22 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.24-2mdk 
- Remove patch0 (no longer needed)
- Rebuild for inotify 0.18-rml-16 aka 0.19

* Fri Feb 18 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.24-1mdk 
- Release 0.0.24
- Update patch0

* Mon Feb 14 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.0.23-2mdk
- fix lib64 provides

* Thu Feb 10 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.23-1mdk 
- Release 0.0.23

* Tue Feb 01 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.22-1mdk 
- Release 0.0.22
- Patch0: interface with inotify 0.17 (not 0.18 yet)

* Fri Jan 07 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.20-2mdk 
- Fix devel package to provide libfam-devel

* Thu Jan 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.20-1mdk 
- Release 0.0.20
- Remove patches 0 and 1 (merged upstream)

* Wed Jan 05 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.19-3mdk 
- Patch1: fix crash and implement poll only mode

* Tue Dec 21 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.19-2mdk 
- Patch0 (CVS): fix one crash when tree and root are null

* Fri Dec  3 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.19-1mdk
- New release 0.0.19

* Fri Dec  3 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.18-1mdk
- New release 0.0.18

* Sun Nov 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.17-5mdk
- added the changes fcrozat made in his 2mdk release that got lost 
  because of my mistake, also remove my 2mdk changelog entry, thanks 
  to blino for the insight.

* Sun Nov 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.17-4mdk
- fix deps

* Thu Nov 25 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.17-3mdk
- revert to 1mdk

* Thu Nov 18 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.17-2mdk
- Provides fam-devel too

* Wed Nov 17 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.0.17-1mdk 
- Initial mdk package

* Fri Jul 16 2004 Daniel Veillard <veillard@redhat.com>
- upstream release 0.0.2