2011-10-17 09:10:26 +00:00
|
|
|
#
|
2012-01-04 13:50:48 +00:00
|
|
|
# spec file for package gamin
|
2011-10-17 09:10:26 +00:00
|
|
|
#
|
2024-02-27 11:18:25 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-10-17 09:10:26 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-13 08:28:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-17 09:10:26 +00:00
|
|
|
#
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2013-04-26 11:02:06 +00:00
|
|
|
|
2012-01-09 13:04:28 +00:00
|
|
|
%define sonum 0
|
|
|
|
%define vernum 1
|
|
|
|
%define packnum %{vernum}-%{sonum}
|
|
|
|
%define famnum 0
|
2018-07-31 06:56:07 +00:00
|
|
|
Name: gamin
|
|
|
|
Version: 0.1.10
|
|
|
|
Release: 0
|
2011-10-17 09:10:26 +00:00
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
2018-07-31 06:56:07 +00:00
|
|
|
License: LGPL-2.1-only
|
2011-02-13 20:14:10 +00:00
|
|
|
Group: System/Daemons
|
2018-07-31 06:56:07 +00:00
|
|
|
URL: http://www.gnome.org/~veillard/%{name}/
|
2021-09-28 17:16:51 +00:00
|
|
|
Source0: https://download.gnome.org/sources/gamin/0.1/gamin-%{version}.tar.bz2
|
2011-10-17 09:10:26 +00:00
|
|
|
Source2: %name-rpmlintrc
|
2018-08-06 09:45:15 +00:00
|
|
|
Source99: baselibs.conf
|
2011-02-13 20:14:10 +00:00
|
|
|
Patch0: gamin-return.patch
|
|
|
|
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
|
2011-10-02 11:43:54 +00:00
|
|
|
Patch3: gamin-obsol-glib.diff
|
2013-09-26 08:57:06 +00:00
|
|
|
# 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
|
2024-06-02 10:08:00 +00:00
|
|
|
Patch6: gamin-missing-includes.patch
|
2012-01-09 13:04:28 +00:00
|
|
|
BuildRequires: fdupes
|
2011-10-17 09:10:26 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This C library provides an API and ABI compatible file alteration
|
2011-10-02 11:43:54 +00:00
|
|
|
monitor mechanism compatible with FAM, but not dependent on a system wide
|
2011-02-13 20:14:10 +00:00
|
|
|
daemon.
|
|
|
|
|
2011-10-17 09:10:26 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
2024-02-27 11:18:25 +00:00
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
2011-10-17 09:10:26 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation and help files for %{name}.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2012-01-09 13:04:28 +00:00
|
|
|
%package server
|
|
|
|
Summary: Server for the Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Daemons
|
|
|
|
Provides: fam-server = %{version}-%{release}
|
|
|
|
Obsoletes: fam-server < %{version}-%{release}
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2012-01-09 13:04:28 +00:00
|
|
|
%description server
|
|
|
|
This package contains the daemon for %{name}.
|
|
|
|
It is split off into its own subpackage to void file conflicts when both
|
|
|
|
%{name} and %{name}-32bit are installed on a multiarch platform.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%prep
|
2024-02-27 11:18:25 +00:00
|
|
|
%autosetup -p1
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%build
|
2014-01-11 10:21:02 +00:00
|
|
|
%configure --disable-static --enable-tests
|
2024-02-27 11:18:25 +00:00
|
|
|
%make_build
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%install
|
2011-10-17 09:10:26 +00:00
|
|
|
%make_install
|
|
|
|
rm "%{buildroot}%{_libdir}"/*.la
|
2012-01-09 13:04:28 +00:00
|
|
|
%fdupes %{buildroot}
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2014-01-11 10:21:02 +00:00
|
|
|
# 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*
|
2012-01-09 13:04:28 +00:00
|
|
|
|
2014-01-11 10:21:02 +00:00
|
|
|
%check
|
|
|
|
# tests are currently broken :/
|
|
|
|
make tests || echo "**** WARNING TESTSUITE FAILS ****"
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-17 09:10:26 +00:00
|
|
|
%files server
|
2011-02-13 20:14:10 +00:00
|
|
|
%{_libexecdir}/gam_server
|
|
|
|
|
|
|
|
%changelog
|