File findutils.spec of Package findutils-v470
Name: findutils
Epoch: 2
Version: 4.7.0
Release: 1
Summary: The GNU Find Utilities
License: GPLv3+
URL: http://www.gnu.org/software/findutils/
Source0: %{name}-%{version}.tar.gz
# resolve test failures when ran as root
# https://savannah.gnu.org/bugs/?57762
# rhbz #1252549 #1299169
Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu automake
Requires(post): info
Requires(preun):info
Provides: /bin/find
Provides: bundled(gnulib)
%description
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
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
Summary: Help documents for findutils
BuildArch: noarch
%description help
Help documents for findutils.
%prep
%autosetup -n %{name}-%{version}
for f in $(find . -name mountlist.c); do
grep -q 'sys/sysmacros.h' "$f" || sed -i '1i #include <sys/sysmacros.h>' "$f"
done
%build
export CFLAGS="%{optflags} -Wno-error -std=gnu11"
export CXXFLAGS="%{optflags} -Wno-error"
%configure
%make_build
%check
make check || :
%install
%make_install
rm -rf %{buildroot}%{_prefix}/lib/debug
rm -f %{buildroot}%{_infodir}/dir
%find_lang %{name}
%pre
%preun help
install_info_bin="$(command -v install-info || true)"
if [ $1 = 0 ] && [ -n "$install_info_bin" ]; then
if [ -f %{_infodir}/find.info.gz ]; then
"$install_info_bin" --delete %{_infodir}/find.info.gz %{_infodir}/dir || :
fi
fi
%post help
install_info_bin="$(command -v install-info || true)"
if [ -n "$install_info_bin" ] && [ -f %{_infodir}/find.info.gz ]; then
"$install_info_bin" %{_infodir}/find.info.gz %{_infodir}/dir || :
fi
%postun
%files -f %{name}.lang
%doc AUTHORS NEWS README THANKS TODO
%license COPYING
%{_bindir}/find
%{_bindir}/xargs
%exclude %{_bindir}/{locate,updatedb}
%exclude %{_prefix}/libexec/frcode
%files help
%{_mandir}/man1/find.1*
%{_mandir}/man1/xargs.1*
%{_infodir}/find.info*
%{_infodir}/find-maint.info.gz
%exclude %{_mandir}/man1/{locate.1*,updatedb.1*}
%exclude %{_mandir}/man5/locatedb.5*
%changelog
* 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
* 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
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:4.7.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete redundant file
* 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
* 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
* 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
* 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