Package diffutils: Specfile

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
* Wed Sep 20 2023 Gleb F-Malinovskiy <glebfm@altlinux.org> 3.10.0.207.774b-alt1
- diffutils: v3.10-170-g23d506ac59 -> v3.10-207-g774b942f70.

* Mon Sep 18 2023 Gleb F-Malinovskiy <glebfm@altlinux.org> 3.10.0.170.23d5-alt1
- diffutils: v3.8-39-gdd9deb7 -> v3.10-170-g23d506ac59.
- gnulib BR: v0.1-5124-gcbe61cd260 -> v0.1-6717-gb93de66735.
- Updated translations from translationproject.org.

* Mon Apr 11 2022 Dmitry V. Levin <ldv@altlinux.org> 3.8.0.39.dd9d-alt1
- diffutils: v3.7-40-gcaf365b -> v3.8-39-gdd9deb7.
- gnulib BR: v0.1-4669-gfed6ffdbb -> v0.1-5124-gcbe61cd260.
- Updated translations from translationproject.org.

* Wed Jun 02 2021 Dmitry V. Levin <ldv@altlinux.org> 3.7.0.40.caf3-alt1
- diffutils: v3.7-38-gcc14770 -> v3.7-40-gcaf365b.
- gnulib BR: v0.1-4513-g79a63f591 -> v0.1-4669-gfed6ffdbb.
- Updated translations from translationproject.org.

* Mon Apr 12 2021 Dmitry V. Levin <ldv@altlinux.org> 3.7.0.38.cc14-alt1
- diffutils: v3.7 -> v3.7-38-gcc14770.
- gnulib BR: v0.1-2305-g95c96b6dd -> v0.1-4513-g79a63f591.
- Updated translations from translationproject.org.

* Wed Jan 02 2019 Dmitry V. Levin <ldv@altlinux.org> 3.7-alt1
- diffutils: v3.6-17-gd5bab3a -> v3.7.
- gnulib: v0.1-2305-g95c96b6dd -> v0.1-2313-g4652c7baf.
- Updated translations from translationproject.org.

* Wed Dec 26 2018 Dmitry V. Levin <ldv@altlinux.org> 3.6.0.17.d5ba-alt1
- diffutils: v3.5-17-g198c55a -> v3.6-17-gd5bab3a
- gnulib: v0.1-1209-g24b3216 -> v0.1-2305-g95c96b6dd.
- Updated translations from translationproject.org.

* Tue Mar 21 2017 Dmitry V. Levin <ldv@altlinux.org> 3.5.0.17.198c-alt1
- diffutils: v3.3-40-ga3ea9cd -> v3.5-17-g198c55a.
- gnulib: v0.1-585-g2fda85e -> v0.1-1209-g24b3216.

* Thu Dec 10 2015 Dmitry V. Levin <ldv@altlinux.org> 3.3.0.40.a3ea-alt1
- Updated to v3.3-40-ga3ea9cd.

* Thu Sep 24 2015 Dmitry V. Levin <ldv@altlinux.org> 3.3.0.33.b4ef-alt1
- Updated to v3.3-33-gb4efca9.
- Updated translations from translationproject.org.
- Built with gnulib v0.1-585-g2fda85e.

* Mon Oct 28 2013 Dmitry V. Levin <ldv@altlinux.org> 3.3-alt2
- Updated to v3.3-12-g1875453.
- Updated translations from translationproject.org.
- Built with gnulib v0.0-8061-g5191b35.

* Sun Apr 07 2013 Dmitry V. Levin <ldv@altlinux.org> 3.3-alt1
- Updated to v3.3-6-g4825b8d.
- Updated translations from translationproject.org.
- Built with gnulib v0.0-7901-g076ac82.

* Tue Oct 30 2012 Dmitry V. Levin <ldv@altlinux.org> 3.2-alt3
- Updated to v3.2-36-g01d92db.
- Built with gnulib v0.0-7677-g4027785.

* Sun Aug 05 2012 Dmitry V. Levin <ldv@altlinux.org> 3.2-alt2
- Updated to v3.2-28-g1f281b3.
- Updated translations from translationproject.org.
- Built with gnulib v0.0-7557-gee60576.

* Sun Sep 04 2011 Dmitry V. Levin <ldv@altlinux.org> 3.2-alt1
- Updated to v3.2.

