findutils/findutils.spec

186 lines
4.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:38:48 -04:00
Name: findutils
Epoch: 2
2022-10-18 12:51:26 +08:00
Version: 4.9.0
Release: 1
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
# resolve test failures when ran as root
# https://savannah.gnu.org/bugs/?57762
Patch1: 0001-findutils-xautofs.patch
# rhbz #1252549 #1299169
Patch2: 0001-findutils-leaf-opt.patch
Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu automake
2019-12-25 15:45:35 +08:00
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
%ifarch aarch64
CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
%endif
2019-09-30 10:38:48 -04:00
%configure
%make_build
%check
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
2022-10-18 12:51:26 +08:00
* Tue Oct 18 2022 dillon chen <dillon.chen@gmail.com> - 4.9.0-1
- update to 4.9.0
* Thu Jun 16 2022 tanyulong <tanyulong@kylinos.cn> - 2:4.8.0-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Delete unnecessary gdb from BuildRequires
* Sat Feb 26 2022 shixuantong <shixuantong@h-partners.com> - 2:4.8.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix test_localeconv fail in aarch64 machine
2021-12-21 21:00:41 +08:00
* Tue Dec 21 2021 shixuantong <shixuantong@huawei.com> - 2:4.8.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add -fsigned-char to %check
2021-08-30 14:43:36 +08:00
* Mon Aug 30 2021 shixuantong <shixuantong@huawei.com> - 2:4.8.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 4.8.0
* Fri Mar 19 2021 shixuantong <shixuantong@huawei.com> - 2:4.7.0-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix test_localeconv fail in aarch64 machine
* Thu Apr 23 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:revert remove S_MAGIC_XFS and remove NOSTAT_LEAF_OPTIMIZATION to fix coredump
2020-04-10 16:51:09 +08:00
* Fri Apr 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove S_MAGIC_XFS fix coredump
* Tue Feb 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Fix test failures ran as root and enable -xautofs and disable leaf opt
2020-01-22 19:41:06 +08:00
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:resolve self-build problem
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