diffutils/diffutils.spec
Jiri Slaby 16a2920cf4 Accepting request 662776 from home:pluskalm:branches:Base:System
- Update to version 3.7:
  * bugfix - diff --strip-trailing-cr with a single CR byte in one
    input file would provoke an uninitialized memory read
  * diff --color now produces output compatible with less -R.
- Small packaging cleanups:
  * PIE is now default for whole distribution
  * xz is not needed as build dependency anymore

OBS-URL: https://build.opensuse.org/request/show/662776
OBS-URL: https://build.opensuse.org/package/show/Base:System/diffutils?expand=0&rev=53
2019-01-04 12:53:30 +00:00

79 lines
2.2 KiB
RPMSpec

#
# spec file for package diffutils
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: diffutils
Version: 3.7
Release: 0
Summary: GNU diff Utilities
License: GFDL-1.2-only AND GPL-3.0-or-later
Group: Productivity/Text/Utilities
URL: https://www.gnu.org/software/diffutils/
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Requires(pre): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Recommends: %{name}-lang = %{version}
Provides: diff = %{version}
Obsoletes: diff < %{version}
%description
The GNU diff utilities find differences between files. diff is used to
make source code patches, for instance.
%lang_package
%prep
%setup -q
%build
%configure \
--with-packager="openSUSE" \
--with-packager-bug-reports="http://bugs.opensuse.org/"
make %{?_smp_mflags} V=1
%check
make %{?_smp_mflags} check
%install
%make_install
%find_lang %{name}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files
%license COPYING
%doc AUTHORS NEWS README THANKS
%{_bindir}/cmp
%{_bindir}/diff
%{_bindir}/diff3
%{_bindir}/sdiff
%{_infodir}/diffutils.info%{?ext_info}
%{_mandir}/man1/cmp.1%{?ext_man}
%{_mandir}/man1/diff.1%{?ext_man}
%{_mandir}/man1/diff3.1%{?ext_man}
%{_mandir}/man1/sdiff.1%{?ext_man}
%files lang -f %{name}.lang
%changelog