forked from pool/gamin
Compare commits
25 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| af62c5eeb9 | |||
| 54dae2955c | |||
| 24dbc77b84 | |||
| bcd07979e9 | |||
| 4ad0020b35 | |||
| d7cc41c030 | |||
| 7b81bcd2f8 | |||
| 38a72d374c | |||
| 92f8adb02f | |||
| d7f14c85f5 | |||
| e199b101b4 | |||
| 7daf26f326 | |||
| e99295061c | |||
| e93da05611 | |||
|
|
c9b1b6e869 | ||
| 4aef13e963 | |||
|
|
3c28e68a30 | ||
| 9e1eb21fb1 | |||
|
|
b08afaa6d0 | ||
|
|
0c761e67a0 | ||
|
|
9715b2465f | ||
|
|
542a2e8f2f | ||
|
|
34fe86757a | ||
|
|
cfff84af1b | ||
|
|
e02bc9f296 |
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
|
||||
|
||||
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>gamin-devel</package>
|
||||
</multibuild>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
libgamin-1-0
|
||||
libfam0-gamin
|
||||
conflicts "libfam0-<targettype>"
|
||||
|
||||
3
gamin-0.1.10.tar.bz2
Normal file
3
gamin-0.1.10.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
|
||||
size 452194
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28085f0ae8be10eab582ff186af4fb0be92cc6c62b5cc19cd09b295c7c2899a1
|
||||
size 653392
|
||||
35
gamin-0.1.11-double-lock.patch
Normal file
35
gamin-0.1.11-double-lock.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From 50df2c4de7b3aa8bed8781c92afb9a635a01df3f Mon Sep 17 00:00:00 2001
|
||||
From: Sandro Mani <manisandro@gmail.com>
|
||||
Date: Fri, 3 Feb 2012 09:10:21 +0100
|
||||
Subject: [PATCH] Fix double lock
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=669292
|
||||
---
|
||||
server/inotify-helper.c | 4 ----
|
||||
1 files changed, 0 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/server/inotify-helper.c b/server/inotify-helper.c
|
||||
index d77203e..defa7c6 100644
|
||||
--- a/server/inotify-helper.c
|
||||
+++ b/server/inotify-helper.c
|
||||
@@ -127,9 +127,6 @@ ih_sub_add (ih_sub_t * sub)
|
||||
gboolean
|
||||
ih_sub_cancel (ih_sub_t * sub)
|
||||
{
|
||||
- G_LOCK(inotify_lock);
|
||||
-
|
||||
-
|
||||
if (!sub->cancelled)
|
||||
{
|
||||
IH_W("cancelling %s\n", sub->pathname);
|
||||
@@ -140,7 +137,6 @@ ih_sub_cancel (ih_sub_t * sub)
|
||||
sub_list = g_list_remove (sub_list, sub);
|
||||
}
|
||||
|
||||
- G_UNLOCK(inotify_lock);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
--
|
||||
1.7.9
|
||||
|
||||
28
gamin-devel.changes
Normal file
28
gamin-devel.changes
Normal file
@@ -0,0 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 31 21:39:55 UTC 2024 - Michael Gorse <mgorse@suse.com>
|
||||
|
||||
- Add gamin-missing-includes.patch: fix implicit function
|
||||
declarations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 27 11:15:33 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Rediff patches for consistent patch level.
|
||||
- Delete old specfile constructs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 8 11:56:53 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Use FAT LTO objects in order to provide proper static library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 16:23:47 CET 2014 - fcrozat@suse.com
|
||||
|
||||
- Both library packages must require gamin-server sub-package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 10:11:36 UTC 2014 - adrian@suse.de
|
||||
|
||||
- split lib* packages into own spec file to avoid a build cycle
|
||||
(avoiding glib2)
|
||||
|
||||
108
gamin-devel.spec
Normal file
108
gamin-devel.spec
Normal file
@@ -0,0 +1,108 @@
|
||||
#
|
||||
# spec file for package gamin-devel
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define sonum 0
|
||||
%define vernum 1
|
||||
%define packnum %{vernum}-%{sonum}
|
||||
%define famnum 0
|
||||
Name: gamin-devel
|
||||
Version: 0.1.10
|
||||
Release: 0
|
||||
Summary: Libraries and includes to build against gamin
|
||||
License: LGPL-2.1-only
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: http://www.gnome.org/~veillard/gamin/
|
||||
Source0: https://download.gnome.org/sources/gamin/0.1/gamin-%{version}.tar.bz2
|
||||
Source2: gamin-rpmlintrc
|
||||
Patch0: gamin-return.patch
|
||||
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
|
||||
Patch3: gamin-obsol-glib.diff
|
||||
# PATCH-FIX-UPSTREAM gamin-0.1.11-double-lock.patch (bgo#669292)
|
||||
Patch4: gamin-0.1.11-double-lock.patch
|
||||
# PATCH-FIX-UPSTREAM 0001-Poll-files-on-nfs4.patch (bgo#693006)
|
||||
Patch5: 0001-Poll-files-on-nfs4.patch
|
||||
Patch6: gamin-missing-includes.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: pkgconfig
|
||||
Requires: libfam%{famnum}-gamin = %{version}
|
||||
Requires: libgamin-%{packnum} = %{version}
|
||||
# Both have libfam.so
|
||||
Conflicts: fam-devel
|
||||
Provides: %{name}-static = %{version}
|
||||
# No glib* requires here to avoid build cycles
|
||||
|
||||
%description
|
||||
Libraries, includes, etc. to use and build against gamin.
|
||||
|
||||
%package -n libgamin-%{packnum}
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
Group: System/Libraries
|
||||
Requires: gamin-server >= %{version}
|
||||
Provides: libgamin = %{version}
|
||||
Obsoletes: libgamin < %{version}
|
||||
|
||||
%description -n libgamin-%{packnum}
|
||||
This C library provides an API and ABI compatible file alteration
|
||||
monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%package -n libfam%{famnum}-gamin
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
Group: System/Libraries
|
||||
Requires: gamin-server >= %{version}
|
||||
Conflicts: libfam0
|
||||
|
||||
%description -n libfam%{famnum}-gamin
|
||||
This C library provides an API and ABI compatible file alteration
|
||||
monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%prep
|
||||
%autosetup -n gamin-%version -p1
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
%configure --disable-static --disable-server
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm "%{buildroot}%{_libdir}"/*.la
|
||||
|
||||
%ldconfig_scriptlets -n libgamin-%{packnum}
|
||||
%ldconfig_scriptlets -n libfam%{famnum}-gamin
|
||||
|
||||
%files -n libgamin-%{packnum}
|
||||
%doc AUTHORS ChangeLog NEWS README Copyright TODO
|
||||
%{_libdir}/libgamin-%{vernum}.so.%{sonum}
|
||||
%{_libdir}/libgamin-%{vernum}.so.%{sonum}.*
|
||||
|
||||
%files -n libfam%{famnum}-gamin
|
||||
%{_libdir}/libfam.so.%{famnum}
|
||||
%{_libdir}/libfam.so.%{famnum}.*
|
||||
|
||||
%files -n gamin-devel
|
||||
%{_includedir}/fam.h
|
||||
%{_libdir}/libfam.so
|
||||
%{_libdir}/libgamin-%{vernum}.so
|
||||
%{_libdir}/libgamin_shared.a
|
||||
%{_libdir}/pkgconfig/gamin.pc
|
||||
|
||||
%changelog
|
||||
@@ -1,6 +1,13 @@
|
||||
--- libgamin/fam.h.orig 2009-07-25 01:23:31.000000000 +0200
|
||||
+++ libgamin/fam.h 2009-07-25 01:25:27.000000000 +0200
|
||||
@@ -214,14 +214,19 @@
|
||||
---
|
||||
libgamin/fam.h | 15 ++++++++++-----
|
||||
libgamin/gam_api.c | 4 +++-
|
||||
2 files changed, 13 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: gamin-0.1.10/libgamin/fam.h
|
||||
===================================================================
|
||||
--- gamin-0.1.10.orig/libgamin/fam.h
|
||||
+++ gamin-0.1.10/libgamin/fam.h
|
||||
@@ -214,14 +214,19 @@ extern int FAMDebugLevel (FAMConnection
|
||||
#define FAM_DEBUG_VERBOSE 2
|
||||
|
||||
/**
|
||||
@@ -25,9 +32,11 @@
|
||||
|
||||
/**
|
||||
* FAMNoExists:
|
||||
--- libgamin/gam_api.c.orig 2009-07-25 01:25:45.000000000 +0200
|
||||
+++ libgamin/gam_api.c 2009-07-25 01:26:17.000000000 +0200
|
||||
@@ -40,7 +40,9 @@
|
||||
Index: gamin-0.1.10/libgamin/gam_api.c
|
||||
===================================================================
|
||||
--- gamin-0.1.10.orig/libgamin/gam_api.c
|
||||
+++ gamin-0.1.10/libgamin/gam_api.c
|
||||
@@ -40,7 +40,9 @@ static enum {
|
||||
FAM_UNIMPLEM/* Unimplemented */
|
||||
} FAMError;
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
--- python/gamin.py.orig 2011-02-13 21:06:20.000000000 +0100
|
||||
+++ python/gamin.py 2011-02-13 21:06:27.000000000 +0100
|
||||
@@ -1,5 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
-
|
||||
import _gamin
|
||||
import os.path
|
||||
|
||||
@@ -253,5 +251,3 @@
|
||||
print "disconnecting"
|
||||
del mon
|
||||
|
||||
-if __name__ == '__main__':
|
||||
- run_unit_tests()
|
||||
55
gamin-missing-includes.patch
Normal file
55
gamin-missing-includes.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
diff -urp gamin-0.1.10.orig/server/gam_connection.c gamin-0.1.10/server/gam_connection.c
|
||||
--- gamin-0.1.10.orig/server/gam_connection.c 2007-07-04 08:36:49.000000000 -0500
|
||||
+++ gamin-0.1.10/server/gam_connection.c 2024-05-31 16:37:12.317543600 -0500
|
||||
@@ -17,6 +17,7 @@
|
||||
#endif
|
||||
#ifdef ENABLE_INOTIFY
|
||||
#include "gam_inotify.h"
|
||||
+#include "gam_excludes.h"
|
||||
#endif
|
||||
#include "fam.h"
|
||||
|
||||
diff -urp gamin-0.1.10.orig/server/gam_inotify.c gamin-0.1.10/server/gam_inotify.c
|
||||
--- gamin-0.1.10.orig/server/gam_inotify.c 2008-11-12 14:45:28.000000000 -0600
|
||||
+++ gamin-0.1.10/server/gam_inotify.c 2024-05-31 16:37:12.317543600 -0500
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "gam_server.h"
|
||||
#include "gam_subscription.h"
|
||||
#include "gam_inotify.h"
|
||||
+#include "gam_poll_basic.h"
|
||||
|
||||
/* Transforms a inotify event to a gamin event. */
|
||||
static GaminEventType
|
||||
diff -urp gamin-0.1.10.orig/server/gam_listener.c gamin-0.1.10/server/gam_listener.c
|
||||
--- gamin-0.1.10.orig/server/gam_listener.c 2007-07-04 08:36:49.000000000 -0500
|
||||
+++ gamin-0.1.10/server/gam_listener.c 2024-05-31 16:37:12.314210251 -0500
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "gam_pidname.h"
|
||||
#ifdef ENABLE_INOTIFY
|
||||
#include "gam_inotify.h"
|
||||
+#include "gam_excludes.h"
|
||||
#endif
|
||||
|
||||
//#define GAM_LISTENER_VERBOSE
|
||||
diff -urp gamin-0.1.10.orig/server/gam_node.c gamin-0.1.10/server/gam_node.c
|
||||
--- gamin-0.1.10.orig/server/gam_node.c 2024-05-31 16:36:31.874029974 -0500
|
||||
+++ gamin-0.1.10/server/gam_node.c 2024-05-31 16:37:12.317543600 -0500
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "gam_event.h"
|
||||
#include "gam_node.h"
|
||||
#include "gam_error.h"
|
||||
+#include "gam_server.h"
|
||||
|
||||
/**
|
||||
* Create a new node
|
||||
diff -urp gamin-0.1.10.orig/server/gam_server.c gamin-0.1.10/server/gam_server.c
|
||||
--- gamin-0.1.10.orig/server/gam_server.c 2024-05-31 16:36:12.563943900 -0500
|
||||
+++ gamin-0.1.10/server/gam_server.c 2024-05-31 16:37:12.317543600 -0500
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "gam_channel.h"
|
||||
#include "gam_subscription.h"
|
||||
#include "gam_poll_generic.h"
|
||||
+#include "gam_poll_basic.h"
|
||||
#ifdef ENABLE_INOTIFY
|
||||
#include "gam_inotify.h"
|
||||
#endif
|
||||
@@ -1,5 +1,12 @@
|
||||
--- server/gam_eq.c.orig 2008-12-22 21:58:44.000000000 +0100
|
||||
+++ server/gam_eq.c 2008-12-22 21:56:46.000000000 +0100
|
||||
---
|
||||
server/gam_eq.c | 2 +-
|
||||
server/gam_server.c | 1 +
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: gamin-0.1.10/server/gam_eq.c
|
||||
===================================================================
|
||||
--- gamin-0.1.10.orig/server/gam_eq.c
|
||||
+++ gamin-0.1.10/server/gam_eq.c
|
||||
@@ -124,7 +124,7 @@ gam_eq_flush (gam_eq_t *eq, GamConnDataP
|
||||
{
|
||||
gboolean done_work = FALSE;
|
||||
@@ -9,8 +16,10 @@
|
||||
|
||||
#ifdef GAM_EQ_VERBOSE
|
||||
GAM_DEBUG(DEBUG_INFO, "gam_eq: Flushing event queue for %s\n", gam_connection_get_pidname (conn));
|
||||
--- server/gam_server.c.orig 2008-12-22 21:58:21.000000000 +0100
|
||||
+++ server/gam_server.c 2008-12-22 21:57:49.000000000 +0100
|
||||
Index: gamin-0.1.10/server/gam_server.c
|
||||
===================================================================
|
||||
--- gamin-0.1.10.orig/server/gam_server.c
|
||||
+++ gamin-0.1.10/server/gam_server.c
|
||||
@@ -532,6 +532,7 @@ gam_error_signal_pipe_handler(gpointer u
|
||||
g_io_channel_read_chars(pipe_read_ioc, buf, sizeof(buf), NULL, NULL);
|
||||
|
||||
@@ -19,4 +28,3 @@
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
|
||||
@@ -1,3 +1,62 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 31 21:39:00 UTC 2024 - Michael Gorse <mgorse@suse.com>
|
||||
|
||||
- Add gamin-missing-includes.patch: fix implicit function
|
||||
declarations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 27 11:15:33 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Rediff patches for consistent patch level.
|
||||
- Delete old specfile constructs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 13:21:42 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Add _multibuild to define 2nd spec file as additional flavor.
|
||||
Eliminates the need for source package links in OBS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 28 17:11:06 UTC 2021 - Michael Gorse <mgorse@suse.com>
|
||||
|
||||
- Fix source URI.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 9 13:23:06 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Disable python bindings (python2-only):
|
||||
+ Drop python-devel BuildRequires.
|
||||
+ Drop gamin-fix_python_main.patch: no longer needed.
|
||||
+ No longer build python-gamin sub-package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 6 09:33:25 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Add baselibs.conf to the file source list.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 25 16:26:53 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Replace deprecated macro py_sitedir with python_sitearch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 10:08:35 UTC 2014 - adrian@suse.de
|
||||
|
||||
- split lib* packages into own spec file to avoid a build cycle
|
||||
- found a testsuite, run it, but ignore result since it show
|
||||
breakages. Should be revisited.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 21:33:01 UTC 2013 - hrvoje.senjan@gmail.com
|
||||
|
||||
- Added 0001-Poll-files-on-nfs4.patch (bgo#693006) and
|
||||
gamin-0.1.11-double-lock.patch (bgo#669292)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 26 11:01:11 UTC 2013 - coolo@suse.com
|
||||
|
||||
- add conflict with libfam0-32bit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 5 11:07:49 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
|
||||
130
gamin.spec
130
gamin.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gamin
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,88 +12,47 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: gamin
|
||||
Version: 0.1.10
|
||||
|
||||
%define sonum 0
|
||||
%define vernum 1
|
||||
%define packnum %{vernum}-%{sonum}
|
||||
%define famnum 0
|
||||
Name: gamin
|
||||
Version: 0.1.10
|
||||
Release: 0
|
||||
License: LGPL-2.1
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
Url: http://www.gnome.org/~veillard/%{name}/
|
||||
License: LGPL-2.1-only
|
||||
Group: System/Daemons
|
||||
Source: http://www.gnome.org/~veillard/%{name}/sources/%{name}-%{version}.tar.gz
|
||||
URL: http://www.gnome.org/~veillard/%{name}/
|
||||
Source0: https://download.gnome.org/sources/gamin/0.1/gamin-%{version}.tar.bz2
|
||||
Source2: %name-rpmlintrc
|
||||
Source99: baselibs.conf
|
||||
Patch0: gamin-return.patch
|
||||
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
|
||||
Patch2: gamin-fix_python_main.patch
|
||||
Patch3: gamin-obsol-glib.diff
|
||||
# PATCH-FIX-UPSTREAM gamin-0.1.11-double-lock.patch (bgo#669292)
|
||||
Patch4: gamin-0.1.11-double-lock.patch
|
||||
# PATCH-FIX-UPSTREAM 0001-Poll-files-on-nfs4.patch (bgo#693006)
|
||||
Patch5: 0001-Poll-files-on-nfs4.patch
|
||||
Patch6: gamin-missing-includes.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
This C library provides an API and ABI compatible file alteration
|
||||
monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%package -n lib%{name}-%{packnum}
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
Group: System/Libraries
|
||||
Provides: lib%{name} = %{version}
|
||||
Obsoletes: lib%{name} < %{version}
|
||||
|
||||
%description -n lib%{name}-%{packnum}
|
||||
This C library provides an API and ABI compatible file alteration
|
||||
monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%package -n libfam%{famnum}-%{name}
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
Group: System/Libraries
|
||||
Conflicts: libfam0
|
||||
|
||||
%description -n libfam%{famnum}-%{name}
|
||||
This C library provides an API and ABI compatible file alteration
|
||||
monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%package -n python-%{name}
|
||||
Summary: Python bindings for the %{name} library
|
||||
Group: Development/Libraries/Python
|
||||
Requires: lib%{name}-%{packnum} = %{version}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
%py_requires
|
||||
|
||||
%description -n python-%{name}
|
||||
The python-%{name} package contains a module that allow monitoring of
|
||||
files and directories from the Python language based on the support
|
||||
of the %{name} package.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and includes to build against %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
# Both have libfam.so
|
||||
Conflicts: fam-devel
|
||||
Requires: lib%{name}-%{packnum} = %{version}
|
||||
Requires: libfam%{famnum}-%{name} = %{version}
|
||||
Provides: %{name}-devel-static = %{version}
|
||||
|
||||
%description devel
|
||||
Libraries, includes, etc. to use and build against %{name}.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation and help files for %{name}.
|
||||
@@ -110,62 +69,29 @@ It is split off into its own subpackage to void file conflicts when both
|
||||
%{name} and %{name}-32bit are installed on a multiarch platform.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p0
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
%configure --disable-static --enable-tests
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm "%{buildroot}%{_libdir}"/*.la
|
||||
mkdir -p .rpmdoc/python
|
||||
mv doc/python.html .rpmdoc/python/doc.html
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%post -n lib%{name}-%{packnum} -p /sbin/ldconfig
|
||||
%postun -n lib%{name}-%{packnum} -p /sbin/ldconfig
|
||||
# drop files which are build via libgamin spec file
|
||||
rm %buildroot%{_includedir}/fam.h \
|
||||
%buildroot%{_libdir}/lib%{name}_shared.a \
|
||||
%buildroot%{_libdir}/pkgconfig/gamin.pc \
|
||||
%buildroot%{_libdir}/libgamin-%{vernum}.so* \
|
||||
%buildroot%{_libdir}/libfam.so*
|
||||
|
||||
%post -n libfam%{famnum}-%{name} -p /sbin/ldconfig
|
||||
%postun -n libfam%{famnum}-%{name} -p /sbin/ldconfig
|
||||
|
||||
%files -n lib%{name}-%{packnum}
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS ChangeLog NEWS README Copyright TODO
|
||||
%{_libdir}/libgamin-%{vernum}.so.%{sonum}
|
||||
%{_libdir}/libgamin-%{vernum}.so.%{sonum}.*
|
||||
|
||||
%files -n libfam%{famnum}-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libfam.so.%{famnum}
|
||||
%{_libdir}/libfam.so.%{famnum}.*
|
||||
|
||||
%files -n python-%{name}
|
||||
%defattr(-,root,root)
|
||||
%doc .rpmdoc/python/*
|
||||
%{py_sitedir}/gamin.py*
|
||||
%{py_sitedir}/_gamin*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/fam.h
|
||||
%{_libdir}/libfam.so
|
||||
%{_libdir}/lib%{name}-%{vernum}.so
|
||||
%{_libdir}/lib%{name}_shared.a
|
||||
%{_libdir}/pkgconfig/gamin.pc
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc doc/*.gif
|
||||
%doc doc/*.html
|
||||
%doc doc/*.txt
|
||||
%check
|
||||
# tests are currently broken :/
|
||||
make tests || echo "**** WARNING TESTSUITE FAILS ****"
|
||||
|
||||
%files server
|
||||
%defattr(-, root, root)
|
||||
%{_libexecdir}/gam_server
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user