# # spec file for package # # Copyright (c) 2014 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: patchtools Version: 2.3.0.20200617.62f8e7b Release: 0 License: GPL-2.0 Summary: A set of tools for working with SUSE kernel patches Group: Development/Tools URL: https://github.com/jeffmahoney/patchtools Source: patchtools-%{version}.tar.xz BuildRequires: python3 >= 3.6 BuildRequires: python-rpm-macros BuildRequires: python3-setuptools BuildRequires: xz BuildRequires: asciidoc BuildRequires: xmlto BuildRequires: fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This package contains several tools for working with SUSE kernel patches. The rules for including patches in the SUSE kernel trees can be cumbersome and this set of tools automates much of the tedious work. %prep %setup -q %build %python3_build %install %python3_install make install DESTDIR=${RPM_BUILD_ROOT} %fdupes ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc AUTHORS README.md %{_mandir}/man5/patchtools.cfg.5.gz %{_bindir}/exportpatch %{_mandir}/man1/exportpatch.1.gz %{_bindir}/fixpatch %{_mandir}/man1/fixpatch.1.gz %{python3_sitelib}/* %changelog