init
This commit is contained in:
commit
519d5a52b8
27
0001-Poll-files-on-nfs4.patch
Normal file
27
0001-Poll-files-on-nfs4.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From b92b17ecced6df463da73d6de566740cf5cd00d4 Mon Sep 17 00:00:00 2001
|
||||
From: Marek Kasik <mkasik@redhat.com>
|
||||
Date: Fri, 1 Feb 2013 15:19:58 +0100
|
||||
Subject: [PATCH 1/2] Poll files on nfs4
|
||||
|
||||
Add nfs4 among polled filesystems.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=693006
|
||||
---
|
||||
server/gam_fs.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/server/gam_fs.c b/server/gam_fs.c
|
||||
index c8ca704..143a603 100644
|
||||
--- a/server/gam_fs.c
|
||||
+++ b/server/gam_fs.c
|
||||
@@ -178,6 +178,7 @@ gam_fs_init (void)
|
||||
gam_fs_set ("reiserfs", GFS_MT_DEFAULT, 0);
|
||||
gam_fs_set ("novfs", GFS_MT_POLL, 30);
|
||||
gam_fs_set ("nfs", GFS_MT_POLL, 5);
|
||||
+ gam_fs_set ("nfs4", GFS_MT_POLL, 5);
|
||||
if (stat("/etc/mtab", &mtab_sbuf) != 0)
|
||||
{
|
||||
GAM_DEBUG(DEBUG_INFO, "Could not stat /etc/mtab\n");
|
||||
--
|
||||
1.8.1.2
|
||||
|
||||
@ -0,0 +1,68 @@
|
||||
From 77fe68f43ce75e920b0a94b0bc572cf3a21714f2 Mon Sep 17 00:00:00 2001
|
||||
From: Maciej Piechotka <uzytkownik2@gmail.com>
|
||||
Date: Tue, 13 Sep 2011 09:47:05 +0200
|
||||
Subject: [PATCH 2/2] Fix compilation of recent glib removing G_CONST_RETURN
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=658884
|
||||
---
|
||||
server/gam_node.c | 2 +-
|
||||
server/gam_node.h | 2 +-
|
||||
server/gam_subscription.c | 2 +-
|
||||
server/gam_subscription.h | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/server/gam_node.c b/server/gam_node.c
|
||||
index 02358ba..d0302d2 100644
|
||||
--- a/server/gam_node.c
|
||||
+++ b/server/gam_node.c
|
||||
@@ -122,7 +122,7 @@ gam_node_set_is_dir(GamNode * node, gboolean is_dir)
|
||||
* it has finished with the string. If it must keep it longer, it
|
||||
* should makes its own copy. The returned string must not be freed.
|
||||
*/
|
||||
-G_CONST_RETURN char *
|
||||
+const char *
|
||||
gam_node_get_path(GamNode * node)
|
||||
{
|
||||
g_assert(node);
|
||||
diff --git a/server/gam_node.h b/server/gam_node.h
|
||||
index 02c8692..83349a8 100644
|
||||
--- a/server/gam_node.h
|
||||
+++ b/server/gam_node.h
|
||||
@@ -58,7 +58,7 @@ gboolean gam_node_is_dir (GamNode *node);
|
||||
void gam_node_set_is_dir (GamNode *node,
|
||||
gboolean is_dir);
|
||||
|
||||
-G_CONST_RETURN char *gam_node_get_path (GamNode *node);
|
||||
+const char *gam_node_get_path (GamNode *node);
|
||||
|
||||
GList *gam_node_get_subscriptions (GamNode *node);
|
||||
|
||||
diff --git a/server/gam_subscription.c b/server/gam_subscription.c
|
||||
index dfa3273..4675b34 100644
|
||||
--- a/server/gam_subscription.c
|
||||
+++ b/server/gam_subscription.c
|
||||
@@ -141,7 +141,7 @@ gam_subscription_pathlen(GamSubscription * sub)
|
||||
* @param sub the GamSubscription
|
||||
* @returns The path being monitored. It should not be freed.
|
||||
*/
|
||||
-G_CONST_RETURN char *
|
||||
+const char *
|
||||
gam_subscription_get_path(GamSubscription * sub)
|
||||
{
|
||||
if (sub == NULL)
|
||||
diff --git a/server/gam_subscription.h b/server/gam_subscription.h
|
||||
index d894fbe..e6b4e15 100644
|
||||
--- a/server/gam_subscription.h
|
||||
+++ b/server/gam_subscription.h
|
||||
@@ -21,7 +21,7 @@ int gam_subscription_pathlen (GamSubscription *sub);
|
||||
|
||||
int gam_subscription_get_reqno (GamSubscription *sub);
|
||||
|
||||
-G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
|
||||
+const char *gam_subscription_get_path (GamSubscription *sub);
|
||||
|
||||
GamListener *gam_subscription_get_listener (GamSubscription *sub);
|
||||
|
||||
--
|
||||
1.8.1.2
|
||||
|
||||
BIN
gamin-0.1.10.tar.bz2
Normal file
BIN
gamin-0.1.10.tar.bz2
Normal file
Binary file not shown.
126
gamin.spec
Normal file
126
gamin.spec
Normal file
@ -0,0 +1,126 @@
|
||||
Name: gamin
|
||||
Version: 0.1.10
|
||||
Release: 39
|
||||
Summary: File Alteration Monitor
|
||||
License: LGPLv2
|
||||
URL: http://www.gnome.org/~veillard/gamin/
|
||||
Source0: http://ftp.gnome.org/pub/GNOME/sources/gamin/0.1/gamin-%{version}.tar.bz2
|
||||
Patch0: 0001-Poll-files-on-nfs4.patch
|
||||
Patch1: 0002-Fix-compilation-of-recent-glib-removing-G_CONST_RETU.patch
|
||||
|
||||
BuildRequires: gcc git automake autoconf libtool glib2-devel python2-devel python2
|
||||
BuildRequires: python-unversioned-command
|
||||
|
||||
%description
|
||||
The Gamin package contains a File Alteration Monitor which is
|
||||
useful for notifying applications of changes to the file system.
|
||||
Gamin is compatible with FAM.
|
||||
This package is known to build using an LFS 7.4 platform but
|
||||
has not been tested.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Obsoletes: %{name}-static < %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package help
|
||||
Summary: Doc files for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description help
|
||||
The %{name}-help package contains doc files for %{name}.
|
||||
|
||||
%package -n python2-gamin
|
||||
Summary: Python bindings for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-gamin}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
|
||||
%description -n python2-gamin
|
||||
The python2-gamin package contains a module that allow monitoring
|
||||
of files and directories from the Python language based on the
|
||||
support of the gamin package.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1 -S git
|
||||
|
||||
%build
|
||||
autoreconf -vif
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
|
||||
touch %{buildroot}/%{_sysconfdir}/%{name}/gaminrc
|
||||
touch %{buildroot}/%{_sysconfdir}/%{name}/mandatory_gaminrc
|
||||
rm -f %{buildroot}/%{_libdir}/*.la
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING AUTHORS
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/gaminrc
|
||||
%config(noreplace) %{_sysconfdir}/gamin/mandatory_gaminrc
|
||||
%{_libdir}/*.so*
|
||||
%{_libexecdir}/gam_server
|
||||
|
||||
%files devel
|
||||
%{_includedir}/fam.h
|
||||
%{_libdir}/pkgconfig/gamin.pc
|
||||
%{_libdir}/*.a
|
||||
%{python2_sitearch}/*.a
|
||||
|
||||
%files help
|
||||
%doc ChangeLog NEWS README TODO doc/*.html doc/*.gif doc/*.txt
|
||||
%doc doc/python.html
|
||||
|
||||
%files -n python2-gamin
|
||||
%doc python/tests/*.py
|
||||
%{python2_sitearch}/gamin.py*
|
||||
%{python2_sitearch}/_gamin*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 05 2021 shixuantong <shixuantong@huawei.com> - 0.1.10-39
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: package rebuild
|
||||
|
||||
* Tue Jan 7 2020 JeanLeo <liujianliu.liu@huawei.com> - 0.1.10-37
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: update software package
|
||||
|
||||
* Wed Oct 10 2019 luhuaxin <luhuaxin@huawei.com> - 0.1.10-36
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: move AUTHORS to license folder
|
||||
|
||||
* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 0.1.10-35
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: package rebuild
|
||||
|
||||
* Tue Sep 27 2019 luhuaxin <luhuaxin@huawei.com> - 0.1.10-34
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: delete useless comments
|
||||
|
||||
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 0.1.10-33
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user