Group :: File tools
RPM: diffutils
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: diffutils
Version: 3.10.0.207.774b
Release: alt1
%define srcname %name-%version-%release
Summary: A GNU collection of diff utilities
License: GPLv3+
Group: File tools
Url: https://www.gnu.org/software/diffutils/
# https://git.savannah.gnu.org/git/diffutils.git refs/heads/master
# https://git.altlinux.org/people/glebfm/packages/diffutils.git refs/heads/diffutils-current
Source0: %srcname.tar
# translationproject.org::tp/latest/diffutils/
# https://git.altlinux.org/people/glebfm/packages/diffutils.git refs/heads/po-current
Source1: po-%version-%release.tar
Conflicts: man-pages <= 1.52-alt1
BuildRequires: gnulib >= 0.1.6717.b93de
BuildRequires: gperf help2man makeinfo
%description
Diffutils includes four utilities: diff, cmp, diff3 and sdiff:
+ The diff command compares two files and shows the differences,
line by line.
+ The cmp command compares two files, and if they differ, tells the
first byte and line number where they differ or reports that one file
is a prefix of the other.
+ The diff3 command compares three files and outputs descriptions of
their differences.
+ The sdiff command merges two files and interactively outputs the
results.
%prep
%setup -n %srcname -a1
# Build scripts expect to find the diffutils version in this file.
echo -n %version > .tarball-version
# git, texi2pdf, and wget aren't needed for build.
sed -E '/^(git|texi2pdf|wget)[[:space:]]/d' -i bootstrap.conf
# Generate LINGUAS file.
ls po/*.po | sed 's|.*/||; s|\.po$||' > po/LINGUAS
%build
./bootstrap --skip-po --gnulib-srcdir=%_datadir/gnulib
# Predefine location of the pr utility.
export PR_PROGRAM=%_bindir/pr
%configure --disable-silent-rules
%make_build
%install
%makeinstall_std
%find_lang %name
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
%check
%make_build -k check
%files -f %name.lang
%_bindir/*
%_infodir/*.info*
%_mandir/man?/*
%doc AUTHORS NEWS README THANKS
%changelog
…
Full changelog you can see here
Version: 3.10.0.207.774b
Release: alt1
%define srcname %name-%version-%release
Summary: A GNU collection of diff utilities
License: GPLv3+
Group: File tools
Url: https://www.gnu.org/software/diffutils/
# https://git.savannah.gnu.org/git/diffutils.git refs/heads/master
# https://git.altlinux.org/people/glebfm/packages/diffutils.git refs/heads/diffutils-current
Source0: %srcname.tar
# translationproject.org::tp/latest/diffutils/
# https://git.altlinux.org/people/glebfm/packages/diffutils.git refs/heads/po-current
Source1: po-%version-%release.tar
Conflicts: man-pages <= 1.52-alt1
BuildRequires: gnulib >= 0.1.6717.b93de
BuildRequires: gperf help2man makeinfo
%description
Diffutils includes four utilities: diff, cmp, diff3 and sdiff:
+ The diff command compares two files and shows the differences,
line by line.
+ The cmp command compares two files, and if they differ, tells the
first byte and line number where they differ or reports that one file
is a prefix of the other.
+ The diff3 command compares three files and outputs descriptions of
their differences.
+ The sdiff command merges two files and interactively outputs the
results.
%prep
%setup -n %srcname -a1
# Build scripts expect to find the diffutils version in this file.
echo -n %version > .tarball-version
# git, texi2pdf, and wget aren't needed for build.
sed -E '/^(git|texi2pdf|wget)[[:space:]]/d' -i bootstrap.conf
# Generate LINGUAS file.
ls po/*.po | sed 's|.*/||; s|\.po$||' > po/LINGUAS
%build
./bootstrap --skip-po --gnulib-srcdir=%_datadir/gnulib
# Predefine location of the pr utility.
export PR_PROGRAM=%_bindir/pr
%configure --disable-silent-rules
%make_build
%install
%makeinstall_std
%find_lang %name
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
%check
%make_build -k check
%files -f %name.lang
%_bindir/*
%_infodir/*.info*
%_mandir/man?/*
%doc AUTHORS NEWS README THANKS
%changelog
…
Full changelog you can see here