SHA256
8
0
forked from pool/gamin

Compare commits

...

10 Commits

Author SHA256 Message Date
a38346b546 Accepting request 1177993 from home:mgorse:branches:devel:libraries:c_c++
- Add gamin-missing-includes.patch: fix implicit function
  declarations.

OBS-URL: https://build.opensuse.org/request/show/1177993
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=30
2024-06-02 10:08:00 +00:00
b4dbf9572a - Rediff patches for consistent patch level.
- Delete old specfile constructs.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=28
2024-02-27 11:18:25 +00:00
09fd04dfdd Accepting request 1152124 from home:dimstar:rpm4.20:g
Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1152124
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=27
2024-02-27 11:13:21 +00:00
cd9892a353 Accepting request 1084706 from home:dimstar:Factory
- Add _multibuild to define 2nd spec file as additional flavor.
  Eliminates the need for source package links in OBS.

OBS-URL: https://build.opensuse.org/request/show/1084706
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=25
2023-05-04 16:54:27 +00:00
c5b7547f8e Accepting request 922047 from home:mgorse:branches:devel:libraries:c_c++
- Fix source URI.

OBS-URL: https://build.opensuse.org/request/show/922047
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=24
2021-09-28 17:16:51 +00:00
90b3823855 Accepting request 762211 from home:dimstar:Factory
- 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.

OBS-URL: https://build.opensuse.org/request/show/762211
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=22
2020-01-09 16:42:34 +00:00
439a95d54b Accepting request 721734 from home:marxin:branches:devel:libraries:c_c++
- Use FAT LTO objects in order to provide proper static library.

OBS-URL: https://build.opensuse.org/request/show/721734
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=20
2019-08-13 08:28:24 +00:00
Ismail Dönmez
2c7a3b597e Accepting request 627617 from home:dimstar:Factory
- Add baselibs.conf to the file source list.

OBS-URL: https://build.opensuse.org/request/show/627617
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=18
2018-08-06 09:45:15 +00:00
8d5e059862 Accepting request 625820 from home:dimstar:Factory
- Replace deprecated macro py_sitedir with python_sitearch.

I was under the impression I submitted this already - but can't find any
reference for it... so redo

OBS-URL: https://build.opensuse.org/request/show/625820
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=17
2018-07-31 06:56:07 +00:00
3d255e5e86 Accepting request 220397 from home:fcrozat:branches:devel:libraries:c_c++
- Both library packages must require gamin-server sub-package.

OBS-URL: https://build.opensuse.org/request/show/220397
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=15
2014-01-30 17:20:44 +00:00
11 changed files with 188 additions and 101 deletions

4
_multibuild Normal file
View File

@@ -0,0 +1,4 @@
<multibuild>
<package>gamin-devel</package>
</multibuild>

3
gamin-0.1.10.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a59948b20ce2f14136c013f155abb8c8d51db2ea167c063ff33461e453fec10a
size 452194

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:28085f0ae8be10eab582ff186af4fb0be92cc6c62b5cc19cd09b295c7c2899a1
size 653392

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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()

View 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

View File

@@ -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

View File

@@ -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

View File

@@ -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