inotify-tools/inotify-tools.spec
2023-04-11 19:31:28 +08:00

69 lines
2.1 KiB
RPMSpec

Name: inotify-tools
Version: 3.22.6.0
Release: 1
Summary: Command line utilities for inotify
License: GPLv2
URL: https://github.com/inotify-tools/inotify-tools
Source0: https://github.com/inotify-tools/inotify-tools/archive/%{version}/inotify-tools-%{version}.tar.gz
BuildRequires: gcc autoconf doxygen
BuildRequires: libtool
%description
inotify-tools is a set of command-line programs for Linux providing
a simple interface to inotify. These programs can be used to monitor
and act upon filesystem events.
%package devel
Summary: Headers and libraries for building apps that use libinotifytools
Requires: %{name} = %{version}-%{release}
%description devel
This package contains headers and libraries required to build applications
that use the libinotifytools library.
%prep
%autosetup -p1
%build
./autogen.sh
%configure \
--disable-dependency-tracking \
--disable-static \
--enable-doxygen
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
rm -rf %{buildroot}/%{_datadir}/doc/
%ldconfig_scriptlets
%files
%doc AUTHORS COPYING ChangeLog NEWS README.md
%{_bindir}/inotifywait
%{_bindir}/inotifywatch
%{_libdir}/libinotifytools.so.*
%{_mandir}/man1/inotifywait.1*
%{_mandir}/man1/inotifywatch.1*
%{_mandir}/man1/fsnotifywait.1.gz
%{_mandir}/man1/fsnotifywatch.1.gz
%files devel
%doc libinotifytools/src/doc/html/*
%dir %{_includedir}/inotifytools/
%{_includedir}/inotifytools/inotify.h
%{_includedir}/inotifytools/inotify-nosys.h
%{_includedir}/inotifytools/inotifytools.h
%{_includedir}/inotifytools/fanotify-dfid-name.h
%{_includedir}/inotifytools/fanotify.h
%{_libdir}/libinotifytools.so
%changelog
* Tue Apr 11 2023 yaoxin <yao_xin001@hoperun.com> - 3.22.6.0-1
- Update to 3.22.6.0
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 3.14-1
- package init