# (tpg) optimize it a bit %ifnarch riscv64 %global optflags %{optflags} -Oz --rtlib=compiler-rt %endif Summary: A GNU collection of diff utilities Name: diffutils Version: 3.10 Release: 1 License: GPLv2+ Group: Development/Other Url: http://www.gnu.org/software/diffutils/ Source0: ftp://ftp.gnu.org/pub/gnu/diffutils/%{name}-%{version}.tar.xz Source2: diffutils-help2man #Patch0: https://src.fedoraproject.org/rpms/diffutils/raw/rawhide/f/diffutils-cmp-s-empty.patch Patch1: diffutils-mkdir_p.patch #Patch2: https://src.fedoraproject.org/rpms/diffutils/raw/rawhide/f/diffutils-i18n.patch Patch3: diffutils-3.3-change-default-editor-from-ed-to-vi.patch Patch4: diffutils-3.8-fix-clang.patch BuildRequires: gettext-devel BuildRequires: texinfo %description Diffutils includes four utilities: diff, cmp, diff3 and sdiff. * Diff compares two files and shows the differences, line by line. * The cmp command shows the offset and line numbers where two files differ, or cmp can show the characters that differ between the two files. * The diff3 command shows the differences between three files. Diff3 can be used when two people have made independent changes to a common original; diff3 can produce a merged file that contains both persons' changes and warnings about conflicts. * The sdiff command can be used to list diff of two files side by side or merge two files interactively. Install diffutils if you need to compare text files. %prep %autosetup -p1 install -m755 %{SOURCE2} help2man autoreconf -ivf %build export ac_cv_libsigsegv=no # for finding help2man export PATH=$PATH:$(pwd) %configure \ --without-included-regex \ --with-packager="%{distribution}" \ --with-packager-bug-reports="%{bugurl}" %make_build %install %make_install %find_lang %{name} %files -f %{name}.lang %doc NEWS README %{_bindir}/* %doc %{_mandir}/man*/* %doc %{_infodir}/%{name}.info*