* Tue Aug 16 2011 Dmitry V. Levin <ldv@altlinux.org> 3.1-alt1
- Updated to v3.1-7-g320355d.

* Tue May 18 2010 Dmitry V. Levin <ldv@altlinux.org> 3.0-alt1
- Updated to 3.0.

* Fri Feb 12 2010 Dmitry V. Levin <ldv@altlinux.org> 2.9-alt1
- Updated to 2.9.
- Dropped "diff -k" patch.

* Tue Jun 09 2009 Dmitry V. Levin <ldv@altlinux.org> 2.8.7-alt4
- Removed obsolete %%install_info/%%uninstall_info calls.

* Sat Apr 14 2007 Dmitry V. Levin <ldv@altlinux.org> 2.8.7-alt3
- Uncompressed tarball, reduced macro abuse in specfile,
  updated package description.

* Thu Jun 23 2005 Dmitry V. Levin <ldv@altlinux.org> 2.8.7-alt2
- Updated Russian translation.

* Tue May 17 2005 Dmitry V. Levin <ldv@altlinux.org> 2.8.7-alt1
- Updated to 2.8.7.
- Updated patches.

* Wed Feb 09 2005 Dmitry V. Levin <ldv@altlinux.org> 2.8.4-alt4
- Updated package dependencies.

* Tue Feb 08 2005 Kachalov Anton <mouse@altlinux.ru> 2.8.4-alt3.1
- fix bad C expression

* Wed Jul 14 2004 Stanislav Ievlev <inger@altlinux.org> 2.8.4-alt3
- fix buildreqs

* Wed Jul 07 2004 Stanislav Ievlev <inger@altlinux.org> 2.8.4-alt2
- fixed typo in russian translation

* Mon May 19 2003 Stanislav Ievlev <inger@altlinux.ru> 2.8.4-alt1
- 2.8.4

* Tue Sep 17 2002 Stanislav Ievlev <inger@altlinux.ru> 2.8.1-alt3
- fix typo in the URL.
- rebuild with gcc3.

* Wed Aug 07 2002 Stanislav Ievlev <inger@altlinux.ru> 2.8.1-alt2
- package now has it's own manpages, it's better then manual from 
  RH/MDK and man-pages

* Mon Jun 03 2002 Dmitry V. Levin <ldv@altlinux.org> 2.8.1-alt1
- 2.8.1 (a lot of changes since 2.7), updated patches.
- Don't print nanoseconds in timestamps
  (reverted to previous behaviour).

* Wed Mar 13 2002 Stanislav Ievlev <inger@altlinux.ru> 2.7-ipl23mdk
- Rebuilt.

* Sun Jan 14 2001 Dmitry V. Levin <ldv@fandra.org> 2.7-ipl22mdk
- Create tmpfiles in more secure way.

* Tue Nov 21 2000 Dmitry V. Levin <ldv@fandra.org> 2.7-ipl21mdk
- Added -k option to get a default suffix
  (from Peter Samuelson <peter@cadcamlab.org>).
- Fixed texinfo documentation.

* Thu Jul 27 2000 Dmitry V. Levin <ldv@fandra.org> 2.7-ipl20mdk
- Moved manpages to it's package.
- RE adaptions.

* Wed Jul 26 2000 David BAUDENS <baudens@mandrakesoft.com> 2.7-20mdk
- Human readable description

* Wed Jul 26 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.7-19mdk
- BM
- major spec simplification

* Tue Apr 4 2000 Denis Havlik <denis@mandrakesoft.com> 2.7-18mdk
- new group: Development/Other
- spechelper conform

* Wed Oct 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Add defattr.

* Wed Jun 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- listing man-pages in %files.

* Fri Apr  9 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- add de locale

* Sun Mar 14 1999 Jeff Johnson <jbj@redhat.com>
- add man pages (#831).
- add %configure and Prefix.

* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
- build for glibc 2.1

* Tue Jul 14 1998 Bill Kawakami <billk@home.com>
- included the four man pages stolen from Slackware

* Tue May 05 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
- fixed spec file to reference/use the $RPM_BUILD_ROOT always

* Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com>
- fixed where it looks for 'pr' (/usr/bin, rather than /bin)

* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
- added BuildRoot

* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
- uses install-info

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc