forked from pool/gamin
Compare commits
10 Commits
cb86b85646
...
a38346b546
Author | SHA256 | Date | |
---|---|---|---|
a38346b546 | |||
b4dbf9572a | |||
09fd04dfdd | |||
cd9892a353 | |||
c5b7547f8e | |||
90b3823855 | |||
439a95d54b | |||
|
2c7a3b597e | ||
8d5e059862 | |||
3d255e5e86 |
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>gamin-devel</package>
|
||||
</multibuild>
|
||||
|
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
|
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gamin-devel
|
||||
#
|
||||
# Copyright (c) 2014 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,42 +12,41 @@
|
||||
# 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-devel
|
||||
Version: 0.1.10
|
||||
Release: 0
|
||||
%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
|
||||
License: LGPL-2.1-only
|
||||
Group: Development/Libraries/C and C++
|
||||
# Both have libfam.so
|
||||
Conflicts: fam-devel
|
||||
Requires: libfam%{famnum}-gamin = %{version}
|
||||
Requires: libgamin-%{packnum} = %{version}
|
||||
Provides: %{name}-static = %{version}
|
||||
Url: http://www.gnome.org/~veillard/gamin/
|
||||
Source: http://www.gnome.org/~veillard/gamin/sources/gamin-%{version}.tar.gz
|
||||
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
|
||||
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
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Libraries, includes, etc. to use and build against gamin.
|
||||
@@ -55,6 +54,7 @@ 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}
|
||||
|
||||
@@ -66,6 +66,7 @@ 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
|
||||
@@ -74,41 +75,30 @@ monitor mechanism compatible with FAM, but not dependent on a system wide
|
||||
daemon.
|
||||
|
||||
%prep
|
||||
%setup -q -n gamin-%version
|
||||
%patch0 -p0
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%autosetup -n gamin-%version -p1
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
%configure --disable-static --disable-server
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm "%{buildroot}%{_libdir}"/*.la
|
||||
|
||||
%post -n libgamin-%{packnum} -p /sbin/ldconfig
|
||||
%postun -n libgamin-%{packnum} -p /sbin/ldconfig
|
||||
|
||||
%post -n libfam%{famnum}-gamin -p /sbin/ldconfig
|
||||
%postun -n libfam%{famnum}-gamin -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n libgamin-%{packnum}
|
||||
%ldconfig_scriptlets -n libfam%{famnum}-gamin
|
||||
|
||||
%files -n libgamin-%{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}-gamin
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libfam.so.%{famnum}
|
||||
%{_libdir}/libfam.so.%{famnum}.*
|
||||
|
||||
%files -n gamin-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/fam.h
|
||||
%{_libdir}/libfam.so
|
||||
%{_libdir}/libgamin-%{vernum}.so
|
||||
|
@@ -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,44 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
56
gamin.spec
56
gamin.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gamin
|
||||
#
|
||||
# Copyright (c) 2014 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,60 +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
|
||||
Release: 0
|
||||
%define sonum 0
|
||||
%define vernum 1
|
||||
%define packnum %{vernum}-%{sonum}
|
||||
%define famnum 0
|
||||
Name: gamin
|
||||
Version: 0.1.10
|
||||
Release: 0
|
||||
Summary: Library providing the FAM File Alteration Monitor API
|
||||
License: LGPL-2.1
|
||||
License: LGPL-2.1-only
|
||||
Group: System/Daemons
|
||||
Url: http://www.gnome.org/~veillard/%{name}/
|
||||
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 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 doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation and help files for %{name}.
|
||||
@@ -82,23 +69,15 @@ 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
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --enable-tests
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm "%{buildroot}%{_libdir}"/*.la
|
||||
mkdir -p .rpmdoc/python
|
||||
mv doc/python.html .rpmdoc/python/doc.html
|
||||
%fdupes %{buildroot}
|
||||
|
||||
# drop files which are build via libgamin spec file
|
||||
@@ -112,14 +91,7 @@ rm %buildroot%{_includedir}/fam.h \
|
||||
# tests are currently broken :/
|
||||
make tests || echo "**** WARNING TESTSUITE FAILS ****"
|
||||
|
||||
%files -n python-%{name}
|
||||
%defattr(-,root,root)
|
||||
%doc .rpmdoc/python/*
|
||||
%{py_sitedir}/gamin.py*
|
||||
%{py_sitedir}/_gamin*
|
||||
|
||||
%files server
|
||||
%defattr(-, root, root)
|
||||
%{_libexecdir}/gam_server
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user