|
@@ -1,13 +1,30 @@
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
-%define python_archlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
|
|
|
+
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
Summary(ja): FAM (File Alteration Monitor) API を提供するライブラリ
|
|
|
Name: gamin
|
|
|
Version: 0.1.10
|
|
|
-Release: 6%{?_dist_release}
|
|
|
+Release: 7%{?_dist_release}
|
|
|
License: LGPLv2
|
|
|
Group: System Environment/Daemons
|
|
|
Source: gamin-%{version}.tar.bz2
|
|
|
+# sample config file
|
|
|
+Source1: gaminrc
|
|
|
+
|
|
|
+# The patch declares HAVE_LINUX in case of linux-gnueabi as well.
|
|
|
+# Patch by Kedar Sovani <kedars@marvell.com>
|
|
|
+Patch1: gamin-0.1.10-gnueabi.patch
|
|
|
+
|
|
|
+# Don't try to build with -DG_DISABLE_DEPRECATED - glib has moved on
|
|
|
+Patch2: gamin-manape.patch
|
|
|
+
|
|
|
+# upstream fixes
|
|
|
+Patch4: 0001-Poll-files-on-nfs4.patch
|
|
|
+Patch5: 0002-Fix-compilation-of-recent-glib-removing-G_CONST_RETU.patch
|
|
|
+# gam_server deadlocks, leading to all KDE applications hanging at start
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=786170
|
|
|
+# https://bugzilla.gnome.org/show_bug.cgi?id=667120
|
|
|
+Patch7: 0004-fix-possible-server-deadlock-in-ih_sub_cancel.patch
|
|
|
|
|
|
# patch from ubuntu
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/gamin/+bug/829504
|
|
@@ -17,7 +34,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
URL: http://www.gnome.org/~veillard/gamin/
|
|
|
Obsoletes: fam
|
|
|
Provides: fam
|
|
|
-BuildRequires: glib2-devel, python, python-devel
|
|
|
+BuildRequires: glib2-devel, python, python-devel, python-rpm-macros
|
|
|
+BuildRequires: libxcrypt-devel
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -56,7 +74,6 @@ Summary(ja): Gamin ライブラリ用の Python バインディング
|
|
|
Group: Development/Libraries
|
|
|
Requires: gamin = %{version}-%{release}
|
|
|
Requires: python
|
|
|
-#Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
|
|
|
|
|
|
%description python
|
|
|
The gamin-python package contains a module that allow monitoring of
|
|
@@ -101,22 +118,50 @@ Gamin ライブラリは FAM と API/ABI 互換のファイル変更検知シス
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+%patch1 -p1 -b .gnueabi
|
|
|
+%patch2 -p1 -b .manape
|
|
|
+%patch4 -p1 -b .nfs4
|
|
|
+%patch5 -p1 -b .const
|
|
|
+%patch7 -p1 -b .double-lock
|
|
|
%patch10 -p1
|
|
|
+
|
|
|
+# recode docs into UTF-8
|
|
|
+for i in ChangeLog NEWS ; do
|
|
|
+ iconv -f iso-8859-1 -t utf-8 < $i > XXX
|
|
|
+ touch -r $i XXX
|
|
|
+ mv XXX $i
|
|
|
+done
|
|
|
+
|
|
|
+# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
|
|
+
|
|
|
+# replace "/usr/bin/env python" with "/usr/bin/python2"
|
|
|
+for i in `find -name '*.py'`; do
|
|
|
+ sed -i.bak "s|^#!/usr/bin/env python|#!%{__python2}|g" $i
|
|
|
+ touch -r ${i}.bak $i
|
|
|
+ rm ${i}.bak
|
|
|
+done
|
|
|
+
|
|
|
find server/ -type f -exec sed -i 's/G_CONST_RETURN/const/' {} ';'
|
|
|
|
|
|
%build
|
|
|
-%configure
|
|
|
+autoreconf -vif
|
|
|
+%configure \
|
|
|
+ --disable-static
|
|
|
+
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
|
|
-## remove unuse files
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
-rm -f $RPM_BUILD_ROOT%{python_archlib}/*.la
|
|
|
+install -D -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gamin/gaminrc
|
|
|
+touch %{buildroot}%{_sysconfdir}/gamin/mandatory_gaminrc
|
|
|
|
|
|
+rm -fv %{buildroot}%{_libdir}/lib*.la
|
|
|
+# gamin server links this, it gets installed even in --disable-static mode,
|
|
|
+# but continue to omit from packaging as has been done for a long time -- rex
|
|
|
+rm -fv %{buildroot}%{_libdir}/libgamin_shared.a
|
|
|
|
|
|
%clean
|
|
|
rm -fr %{buildroot}
|
|
@@ -132,18 +177,23 @@ rm -fr %{buildroot}
|
|
|
%files
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
-%doc AUTHORS ChangeLog NEWS README Copyright TODO
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS ChangeLog NEWS README TODO
|
|
|
%doc doc/*.html
|
|
|
%doc doc/*.gif
|
|
|
%doc doc/*.txt
|
|
|
-%{_libdir}/lib*.so.*
|
|
|
+%dir %{_sysconfdir}/gamin/
|
|
|
+%config(noreplace) %{_sysconfdir}/gamin/gaminrc
|
|
|
+%config(noreplace) %{_sysconfdir}/gamin/mandatory_gaminrc
|
|
|
+%{_libdir}/libfam.so.0*
|
|
|
+%{_libdir}/libgamin-1.so.0*
|
|
|
%{_libexecdir}/gam_server
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
-%{_libdir}/lib*.so
|
|
|
-%{_libdir}/*a
|
|
|
+%{_libdir}/libfam.so
|
|
|
+%{_libdir}/libgamin-1.so
|
|
|
%{_includedir}/fam.h
|
|
|
%{_libdir}/pkgconfig/gamin.pc
|
|
|
|
|
@@ -158,16 +208,20 @@ rm -fr %{buildroot}
|
|
|
%if %{build_compat32}
|
|
|
%files -n compat32-%{name}
|
|
|
%defattr(-, root, root)
|
|
|
-%{_libdir}/lib*.so.*
|
|
|
+%{_libdir}/libfam.so.0*
|
|
|
+%{_libdir}/libgamin-1.so.0*
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
|
%defattr(-, root, root)
|
|
|
-%{_libdir}/lib*.so
|
|
|
-%{_libdir}/*a
|
|
|
+%{_libdir}/libfam.so
|
|
|
+%{_libdir}/libgamin-1.so
|
|
|
%{_libdir}/pkgconfig/gamin.pc
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.10-7
|
|
|
+- rebuilt with current environment.
|
|
|
+
|
|
|
* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.10-6
|
|
|
- rebuild with VineSeed environment
|
|
|
|