File diffutils.spec of Package diffutils.15692

# spec file for package diffutils
# Copyright (c) 2018 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

Name:           diffutils
Version:        3.6
Release:        0
Summary:        GNU diff Utilities
License:        GFDL-1.2 and GPL-3.0+
Group:          Productivity/Text/Utilities
Source2:        %{name}.keyring
%ifarch ppc64le ppc64
Patch0:         ppc64_disable_failing_test.patch
BuildRequires:  xz
Requires(pre):  %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Recommends:     %{name}-lang = %{version}
Provides:       diff = %{version}
Obsoletes:      diff < %{version}

The GNU diff utilities find differences between files. diff is used to
make source code patches, for instance.


%setup -q
%ifarch ppc64le ppc64
%patch0 -p1

export CFLAGS="%{optflags} -fPIE"
export LDFLAGS="-pie"
%configure \
  --with-packager="openSUSE" \
make %{?_smp_mflags} V=1

make %{?_smp_mflags} check

%find_lang %{name}

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}

%license COPYING

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by