3bb553
Summary: Library providing the FAM File Alteration Monitor API
3bb553
Name: gamin
3bb553
Version: 0.1.10
d7ab8f
Release: 16%{?dist}
3bb553
License: LGPLv2
3bb553
#some of the files (server/inotify-kernel.c) are GPLv2
3bb553
#so https://fedoraproject.org/wiki/Licensing#GPL_Compatibility_Matrix
3bb553
#says the whole is GPLv2
3bb553
#License: GPLv2
3bb553
Group: Development/Libraries
3bb553
Source: http://ftp.gnome.org/pub/GNOME/sources/gamin/0.1/gamin-%{version}.tar.bz2
3bb553
URL: http://www.gnome.org/~veillard/gamin/
3bb553
Obsoletes: fam < 2.6.10-12
3bb553
Provides: fam = 2.6.10-12
3bb553
BuildRequires: glib2-devel python python-devel
3bb553
BuildRequires: automake, libtool
3bb553
3bb553
3bb553
# This fix addresses an issue with ARM, where the configuration triplet
3bb553
# happens to be armv5tel-redhat-linux-gnueabi instead of armv5tel-redhat-linux-gnu.
3bb553
# The patch declares HAVE_LINUX in case of linux-gnueabi as well.
3bb553
# Patch by Kedar Sovani <kedars@marvell.com>
3bb553
Patch1: gamin-0.1.10-gnueabi.patch
3bb553
3bb553
# Don't try to build with -DG_DISABLE_DEPRECATED - glib has moved on
3bb553
Patch2: gamin-manape.patch
3bb553
3bb553
# gam_server deadlocks, leading to all KDE applications hanging at start
3bb553
# https://bugzilla.redhat.com/show_bug.cgi?id=786170
3bb553
Patch3: gamin-0.1.11-double-lock.patch
3bb553
3bb553
# upstream fixes
3bb553
Patch4: 0001-Poll-files-on-nfs4.patch
3bb553
Patch5: 0002-Fix-compilation-of-recent-glib-removing-G_CONST_RETU.patch
3bb553
3bb553
%description
3bb553
This C library provides an API and ABI compatible file alteration
3bb553
monitor mechanism compatible with FAM but not dependent on a system wide
3bb553
daemon.
3bb553
3bb553
%package devel
3bb553
Summary: Libraries, includes, etc. to embed the Gamin library
3bb553
Group: Development/Libraries
3bb553
Requires: gamin = %{version}-%{release}
3bb553
Obsoletes: fam-devel < 2.6.10-12
3bb553
Provides: fam-devel = 2.6.10-12
3bb553
3bb553
%description devel
3bb553
This C library provides an API and ABI compatible file alteration
3bb553
monitor mechanism compatible with FAM but not dependent on a system wide
3bb553
daemon.
3bb553
3bb553
%package python
3bb553
Summary: Python bindings for the gamin library
3bb553
Group: Development/Libraries
3bb553
Requires: gamin = %{version}-%{release}
3bb553
3bb553
%description python
3bb553
The gamin-python package contains a module that allow monitoring of
3bb553
files and directories from the Python language based on the support
3bb553
of the gamin package.
3bb553
3bb553
%prep
3bb553
%setup -q
3bb553
%patch1 -p1 -b .gnueabi
3bb553
%patch2 -p1 -b .manape
3bb553
%patch3 -p1 -b .double-lock
3bb553
%patch4 -p1 -b .nfs4
3bb553
%patch5 -p1 -b .const
3bb553
3bb553
# recode docs into UTF-8
3bb553
for i in ChangeLog NEWS ; do 
3bb553
   iconv -f iso-8859-1 -t utf-8 < $i > XXX
3bb553
   touch -r $i XXX
3bb553
   mv XXX $i
3bb553
done
3bb553
3bb553
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
3bb553
# replace "/usr/bin/env python" with a "/usr/bin/python"
3bb553
for i in `find -name '*.py'`; do
3bb553
   sed -i.bak 's|^#!/usr/bin/env python|#!/usr/bin/python|g' $i
