diff --git a/findutils-4.9.0.tar.xz b/findutils-4.9.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..aad6d8e16a93092b718760e1412962fa75d5cd3f Binary files /dev/null and b/findutils-4.9.0.tar.xz differ diff --git a/findutils.spec b/findutils.spec new file mode 100644 index 0000000000000000000000000000000000000000..f1abe8b8055c636421de1348191e931ea20ef724 --- /dev/null +++ b/findutils.spec @@ -0,0 +1,78 @@ +%define anolis_release 1 + +Summary: The GNU versions of find utilities (find and xargs) +Name: findutils +Version: 4.9.0 +Release: %{anolis_release}%{?dist} +Epoch: 1 +License: GPLv3+ +URL: https://www.gnu.org/software/findutils/ +Source0: https://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.xz + +Conflicts: filesystem < 3 +Provides: /bin/find +Provides: bundled(gnulib) + +BuildRequires: automake +BuildRequires: dejagnu +BuildRequires: gettext-devel +BuildRequires: gcc +BuildRequires: git +BuildRequires: libselinux-devel +BuildRequires: make +BuildRequires: texinfo + +%description +The findutils package contains programs which will help you locate +files on your system. The find utility searches through a hierarchy +of directories looking for files which match a certain set of criteria +(such as a file name pattern). The xargs utility builds and executes +command lines from standard input arguments (usually lists of file +names generated by the find command). + +You should install findutils because it includes tools that are very +useful for finding things on your system. + +%prep +%autosetup -N -S git + +autoreconf -fiv + +%build +mkdir build +cd build +%global _configure ../configure +%configure + +%make_build + +%check +make %{?_smp_mflags} check -C build V=1 + +%install +%make_install -C build + +rm -f %{buildroot}%{_infodir}/dir + +%find_lang %{name} + +%files -f %{name}.lang +%license COPYING +%doc AUTHORS NEWS README THANKS TODO +%{_bindir}/find +%{_bindir}/xargs +%{_mandir}/man1/find.1* +%{_mandir}/man1/xargs.1* +%{_infodir}/find.info* +%{_infodir}/find-maint.info.* +%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 +%exclude %{_mandir}/man1/{locate.1*,updatedb.1*} +%exclude %{_mandir}/man5/locatedb.5* + +%changelog +* Tue Mar 08 2022 Jacob Wang - 1:4.9.0-1 +- Initial version from upstream 4.9.0