findutils/findutils.spec

121 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:38:48 -04:00
Name: findutils
Epoch: 2
2019-12-31 18:41:19 +08:00
Version: 4.7.0
2020-01-07 22:02:47 +08:00
Release: 2
2019-09-30 10:38:48 -04:00
Summary: The GNU Find Utilities
License: GPLv3+
URL: http://www.gnu.org/software/findutils/
2019-12-31 18:41:19 +08:00
Source0: https://ftp.gnu.org/pub/gnu/findutils/%{name}-%{version}.tar.xz
2019-12-25 15:45:35 +08:00
Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu
Requires(post): info
Requires(preun):info
2019-09-30 10:38:48 -04:00
Provides: /bin/find
Provides: bundled(gnulib)
%description
2019-12-31 18:41:19 +08:00
The GNU Find Utilities are the basic directory searching utilities of
the GNU operating system. These programs are typically used in
conjunction with other programs to provide modular and powerful
2019-09-30 10:38:48 -04:00
directory search and file locating capabilities to other commands.
The tools supplied with this package are:
find - search for files in a directory hierarchy
locate - list files in databases that match a pattern
updatedb - update a file name database
xargs - build and execute command lines from standard input
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
autoreconf -fiv
%build
%configure
%make_build
%check
2019-12-31 18:41:19 +08:00
make check
2019-09-30 10:38:48 -04:00
%install
%make_install
rm -f %{buildroot}%{_infodir}/dir
%find_lang %{name}
%pre
%preun help
if [ $1 = 0 ]; then
if [ -f %{_infodir}/find.info.gz ]; then
/sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir || :
fi
fi
%post help
if [ -f %{_infodir}/find.info.gz ]; then
/sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir || :
fi
%postun
%files -f %{name}.lang
%doc AUTHORS NEWS README THANKS TODO
%license COPYING
%{_bindir}/find
%{_bindir}/xargs
2019-12-31 18:41:19 +08:00
%exclude %{_bindir}/{locate,updatedb}
%exclude %{_prefix}/libexec/frcode
%exclude %{_libdir}/find
%exclude %{_prefix}/lib/debug/usr/bin/locate*.debug
%exclude %{_prefix}/lib/debug/usr/libexec/frcode*.debug
2019-09-30 10:38:48 -04:00
%files help
%{_mandir}/man1/find.1*
%{_mandir}/man1/xargs.1*
%{_infodir}/find.info*
%{_infodir}/find-maint.info.gz
2019-12-31 18:41:19 +08:00
%exclude %{_mandir}/man1/{locate.1*,updatedb.1*}
%exclude %{_mandir}/man5/locatedb.5*
2019-09-30 10:38:48 -04:00
%changelog
2020-01-07 22:02:47 +08:00
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete redundant file
2019-12-31 18:41:19 +08:00
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 4.7.0
2019-12-25 15:45:35 +08:00
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:4.6.0-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build requires and requires
2019-11-06 19:06:51 +08:00
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 2:4.6.0-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build requires of texinfo and gettext-devel to slove the build problem
2019-09-30 10:38:48 -04:00
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:4.6.0-3
- Adjust requires
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:4.6.0-2
- Delete redundant information
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:4.6.0-1
- Package init