2006-12-19 00:15:43 +01:00
|
|
|
#
|
2011-08-15 12:30:24 +02:00
|
|
|
# spec file for package diffutils
|
2006-12-19 00:15:43 +01:00
|
|
|
#
|
2021-07-20 10:43:37 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2006-12-19 00:15:43 +01:00
|
|
|
#
|
2008-10-23 04:29:27 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-01-04 13:53:30 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:43 +01:00
|
|
|
#
|
|
|
|
|
2012-07-17 21:21:13 +02:00
|
|
|
|
2006-12-19 00:15:43 +01:00
|
|
|
Name: diffutils
|
2019-01-04 13:53:30 +01:00
|
|
|
Version: 3.7
|
2012-02-28 09:47:36 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:43 +01:00
|
|
|
Summary: GNU diff Utilities
|
2019-01-04 13:53:30 +01:00
|
|
|
License: GFDL-1.2-only AND GPL-3.0-or-later
|
2012-02-28 09:47:36 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2019-01-04 13:53:30 +01:00
|
|
|
URL: https://www.gnu.org/software/diffutils/
|
2017-05-22 15:26:53 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
2016-02-07 22:50:02 +01:00
|
|
|
Source2: %{name}.keyring
|
2020-09-01 08:12:53 +02:00
|
|
|
Patch0: gnulib-test-avoid-FP-perror-strerror.patch
|
2021-07-20 10:43:37 +02:00
|
|
|
Patch1: gnulib-c-stack.patch
|
2016-02-07 22:50:02 +01:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2021-07-20 10:43:37 +02:00
|
|
|
Requires(preun):%{install_info_prereq}
|
2016-02-07 22:50:02 +01:00
|
|
|
Provides: diff = %{version}
|
|
|
|
Obsoletes: diff < %{version}
|
2006-12-19 00:15:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The GNU diff utilities find differences between files. diff is used to
|
|
|
|
make source code patches, for instance.
|
|
|
|
|
2016-08-09 19:11:28 +02:00
|
|
|
%lang_package
|
|
|
|
|
2006-12-19 00:15:43 +01:00
|
|
|
%prep
|
2020-09-01 08:12:53 +02:00
|
|
|
%autosetup -p1
|
2006-12-19 00:15:43 +01:00
|
|
|
|
|
|
|
%build
|
2017-05-22 15:26:53 +02:00
|
|
|
%configure \
|
|
|
|
--with-packager="openSUSE" \
|
|
|
|
--with-packager-bug-reports="http://bugs.opensuse.org/"
|
2016-02-07 22:50:02 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2006-12-19 00:15:43 +01:00
|
|
|
|
2013-12-06 13:28:40 +01:00
|
|
|
%check
|
2019-07-08 08:12:47 +02:00
|
|
|
%ifarch ppc64le ppc64
|
|
|
|
make %{?_smp_mflags} check || echo 'Warning: ignore error https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36488'
|
|
|
|
%else
|
2016-02-07 22:50:02 +01:00
|
|
|
make %{?_smp_mflags} check
|
2019-07-08 08:12:47 +02:00
|
|
|
%endif
|
2013-12-06 13:28:40 +01:00
|
|
|
|
2006-12-19 00:15:43 +01:00
|
|
|
%install
|
2016-08-09 19:11:28 +02:00
|
|
|
%make_install
|
|
|
|
%find_lang %{name}
|
2006-12-19 00:15:43 +01:00
|
|
|
|
|
|
|
%post
|
2016-08-09 19:11:28 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2006-12-19 00:15:43 +01:00
|
|
|
|
2016-02-07 22:50:02 +01:00
|
|
|
%preun
|
2016-08-09 19:11:28 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2006-12-19 00:15:43 +01:00
|
|
|
|
2013-04-05 11:03:58 +02:00
|
|
|
%files
|
2018-02-26 10:48:02 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README THANKS
|
2011-08-13 03:43:18 +02:00
|
|
|
%{_bindir}/cmp
|
|
|
|
%{_bindir}/diff
|
|
|
|
%{_bindir}/diff3
|
|
|
|
%{_bindir}/sdiff
|
2019-01-04 13:53:30 +01:00
|
|
|
%{_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}
|
2006-12-19 00:15:43 +01:00
|
|
|
|
2016-08-09 19:11:28 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2008-01-12 02:43:49 +01:00
|
|
|
%changelog
|