SHA256
1
0
forked from pool/patchutils

Accepting request 757360 from devel:tools

- Drop xmlto dependency as it would introduce build cycle

- Modernise spec file

OBS-URL: https://build.opensuse.org/request/show/757360
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/patchutils?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2019-12-21 11:40:29 +00:00 committed by Git OBS Bridge
commit ccf09470ac
2 changed files with 21 additions and 17 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Dec 16 14:08:27 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Drop xmlto dependency as it would introduce build cycle
-------------------------------------------------------------------
Thu Dec 12 09:33:35 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Modernise spec file
-------------------------------------------------------------------
Fri Jul 3 06:43:14 UTC 2015 - sleep_walker@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package patchutils
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -20,20 +20,16 @@ Name: patchutils
Version: 0.3.4
Release: 0
Summary: A Collection of Tools for Manipulating Patch Files
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Productivity/File utilities
Url: http://cyberelk.net/tim/software/patchutils/
URL: http://cyberelk.net/tim/software/patchutils/
Source0: http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.xz
Source1: http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.xz.sig
Patch0: %{name}-0.2.30-tailsyntax.diff
Patch2: rediff-hunk-init-fix.diff
BuildRequires: automake
%if 0%{?suse_version} < 1220
BuildRequires: xz
%endif
Requires: diffutils
Requires: patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Patchutils contains a collection of tools for manipulating patch files:
@ -46,26 +42,24 @@ based on modified files matching shell wildcards. Lsdiff lists modified
files in a patch. Rediff corrects hand-edited patches.
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%autosetup -p1
%build
%configure
make %{?_smp_mflags}
%make_build
%check
make check
make --jobs=1 check
%install
make DESTDIR=%{buildroot} install
%make_install
install -m 0755 -d %{buildroot}%{_mandir}/man1/
install -m 0644 -t %{buildroot}%{_mandir}/man1/ doc/*.1
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%license COPYING
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_mandir}/man1/*.1%{?ext_man}
%changelog