gamin-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define python_archlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  3. Summary: Library providing the FAM File Alteration Monitor API
  4. Summary(ja): FAM (File Alteration Monitor) API を提供するライブラリ
  5. Name: gamin
  6. Version: 0.1.10
  7. Release: 2%{?_dist_release}
  8. License: LGPLv2
  9. Group: System Environment/Daemons
  10. Source: gamin-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. URL: http://www.gnome.org/~veillard/gamin/
  13. Obsoletes: fam
  14. Provides: fam
  15. BuildRequires: glib2-devel, python, python-devel
  16. %description
  17. The Gamin library provides an API and ABI compatible file alteration
  18. monitor mechanism compatible with FAM but not dependent on a system wide
  19. daemon.
  20. %description -l ja
  21. Gamin ライブラリは FAM と API/ABI 互換のファイル変更検知システムを提供
  22. します。FAM とは違いシステムワイドなデーモンを利用せず、ユーザ毎のヘル
  23. パープログラムをオンデマンドに起動します。
  24. %package devel
  25. Summary: Development files for the Gamin library
  26. Summary(ja): Gamin ライブラリの開発用ファイル
  27. Group: Development/Libraries
  28. Requires: gamin = %{version}-%{release}
  29. Obsoletes: fam-devel
  30. Provides: fam-devel
  31. %description devel
  32. The Gamin library provides an API and ABI compatible file alteration
  33. monitor mechanism compatible with FAM but not dependent on a system wide
  34. daemon.
  35. %description devel -l ja
  36. Gamin ライブラリは FAM と API/ABI 互換のファイル変更検知システムを提供
  37. します。FAM とは違いシステムワイドなデーモンを利用せず、ユーザ毎のヘル
  38. パープログラムをオンデマンドに起動します。
  39. %package python
  40. Summary: Python bindings for the Gamin library
  41. Summary(ja): Gamin ライブラリ用の Python バインディング
  42. Group: Development/Libraries
  43. Requires: gamin = %{version}-%{release}
  44. Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
  45. %description python
  46. The gamin-python package contains a module that allow monitoring of
  47. files and directories from the Python language based on the support
  48. of the gamin package.
  49. %description python -l ja
  50. gamin-python は gamin ライブラリを利用して Python 言語からファイルや
  51. ディレクトリのモニタリングを行うためのモジュールです。
  52. ## to build compat32 for x86_64 architecture support
  53. %package -n compat32-%{name}
  54. Summary: Library providing the FAM File Alteration Monitor API
  55. Summary(ja): FAM (File Alteration Monitor) API を提供するライブラリ
  56. Group: System Environment/Daemons
  57. Requires: gamin = %{version}-%{release}
  58. %description -n compat32-%{name}
  59. The Gamin library provides an API and ABI compatible file alteration
  60. monitor mechanism compatible with FAM but not dependent on a system wide
  61. daemon.
  62. %description -n compat32-%{name} -l ja
  63. Gamin ライブラリは FAM と API/ABI 互換のファイル変更検知システムを提供
  64. します。FAM とは違いシステムワイドなデーモンを利用せず、ユーザ毎のヘル
  65. パープログラムをオンデマンドに起動します。
  66. %package -n compat32-%{name}-devel
  67. Summary: Development files for the Gamin library
  68. Summary(ja): Gamin ライブラリの開発用ファイル
  69. Group: Development/Libraries
  70. Requires: compat32-gamin = %{version}-%{release}
  71. %description -n compat32-%{name}-devel
  72. The Gamin library provides an API and ABI compatible file alteration
  73. monitor mechanism compatible with FAM but not dependent on a system wide
  74. daemon.
  75. %description -n compat32-%{name}-devel -l ja
  76. Gamin ライブラリは FAM と API/ABI 互換のファイル変更検知システムを提供
  77. します。FAM とは違いシステムワイドなデーモンを利用せず、ユーザ毎のヘル
  78. %prep
  79. %setup -q
  80. %build
  81. %configure
  82. %__make %{?_smp_mflags}
  83. %install
  84. rm -fr %{buildroot}
  85. %makeinstall
  86. ## remove unuse files
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  88. rm -f $RPM_BUILD_ROOT%{python_archlib}/*.la
  89. %clean
  90. rm -fr %{buildroot}
  91. %post -p /sbin/ldconfig
  92. %postun -p /sbin/ldconfig
  93. %post -n compat32-%{name} -p /sbin/ldconfig
  94. %postun -n compat32-%{name} -p /sbin/ldconfig
  95. %files
  96. %defattr(-, root, root)
  97. %doc AUTHORS ChangeLog NEWS README Copyright TODO
  98. %doc doc/*.html
  99. %doc doc/*.gif
  100. %doc doc/*.txt
  101. %{_libdir}/lib*.so.*
  102. %{_libexecdir}/gam_server
  103. %files devel
  104. %defattr(-, root, root)
  105. %{_libdir}/lib*.so
  106. %{_libdir}/*a
  107. %{_includedir}/fam.h
  108. %{_libdir}/pkgconfig/gamin.pc
  109. %files python
  110. %defattr(-, root, root)
  111. %doc AUTHORS ChangeLog NEWS README Copyright TODO
  112. %{_libdir}/python*/site-packages/gamin.py*
  113. %{_libdir}/python*/site-packages/_gamin*
  114. %doc python/tests/*.py
  115. %doc doc/python.html
  116. %if %{build_compat32}
  117. %files -n compat32-%{name}
  118. %defattr(-, root, root)
  119. %{_libdir}/lib*.so.*
  120. %files -n compat32-%{name}-devel
  121. %defattr(-, root, root)
  122. %{_libdir}/lib*.so
  123. %{_libdir}/*a
  124. %{_libdir}/pkgconfig/gamin.pc
  125. %endif
  126. %changelog
  127. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.10-2
  128. - rebuild with python-2.6
  129. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10-1
  130. - new upstream release
  131. * Sun Sep 28 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.1.9-3
  132. - fix license tag to LGPLv2
  133. - import patches from Fedora development
  134. - Patch0: don't poll for non-existant watched files
  135. - Patch1: Fix a memory leak
  136. - Patch2: workaround for missing struct ucred in glibc headers
  137. (fixed x86_64/ppc compilation)
  138. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.9-2
  139. - spec in utf-8
  140. - removed *.la
  141. * Sat May 10 2008 NAKAMURA Kenta <kenta@vinelinux.org> 0.1.9-1
  142. - added compat32-* packages for x86_64 architecture support
  143. - applied new versioning policy
  144. * Wed Mar 05 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.9-0vl1
  145. - new upstream release
  146. - Patch10 was included in upstream, dropped
  147. * Fri Apr 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.1.8-0vl2
  148. - added Patch10 (<BTS:507>) which should be fixed in the new upstream release
  149. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.8-0vl1
  150. - new upstream release
  151. * Mon Sep 4 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.1.7-0vl2
  152. - stop removing *.la
  153. * Tue Jun 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.7-0vl1
  154. - initial build for Vine Linux
  155. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.1.7-1.2.1
  156. - bump again for double-long bug on ppc(64)
  157. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.1.7-1.2
  158. - rebuilt for new gcc4.1 snapshot and glibc changes
  159. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  160. - rebuilt
  161. * Thu Oct 27 2005 Daniel Veillard <veillard@redhat.com> 0.1.7-1
  162. - hopefully fixes gam_server crashes
  163. - some portability fixes
  164. - removed a minor leak
  165. * Thu Sep 8 2005 Daniel Veillard <veillard@redhat.com> 0.1.6-1
  166. - revamp of the inotify back-end
  167. - memory leak fix
  168. - various fixes and cleanups
  169. * Tue Aug 9 2005 Daniel Veillard <veillard@redhat.com> 0.1.5-1
  170. - Improvement of configuration, system wide configuration files and
  171. per filesystem type default
  172. - Rewrite of the inotify back-end, reduce resources usage, tuning in
  173. case of busy resources
  174. - Documentation updates
  175. - Changes to compile inotify back-end on various architectures
  176. - Debugging output improvements
  177. * Tue Aug 2 2005 Daniel Veillard <veillard@redhat.com> 0.1.3-1
  178. - Fix to compile on older gcc versions
  179. - Inotify back-end changes and optimizations
  180. - Debug ouput cleanup, pid and process name reports
  181. - Dropped kernel monitor bugfix
  182. - Removed the old glist copy used for debugging
  183. - Maintain mounted filesystems knowledge, and per fstype preferences
  184. * Wed Jul 13 2005 Daniel Veillard <veillard@redhat.com> 0.1.2-1
  185. - inotify back end patches, ready for the new inotify support in kernel
  186. - lot of server code cleanup patches
  187. - fixed an authentication problem
  188. * Fri Jun 10 2005 Daniel Veillard <veillard@redhat.com> 0.1.1-1
  189. - gamin_data_conn_event fix
  190. - crash from bug gnome #303932
  191. - Inotify and mounted media #171201
  192. - mounted media did not show up on Desktop #159748
  193. - write may not be atomic
  194. - Monitoring a directory when it is a file
  195. - Portability to Hurd/Mach and various code cleanups
  196. - Added support for ~ as user home alias in .gaminrc
  197. * Thu May 12 2005 Daniel Veillard <veillard@redhat.com> 0.1.0-1
  198. - Close inherited file descriptors on exec of gam_server
  199. - Cancelling a monitor send back a FAMAcknowledge
  200. - Fixed for big files > 2GB
  201. - Bug when monitoring a non existing directory
  202. - Make client side thread safe
  203. - Unreadable directory fixes
  204. - Better flow control handling
  205. - Updated to latest inotify version: 0.23-6
  206. * Tue Mar 15 2005 Daniel Veillard <veillard@redhat.com> 0.0.26-1
  207. - Fix an include problem showing up with gcc4</li>
  208. - Fix the crash on failed tree assert bug #150471 based on patch from Dean Brettle
  209. - removed an incompatibility with SGI FAM #149822
  210. * Tue Mar 1 2005 Daniel Veillard <veillard@redhat.com> 0.0.25-1
  211. - Fix a configure problem reported by Martin Schlemmer
  212. - Fix the /media/* and /mnt/* mount blocking problems from 0.0.24 e.g. #142637
  213. - Fix the monitoring of directory using poll and not kernel
  214. * Fri Feb 18 2005 Daniel Veillard <veillard@redhat.com> 0.0.24-1
  215. - more documentation
  216. - lot of serious bug fixes including Gnome Desktop refresh bug
  217. - extending the framework for more debug (configure --enable-debug-api)
  218. - extending the python bindings for watching the same resource multiple times
  219. and adding debug framework support
  220. - growing the regression tests a lot based on python bindings
  221. - inotify-0.19 patch from John McCutchan
  222. - renamed python private module to _gamin to follow Python PEP 8
  223. * Tue Feb 8 2005 Daniel Veillard <veillard@redhat.com> 0.0.23-1
  224. - memory corruption fix from Mark on the client side
  225. - extending the protocol and API to allow skipping Exists and EndExists
  226. events to avoid deadlock on reconnect or when they are not used.
  227. * Mon Jan 31 2005 Daniel Veillard <veillard@redhat.com> 0.0.22-1
  228. - bit of python bindings improvements, added test
  229. - fixed 3 bugs
  230. * Wed Jan 26 2005 Daniel Veillard <veillard@redhat.com> 0.0.21-1
  231. - Added Python support
  232. - Updated for inotify-0.18
  233. * Thu Jan 6 2005 Daniel Veillard <veillard@redhat.com> 0.0.20-1
  234. - Frederic Crozat seems to have found the GList corruption which may fix
  235. #132354 and related problems
  236. - Frederic Crozat also fixed poll only mode
  237. * Fri Dec 3 2004 Daniel Veillard <veillard@redhat.com> 0.0.19-1
  238. - still chasing the loop bug, made another pass at checking GList,
  239. added own copy with memory poisonning of GList implementation.
  240. - fixed a compile issue when compiling without debug
  241. * Fri Nov 26 2004 Daniel Veillard <veillard@redhat.com> 0.0.18-1
  242. - still chasing the loop bug, checked and cleaned up all GList use
  243. - patch from markmc to minimize load on busy apps
  244. * Wed Oct 20 2004 Daniel Veillard <veillard@redhat.com> 0.0.16-1
  245. - chasing #132354, lot of debugging, checking and testing and a bit
  246. of refactoring
  247. * Sat Oct 16 2004 Daniel Veillard <veillard@redhat.com> 0.0.15-1
  248. - workaround to detect loops and avoid the nasty effects, see RedHat bug #132354
  249. * Sun Oct 3 2004 Daniel Veillard <veillard@redhat.com> 0.0.14-1
  250. - Found and fixed the annoying bug where update were not received
  251. should fix bugs ##132429, #133665 and #134413
  252. - new mechanism to debug on-the-fly by sending SIGUSR2 to client or server
  253. - Added documentation about internals
  254. * Fri Oct 1 2004 Daniel Veillard <veillard@redhat.com> 0.0.13-1
  255. - applied portability fixes
  256. - hardened the code while chasing a segfault
  257. * Thu Sep 30 2004 Daniel Veillard <veillard@redhat.com> 0.0.12-1
  258. - potential fix for a hard to reproduce looping problem.
  259. * Mon Sep 27 2004 Daniel Veillard <veillard@redhat.com> 0.0.11-1
  260. - update to the latest version of inotify
  261. - inotify support compiled in by default
  262. - fix ABI FAM compatibility problems #133162
  263. * Tue Sep 21 2004 Daniel Veillard <veillard@redhat.com> 0.0.10-1
  264. - more documentation
  265. - Added support for a configuration file $HOME/.gaminrc
  266. - fixes FAM compatibility issues with FAMErrno and FamErrlist #132944
  267. * Wed Sep 1 2004 Daniel Veillard <veillard@redhat.com> 0.0.9-1
  268. - fix crash with konqueror #130967
  269. - exclude kernel (dnotify) monitoring for /mnt//* /media//*
  270. * Thu Aug 26 2004 Daniel Veillard <veillard@redhat.com> 0.0.8-1
  271. - Fixes crashes of the gam_server
  272. - try to correct the kernel/poll switching mode
  273. * Tue Aug 24 2004 Daniel Veillard <veillard@redhat.com> 0.0.7-1
  274. - add support for both polling and dnotify simultaneously
  275. - fixes monitoring of initially missing files
  276. - load control on very busy resources #124361, desactivating
  277. dnotify and falling back to polling for CPU drain
  278. * Thu Aug 19 2004 Daniel Veillard <veillard@redhat.com> 0.0.6-1
  279. - fixes simple file monitoring should close RH #129974
  280. - relocate gam_server in $(libexec)
  281. * Thu Aug 5 2004 Daniel Veillard <veillard@redhat.com> 0.0.5-1
  282. - Fix a crash when the client binary forks the gam_server and an
  283. atexit handler is run.
  284. * Wed Aug 4 2004 Daniel Veillard <veillard@redhat.com> 0.0.4-1
  285. - should fix KDE build problems