- add gpg key checking, keyring from savannah OBS-URL: https://build.opensuse.org/request/show/180049 OBS-URL: https://build.opensuse.org/package/show/Base:System/diffutils?expand=0&rev=27
74 lines
2.1 KiB
RPMSpec
74 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package diffutils
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: diffutils
|
|
Url: http://www.gnu.org/software/diffutils/
|
|
Provides: diff
|
|
Obsoletes: diff
|
|
PreReq: %{install_info_prereq}
|
|
Version: 3.3
|
|
Release: 0
|
|
Summary: GNU diff Utilities
|
|
License: GFDL-1.2 and GPL-3.0+
|
|
Group: Productivity/Text/Utilities
|
|
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
|
# http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=diffutils
|
|
Source2: %name.keyring
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1220
|
|
BuildRequires: gpg-offline
|
|
%endif
|
|
BuildRequires: xz
|
|
|
|
%description
|
|
The GNU diff utilities find differences between files. diff is used to
|
|
make source code patches, for instance.
|
|
|
|
%prep
|
|
%if 0%{?suse_version} > 1220
|
|
%gpg_verify %{S:1}
|
|
%endif
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
gzip -9 %{buildroot}%{_infodir}/%{name}.info
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING NEWS README THANKS
|
|
%{_bindir}/cmp
|
|
%{_bindir}/diff
|
|
%{_bindir}/diff3
|
|
%{_bindir}/sdiff
|
|
%doc %{_infodir}/%{name}.info.gz
|
|
%doc %{_mandir}/man1/*.gz
|
|
|
|
%changelog
|