3bb553
   touch -r ${i}.bak $i
3bb553
   rm ${i}.bak
3bb553
done
3bb553
3bb553
autoreconf --force --install
3bb553
3bb553
%build
3bb553
%configure
3bb553
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
3bb553
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
3bb553
make %{?_smp_mflags}
3bb553
3bb553
%install
3bb553
make install DESTDIR=%{buildroot} INSTALL="install -p"
3bb553
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
3bb553
3bb553
%post -p /sbin/ldconfig
3bb553
3bb553
%postun -p /sbin/ldconfig
3bb553
3bb553
%files
3bb553
%doc AUTHORS ChangeLog NEWS README Copyright TODO COPYING
3bb553
%doc doc/*.html
3bb553
%doc doc/*.gif
3bb553
%doc doc/*.txt
3bb553
%{_libdir}/lib*.so.*
3bb553
%{_libexecdir}/gam_server
3bb553
3bb553
%files devel
3bb553
%{_libdir}/lib*.so
3bb553
%{_includedir}/fam.h
3bb553
%{_libdir}/pkgconfig/gamin.pc
3bb553
3bb553
%files python
3bb553
%{_libdir}/python*/site-packages/gamin.py*
3bb553
%{_libdir}/python*/site-packages/_gamin*
3bb553
%doc python/tests/*.py
3bb553
%doc doc/python.html
3bb553
3bb553
%changelog
d7ab8f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.10-16
d7ab8f
- Mass rebuild 2014-01-24
d7ab8f
d7ab8f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.10-15
d7ab8f
- Mass rebuild 2013-12-27
d7ab8f
3bb553
* Fri Feb  1 2013 Matthias Clasen <mclasen@redhat.com> - 0.1.10-14
3bb553
- Make it work on nfs4
3bb553
- Fix the build
3bb553
- Minor spec file cleanups
3bb553
3bb553
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-13
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3bb553
3bb553
* Wed Feb  8 2012 Tomas Bzatek <tbzatek@redhat.com> - 0.1.10-12
3bb553
- Prevent deadlock when cancelling a watch (#786170)
3bb553
3bb553
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-11
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3bb553
3bb553
* Wed Jul 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.1.10-10
3bb553
- Rebuild
3bb553
3bb553
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-9
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3bb553
3bb553
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.1.10-8
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3bb553
3bb553
* Wed Mar  3 2010 Tomas Bzatek <tbzatek@redhat.com> - 0.1.10-7
3bb553
- Further cleanup for package review (#225776)
3bb553
- Fix source URL
3bb553
3bb553
* Mon Dec 21 2009 Tomas Bzatek <tbzatek@redhat.com> - 0.1.10-6
3bb553
- Cleanup for package review (#225776)
3bb553
3bb553
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-5
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3bb553
3bb553
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-4
3bb553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3bb553
3bb553
* Mon Jan  5 2009 Tomas Bzatek <tbzatek@redhat.com> - 0.1.10-3
3bb553
- Fix build on gnueabi (patch by Kedar Sovani)
3bb553
3bb553
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.10-2
3bb553
- Rebuild for Python 2.6
3bb553
3bb553
* Mon Nov 24 2008 Tomas Bzatek <tbzatek@redhat.com> - 0.1.10-1
3bb553
- Update to 0.1.10
3bb553
- Drop upstreamed patches
3bb553
3bb553
* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.9-6
3bb553
- fix license tag
3bb553
3bb553
* Wed Feb 14 2008 Tomas Bzatek <tbzatek@redhat.com> - 0.1.9-5
3bb553
- workaround for missing struct ucred in glibc headers (fixed x86_64 compilation)
3bb553
3bb553
* Fri Sep 14 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.9-4
3bb553
- Fix a memory leak
3bb553
3bb553
* Fri Sep 14 2007 Ray Strode <rstrode@redhat.com> - 0.1.9-3
3bb553
- don't poll for non-existant watched files (bug 240385)
3bb553
3bb553
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.1.9-2
3bb553
- Rebuild for selinux ppc32 issue.
3bb553
3bb553
* Fri Jul 27 2007 Daniel Veillard <veillard@redhat.com> - 0.1.9-1.fc8
3bb553
- made new upstream release, that includes all the existing patches
3bb553
3bb553
* Sat Apr 21 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.8-6
3bb553
- Don't ship static libraries
3bb553
3bb553
* Wed Apr 11 2007 Alexander Larsson <alexl@redhat.com> - 0.1.8-5
3bb553
- Add patch that handles inotify failing fallback (#233316)
3bb553
3bb553
* Wed Mar  7 2007 Alexander Larsson <alexl@redhat.com> - 0.1.8-4
3bb553
- Add patch to fix #204906
3bb553
3bb553
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.8-3
3bb553
- rebuild for python 2.5
3bb553
3bb553
* Mon Nov 20 2006 Alexander Larsson <alexl@redhat.com> - 0.1.8-2.fc7
3bb553
- Fix polling backend, making NFS work again
3bb553
- Resolves: #212551
3bb553
3bb553
* Tue Oct 31 2006 Daniel Veillard <veillard@redhat.com> - 0.1.8-1
3bb553
- made new upstream release, that should include all the existing patches
3bb553
3bb553
* Fri Sep  8 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-7
3bb553
- Fix problems in new inotify backend (#205731)
3bb553
3bb553
* Tue Sep  5 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-6
3bb553
- Remove last regular timers from gamin
3bb553
3bb553
* Tue Sep  5 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-5
3bb553
- Use sigaction to reset old signal handler (from cvs)
3bb553
- New inotify backend from cvs (based on gnome-vfs code)
3bb553
- Only create timer on demand
3bb553
- This should fix #204906
3bb553
3bb553
* Mon Aug 28 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-4
3bb553
- Flush in-buffer on connection reset (#196444)
3bb553
- Patch from Ariel T. Glenn
3bb553
3bb553
* Tue Aug 22 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-3
3bb553
- Use /dev/null as stdin/out/err when spawning gam_server
3bb553
- This could help if there is stdout output somewhere.
3bb553
3bb553
* Wed Aug 16 2006 Alexander Larsson <alexl@redhat.com> - 0.1.7-2
3bb553
- Add patch that avoids closing the fd after FAMOpen, fixes some 100% cpu bugs
3bb553
3bb553
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1.7-1.2.2
3bb553
- rebuild
3bb553
3bb553
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.1.7-1.2.1
3bb553
- bump again for double-long bug on ppc(64)
3bb553
3bb553
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.1.7-1.2
3bb553
- rebuilt for new gcc4.1 snapshot and glibc changes
3bb553
3bb553
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3bb553
- rebuilt
3bb553
3bb553
* Thu Oct 27 2005 Daniel Veillard <veillard@redhat.com> 0.1.7-1
3bb553
- hopefully fixes gam_server crashes
3bb553
- some portability fixes
3bb553
- removed a minor leak
3bb553
* Thu Sep  8 2005 Daniel Veillard <veillard@redhat.com> 0.1.6-1
3bb553
- revamp of the inotify back-end
3bb553
- memory leak fix
3bb553
- various fixes and cleanups
3bb553
* Tue Aug  9 2005 Daniel Veillard <veillard@redhat.com> 0.1.5-1
3bb553
- Improvement of configuration, system wide configuration files and
3bb553
  per filesystem type default
3bb553
- Rewrite of the inotify back-end, reduce resources usage, tuning in
3bb553
  case of busy resources
3bb553
- Documentation updates
3bb553
- Changes to compile inotify back-end on various architectures
3bb553
- Debugging output improvements
3bb553
* Tue Aug  2 2005 Daniel Veillard <veillard@redhat.com> 0.1.3-1
3bb553
- Fix to compile on older gcc versions
3bb553
- Inotify back-end changes and optimizations
3bb553
- Debug ouput cleanup, pid and process name reports
3bb553
- Dropped kernel monitor bugfix
3bb553
- Removed the old glist copy used for debugging
3bb553
- Maintain mounted filesystems knowledge, and per fstype preferences
3bb553
* Wed Jul 13 2005 Daniel Veillard <veillard@redhat.com> 0.1.2-1
3bb553
- inotify back end patches, ready for the new inotify support in kernel
3bb553
- lot of server code cleanup patches
3bb553
- fixed an authentication problem
3bb553
* Fri Jun 10 2005 Daniel Veillard <veillard@redhat.com> 0.1.1-1
3bb553
- gamin_data_conn_event fix
3bb553
- crash from bug gnome #303932
3bb553
- Inotify and mounted media #171201
3bb553
- mounted media did not show up on Desktop #159748
3bb553
- write may not be atomic
3bb553
- Monitoring a directory when it is a file
3bb553
- Portability to Hurd/Mach and various code cleanups
3bb553
- Added support for ~ as user home alias in .gaminrc
3bb553
* Thu May 12 2005 Daniel Veillard <veillard@redhat.com> 0.1.0-1
3bb553
- Close inherited file descriptors on exec of gam_server
3bb553
- Cancelling a monitor send back a FAMAcknowledge
3bb553
- Fixed for big files > 2GB
3bb553
- Bug when monitoring a non existing directory
3bb553
- Make client side thread safe
3bb553
- Unreadable directory fixes
3bb553
- Better flow control handling
3bb553
- Updated to latest inotify version: 0.23-6
3bb553
* Tue Mar 15 2005 Daniel Veillard <veillard@redhat.com> 0.0.26-1
3bb553
- Fix an include problem showing up with gcc4
3bb553
- Fix the crash on failed tree assert bug #150471 based on patch from Dean Brettle
3bb553
- removed an incompatibility with SGI FAM #149822
3bb553
* Tue Mar  1 2005 Daniel Veillard <veillard@redhat.com> 0.0.25-1
3bb553
- Fix a configure problem reported by Martin Schlemmer
3bb553
- Fix the /media/* and /mnt/* mount blocking problems from 0.0.24 e.g. #142637
3bb553
- Fix the monitoring of directory using poll and not kernel
3bb553
* Fri Feb 18 2005 Daniel Veillard <veillard@redhat.com> 0.0.24-1
3bb553
- more documentation
3bb553
- lot of serious bug fixes including Gnome Desktop refresh bug
3bb553
- extending the framework for more debug (configure --enable-debug-api)
3bb553
- extending the python bindings for watching the same resource multiple times
3bb553
  and adding debug framework support
3bb553
- growing the regression tests a lot based on python bindings
3bb553
- inotify-0.19 patch from John McCutchan
3bb553
- renamed python private module to _gamin to follow Python PEP 8
3bb553
3bb553
* Tue Feb  8 2005 Daniel Veillard <veillard@redhat.com> 0.0.23-1
3bb553
- memory corruption fix from Mark on the client side
3bb553
- extending the protocol and API to allow skipping Exists and EndExists
3bb553
  events to avoid deadlock on reconnect or when they are not used.
3bb553
3bb553
* Mon Jan 31 2005 Daniel Veillard <veillard@redhat.com> 0.0.22-1
3bb553
- bit of python bindings improvements, added test
3bb553
- fixed 3 bugs
3bb553
3bb553
* Wed Jan 26 2005 Daniel Veillard <veillard@redhat.com> 0.0.21-1
3bb553
- Added Python support
3bb553
- Updated for inotify-0.18 
3bb553
3bb553
* Thu Jan  6 2005 Daniel Veillard <veillard@redhat.com> 0.0.20-1
3bb553
- Frederic Crozat seems to have found the GList corruption which may fix
3bb553
  #132354 and related problems
3bb553
- Frederic Crozat also fixed poll only mode
3bb553
3bb553
* Fri Dec  3 2004 Daniel Veillard <veillard@redhat.com> 0.0.19-1
3bb553
- still chasing the loop bug, made another pass at checking GList,
3bb553
  added own copy with memory poisonning of GList implementation.
3bb553
- fixed a compile issue when compiling without debug
3bb553
3bb553
* Fri Nov 26 2004 Daniel Veillard <veillard@redhat.com> 0.0.18-1
3bb553
- still chasing the loop bug, checked and cleaned up all GList use
3bb553
- patch from markmc to minimize load on busy apps
3bb553
3bb553
* Wed Oct 20 2004 Daniel Veillard <veillard@redhat.com> 0.0.16-1
3bb553
- chasing #132354, lot of debugging, checking and testing and a bit
3bb553
  of refactoring
3bb553
3bb553
* Sat Oct 16 2004 Daniel Veillard <veillard@redhat.com> 0.0.15-1
3bb553
- workaround to detect loops and avoid the nasty effects, see RedHat bug #132354
3bb553
3bb553
* Sun Oct  3 2004 Daniel Veillard <veillard@redhat.com> 0.0.14-1
3bb553
- Found and fixed the annoying bug where update were not received
3bb553
  should fix bugs ##132429, #133665 and #134413
3bb553
- new mechanism to debug on-the-fly by sending SIGUSR2 to client or server
3bb553
- Added documentation about internals
3bb553
3bb553
* Fri Oct  1 2004 Daniel Veillard <veillard@redhat.com> 0.0.13-1
3bb553
- applied portability fixes
3bb553
- hardened the code while chasing a segfault
3bb553
3bb553
* Thu Sep 30 2004 Daniel Veillard <veillard@redhat.com> 0.0.12-1
3bb553
- potential fix for a hard to reproduce looping problem.
3bb553
3bb553
* Mon Sep 27 2004 Daniel Veillard <veillard@redhat.com> 0.0.11-1
3bb553
- update to the latest version of inotify
3bb553
- inotify support compiled in by default
3bb553
- fix ABI FAM compatibility problems #133162 
3bb553
3bb553
* Tue Sep 21 2004 Daniel Veillard <veillard@redhat.com> 0.0.10-1
3bb553
- more documentation
3bb553
- Added support for a configuration file $HOME/.gaminrc
3bb553
- fixes FAM compatibility issues with FAMErrno and FamErrlist #132944
3bb553
3bb553
* Wed Sep  1 2004 Daniel Veillard <veillard@redhat.com> 0.0.9-1
3bb553
- fix crash with konqueror #130967
3bb553
- exclude kernel (dnotify) monitoring for /mnt//* /media//*
3bb553
3bb553
* Thu Aug 26 2004 Daniel Veillard <veillard@redhat.com> 0.0.8-1
3bb553
- Fixes crashes of the gam_server
3bb553
- try to correct the kernel/poll switching mode
3bb553
3bb553
* Tue Aug 24 2004 Daniel Veillard <veillard@redhat.com> 0.0.7-1
3bb553
- add support for both polling and dnotify simultaneously
3bb553
- fixes monitoring of initially missing files
3bb553
- load control on very busy resources #124361, desactivating
3bb553
  dnotify and falling back to polling for CPU drain
3bb553
3bb553
* Thu Aug 19 2004 Daniel Veillard <veillard@redhat.com> 0.0.6-1
3bb553
- fixes simple file monitoring should close RH #129974
3bb553
- relocate gam_server in $(libexec)
3bb553
3bb553
* Thu Aug  5 2004 Daniel Veillard <veillard@redhat.com> 0.0.5-1
3bb553
- Fix a crash when the client binary forks the gam_server and an
3bb553
  atexit handler is run.
3bb553
3bb553
* Wed Aug  4 2004 Daniel Veillard <veillard@redhat.com> 0.0.4-1
3bb553
- should fix KDE build problems