File inotify-tools.spec of Package inotify-tools
#
# spec file for package inotify-tools
#
# Copyright (c) 2015 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/
#
Name: inotify-tools
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: glibc-devel
Url: https://github.com/rvoicilas/inotify-tools/wiki/
Version: 3.14
Release: 0
Summary: Tools for inotify
License: GPL-2.0
Group: System/Monitoring
Source: http://github.com/downloads/rvoicilas/inotify-tools/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: inotify-return.patch
%description
inotify is a kernel facility to watch file system changes. This
package provides some tools for it.
%package devel
Summary: Development files for inotify-tools
Group: Development/Tools/Other
Requires: %{name} = %{version}
%description devel
This package contains the development files for inotify-tools, which provides
utilities for the kernel facility inotify.
%package doc
Summary: Documentation for inotify-tools
Group: Documentation/Other
Requires: %{name} = %{version}
%description doc
This package contains the documentation for inotify-tools, which provides
utilities for the kernel facility inotify.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static \
--docdir=%{_docdir}/inotify-tools \
--enable-doxygen
make %{_smp_mflags}
%install
make install DESTDIR=%buildroot
%fdupes %buildroot/%{_docdir}/inotify-tools/
rm %buildroot/%{_libdir}/libinotifytools.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%check
make check
%files
%defattr(-,root,root)
%{_bindir}/inotifywait
%{_bindir}/inotifywatch
%{_mandir}/man1/inotifywait.1.gz
%{_mandir}/man1/inotifywatch.1.gz
%{_libdir}/libinotifytools.so.0
%{_libdir}/libinotifytools.so.0.4.1
%files devel
%defattr(-,root,root)
%{_libdir}/libinotifytools.so
%{_includedir}/inotifytools/
%files doc
%defattr(-,root,root)
%{_docdir}/inotify-tools/
%changelog