Blame SPECS/gamin.spec

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