SHA256
8
0
forked from pool/gamin

25 Commits

Author SHA256 Message Date
af62c5eeb9 Accepting request 1178141 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1178141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=16
2024-06-04 10:51:00 +00:00
54dae2955c 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
24dbc77b84 Accepting request 1152209 from devel:libraries:c_c++
- Rediff patches for consistent patch level.
- Delete old specfile constructs.

OBS-URL: https://build.opensuse.org/request/show/1152209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=15
2024-02-28 18:45:09 +00:00
bcd07979e9 - 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
4ad0020b35 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
d7cc41c030 Accepting request 1084809 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1084809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=14
2023-05-05 13:57:14 +00:00
7b81bcd2f8 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
38a72d374c Accepting request 922048 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/922048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=13
2021-10-05 20:33:27 +00:00
92f8adb02f 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
d7f14c85f5 Accepting request 762486 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/762486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=12
2020-01-12 22:17:48 +00:00
e199b101b4 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
7daf26f326 Accepting request 723015 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/723015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=11
2019-09-05 10:29:24 +00:00
e99295061c 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
e93da05611 Accepting request 627622 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/627622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=10
2018-08-08 12:44:22 +00:00
Ismail Dönmez
c9b1b6e869 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
4aef13e963 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
Stephan Kulow
3c28e68a30 Accepting request 220410 from devel:libraries:c_c++
- Both library packages must require gamin-server sub-package. (forwarded request 220397 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/220410
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=8
2014-01-31 10:44:40 +00:00
9e1eb21fb1 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
Stephan Kulow
b08afaa6d0 Accepting request 213575 from devel:libraries:c_c++
split package to avoid build cycles due to glib2. requested by coolo (forwarded request 213417 from adrianSuSE)

OBS-URL: https://build.opensuse.org/request/show/213575
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=7
2014-01-17 13:00:16 +00:00
Stephan Kulow
0c761e67a0 Accepting request 213417 from home:adrianSuSE:branches:devel:libraries:c_c++
split package to avoid build cycles due to glib2. requested by coolo

OBS-URL: https://build.opensuse.org/request/show/213417
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=13
2014-01-11 10:21:02 +00:00
Stephan Kulow
9715b2465f Accepting request 200681 from devel:libraries:c_c++
Added 0001-Poll-files-on-nfs4.patch (bgo#693006) and gamin-0.1.11-double-lock.patch (bgo#669292) (forwarded request 200484 from sumski)

OBS-URL: https://build.opensuse.org/request/show/200681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=6
2013-09-26 17:33:00 +00:00
Sascha Peilicke
542a2e8f2f Accepting request 200484 from home:sumski:branches:devel:libraries:c_c++
Added 0001-Poll-files-on-nfs4.patch (bgo#693006) and gamin-0.1.11-double-lock.patch (bgo#669292)

OBS-URL: https://build.opensuse.org/request/show/200484
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=11
2013-09-26 08:57:06 +00:00
Stephan Kulow
34fe86757a Accepting request 173492 from devel:libraries:c_c++
- add conflict with libfam0-32bit

OBS-URL: https://build.opensuse.org/request/show/173492
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=4
2013-04-26 13:42:40 +00:00
Stephan Kulow
cfff84af1b - add conflict with libfam0-32bit
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gamin?expand=0&rev=9
2013-04-26 11:02:06 +00:00
Stephan Kulow
e02bc9f296 Accepting request 99491 from devel:libraries:c_c++
Made requested fixes
- Have the -devel package provide -devel-static as well since it has .a files
- Changed the baselibs.conf to use the libs per openSUSE policy

I tried removing the %py_requires macros, but that resulted in an rpmlint warning that the necessary requirements are not provided.  Further, according to the wiki on python packaging this macro is still needed.

OBS-URL: https://build.opensuse.org/request/show/99491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamin?expand=0&rev=1
2012-01-10 13:50:54 +00:00
14 changed files with 376 additions and 130 deletions

View 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
View File

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

View File

@@ -1,2 +1,3 @@
libgamin-1-0
libfam0-gamin
conflicts "libfam0-<targettype>"

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

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

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

View File

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