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
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
Name: gamin
|
|
|
|
Version: 0.1.10
|
|
|
|
Release: 0
|
2011-10-02 11:43:54 +00:00
|
|
|
License: LGPL-2.1
|
2011-10-17 09:10:26 +00:00
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
|
Url: http://www.gnome.org/~veillard/gamin/
|
2011-02-13 20:14:10 +00:00
|
|
|
Group: System/Daemons
|
2012-01-04 13:50:48 +00:00
|
|
|
Source: http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz
|
2011-10-17 09:10:26 +00:00
|
|
|
Source2: %name-rpmlintrc
|
2011-02-13 20:14:10 +00:00
|
|
|
Patch0: gamin-return.patch
|
|
|
|
Patch1: gamin-fam_abi_compatibility_FamErrlist.patch
|
|
|
|
Patch2: gamin-fix_python_main.patch
|
2011-10-02 11:43:54 +00:00
|
|
|
Patch3: gamin-obsol-glib.diff
|
2011-10-17 09:10:26 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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-02 11:43:54 +00:00
|
|
|
%package -n libgamin-1-0
|
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Libraries
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%description -n libgamin-1-0
|
|
|
|
This C library provides an API and ABI compatible file alteration
|
|
|
|
monitor mechanism compatible with FAM, but not dependent on a system wide
|
|
|
|
daemon.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%package -n libfam0-gamin
|
|
|
|
Summary: Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Libraries
|
|
|
|
Conflicts: libfam0
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%description -n libfam0-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.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: Server for the Library providing the FAM File Alteration Monitor API
|
|
|
|
Group: System/Daemons
|
2012-01-04 18:48:10 +00:00
|
|
|
Provides: fam-server = %{version}-%{release}
|
|
|
|
Obsoletes: fam-server < %{version}-%{release}
|
2011-02-13 20:14:10 +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.
|
|
|
|
|
|
|
|
%package devel
|
2011-10-17 09:10:26 +00:00
|
|
|
Summary: Libraries and includes to build against %{name}
|
2011-02-13 20:14:10 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-10-02 11:43:54 +00:00
|
|
|
# Both have libfam.so
|
|
|
|
Conflicts: fam-devel
|
2011-10-17 09:10:26 +00:00
|
|
|
Requires: libgamin-1-0 = %{version}
|
|
|
|
Requires: libfam0-gamin = %{version}
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%description devel
|
2011-10-18 09:34:42 +00:00
|
|
|
Libraries, includes, etc. to use and build against gamin.
|
2011-10-17 09:10:26 +00:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation and help files for %{name}.
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%package -n python-gamin
|
|
|
|
Summary: Python bindings for the gamin library
|
|
|
|
Group: Development/Libraries/Python
|
2011-10-17 09:10:26 +00:00
|
|
|
Requires: libgamin-1-0 = %{version}
|
2012-01-04 18:48:10 +00:00
|
|
|
Provides: gamin-python = %{version}-%{release}
|
|
|
|
Obsoletes: gamin-python < %{version}-%{release}
|
2011-02-13 20:14:10 +00:00
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description -n python-gamin
|
|
|
|
The gamin-python package contains a module that allow monitoring of
|
|
|
|
files and directories from the Python language based on the support
|
|
|
|
of the gamin package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2011-10-17 09:10:26 +00:00
|
|
|
%patch3 -p1
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%build
|
2011-10-17 09:10:26 +00:00
|
|
|
%configure --disable-static
|
2011-10-02 11:43:54 +00:00
|
|
|
make %{?_smp_mflags}
|
2011-02-13 20:14:10 +00:00
|
|
|
|
|
|
|
%install
|
2011-10-17 09:10:26 +00:00
|
|
|
%make_install
|
|
|
|
rm "%{buildroot}%{_libdir}"/*.la
|
|
|
|
mkdir -p .rpmdoc/python
|
|
|
|
mv doc/python.html .rpmdoc/python/doc.html
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-17 09:10:26 +00:00
|
|
|
%post -n libgamin-1-0 -p /sbin/ldconfig
|
2011-10-02 11:43:54 +00:00
|
|
|
%postun -n libgamin-1-0 -p /sbin/ldconfig
|
2011-02-13 20:14:10 +00:00
|
|
|
|
2011-10-17 09:10:26 +00:00
|
|
|
%post -n libfam0-gamin -p /sbin/ldconfig
|
2011-10-02 11:43:54 +00:00
|
|
|
%postun -n libfam0-gamin -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libgamin-1-0
|
|
|
|
%defattr(-,root,root)
|
2011-02-13 20:14:10 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README Copyright TODO
|
|
|
|
%{_libdir}/libgamin-1.so.0
|
|
|
|
%{_libdir}/libgamin-1.so.0.*.*
|
|
|
|
|
2011-10-02 11:43:54 +00:00
|
|
|
%files -n libfam0-gamin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfam.so.0.*.*
|
|
|
|
%{_libdir}/libfam.so.0
|
|
|
|
|
2011-10-17 09:10:26 +00:00
|
|
|
%files doc
|
2011-02-13 20:14:10 +00:00
|
|
|
%defattr(-, root, root)
|
2011-10-02 11:43:54 +00:00
|
|
|
%doc doc/*.html
|
|
|
|
%doc doc/*.gif
|
|
|
|
%doc doc/*.txt
|
2011-10-17 09:10:26 +00:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-, root, root)
|
2011-02-13 20:14:10 +00:00
|
|
|
%{_libexecdir}/gam_server
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libfam.so
|
|
|
|
%{_libdir}/libgamin-1.so
|
|
|
|
%{_libdir}/libgamin_shared.a
|
|
|
|
%{_includedir}/fam.h
|
|
|
|
%{_libdir}/pkgconfig/gamin.pc
|
|
|
|
|
|
|
|
%files -n python-gamin
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc .rpmdoc/python/*
|
|
|
|
%{py_sitedir}/gamin.py*
|
|
|
|
%{py_sitedir}/_gamin*
|
|
|
|
|
|
|
|
%changelog
|