diffutils/diffutils.spec
Jiri Slaby 16b0da7cd3 Accepting request 357677 from home:pluskalm:branches:Base:System
- Make building more verbose
- Move info page removal to preun
- Cleanup spec file with spec-cleaner
- Update provides/obsoletes

OBS-URL: https://build.opensuse.org/request/show/357677
OBS-URL: https://build.opensuse.org/package/show/Base:System/diffutils?expand=0&rev=36
2016-02-07 21:50:02 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package diffutils
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: diffutils
Version: 3.3
Release: 0
Summary: GNU diff Utilities
License: GFDL-1.2 and GPL-3.0+
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
# http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=diffutils
Source2: %{name}.keyring
Patch0: gnulib-perl522.patch
BuildRequires: xz
Requires(pre): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Provides: diff = %{version}
Obsoletes: diff < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GNU diff utilities find differences between files. diff is used to
make source code patches, for instance.
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="%{optflags} -fPIE"
export LDFLAGS="-pie"
%configure
make %{?_smp_mflags} V=1
%check
make %{?_smp_mflags} check
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
gzip -9 %{buildroot}%{_infodir}/%{name}.info
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%preun
%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
%{_infodir}/diffutils.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}
%changelog