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
|
|
|
#
|
2016-02-07 22:50:02 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 00:15:43 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-07-17 21:21:13 +02:00
|
|
|
|
2006-12-19 00:15:43 +01:00
|
|
|
Name: diffutils
|
2016-08-31 08:43:05 +02:00
|
|
|
Version: 3.5
|
2012-02-28 09:47:36 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:43 +01:00
|
|
|
Summary: GNU diff Utilities
|
2013-02-03 14:42:41 +01:00
|
|
|
License: GFDL-1.2 and GPL-3.0+
|
2012-02-28 09:47:36 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2016-02-07 22:50:02 +01:00
|
|
|
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
|
2013-06-19 17:44:35 +02:00
|
|
|
# http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=diffutils
|
2016-02-07 22:50:02 +01:00
|
|
|
Source2: %{name}.keyring
|
2016-10-28 11:01:36 +02:00
|
|
|
Patch1: gnulib-diffseq.patch
|
|
|
|
Patch2: big-file-performance.patch
|
2011-08-13 03:43:18 +02:00
|
|
|
BuildRequires: xz
|
2016-02-07 22:50:02 +01:00
|
|
|
Requires(pre): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2016-08-09 19:11:28 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2016-02-07 22:50:02 +01:00
|
|
|
Provides: diff = %{version}
|
|
|
|
Obsoletes: diff < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2011-08-13 03:43:18 +02:00
|
|
|
%setup -q
|
2016-10-28 11:01:36 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2006-12-19 00:15:43 +01:00
|
|
|
|
|
|
|
%build
|
2016-02-07 22:50:02 +01:00
|
|
|
export CFLAGS="%{optflags} -fPIE"
|
2015-01-05 10:10:56 +01:00
|
|
|
export LDFLAGS="-pie"
|
2011-08-13 03:43:18 +02:00
|
|
|
%configure
|
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
|
2016-02-07 22:50:02 +01:00
|
|
|
make %{?_smp_mflags} check
|
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
|
2006-12-19 00:15:43 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README THANKS
|
2011-08-13 03:43:18 +02:00
|
|
|
%{_bindir}/cmp
|
|
|
|
%{_bindir}/diff
|
|
|
|
%{_bindir}/diff3
|
|
|
|
%{_bindir}/sdiff
|
2016-08-09 19:11:28 +02:00
|
|
|
%{_infodir}/diffutils.info%{ext_info}
|
2016-02-07 22:50:02 +01:00
|
|
|
%{_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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2008-01-12 02:43:49 +01:00
|
|
|
%changelog
|