inotify-tools/inotify-tools.spec

69 lines
2.1 KiB
RPMSpec
Raw Normal View History

2021-09-12 17:16:31 +08:00
Name: inotify-tools
2023-04-11 19:31:28 +08:00
Version: 3.22.6.0
2021-09-12 17:16:31 +08:00
Release: 1
Summary: Command line utilities for inotify
License: GPLv2
2023-04-11 19:31:28 +08:00
URL: https://github.com/inotify-tools/inotify-tools
Source0: https://github.com/inotify-tools/inotify-tools/archive/%{version}/inotify-tools-%{version}.tar.gz
2021-09-12 17:16:31 +08:00
BuildRequires: gcc autoconf doxygen
2023-04-11 19:31:28 +08:00
BuildRequires: libtool
2021-09-12 17:16:31 +08:00
%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
2023-04-11 19:31:28 +08:00
%autosetup -p1
2021-09-12 17:16:31 +08:00
%build
2023-04-11 19:31:28 +08:00
./autogen.sh
2021-09-12 17:16:31 +08:00
%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
2023-04-11 19:31:28 +08:00
%doc AUTHORS COPYING ChangeLog NEWS README.md
2021-09-12 17:16:31 +08:00
%{_bindir}/inotifywait
%{_bindir}/inotifywatch
%{_libdir}/libinotifytools.so.*
%{_mandir}/man1/inotifywait.1*
%{_mandir}/man1/inotifywatch.1*
2023-04-11 19:31:28 +08:00
%{_mandir}/man1/fsnotifywait.1.gz
%{_mandir}/man1/fsnotifywatch.1.gz
2021-09-12 17:16:31 +08:00
%files devel
%doc libinotifytools/src/doc/html/*
%dir %{_includedir}/inotifytools/
%{_includedir}/inotifytools/inotify.h
%{_includedir}/inotifytools/inotify-nosys.h
%{_includedir}/inotifytools/inotifytools.h
2023-04-11 19:31:28 +08:00
%{_includedir}/inotifytools/fanotify-dfid-name.h
%{_includedir}/inotifytools/fanotify.h
2021-09-12 17:16:31 +08:00
%{_libdir}/libinotifytools.so
%changelog
2023-04-11 19:31:28 +08:00
* Tue Apr 11 2023 yaoxin <yao_xin001@hoperun.com> - 3.22.6.0-1
- Update to 3.22.6.0
2021-09-12 17:16:31 +08:00
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 3.14-1
- package init