17
0
Files
python-whatthepatch/python-whatthepatch.spec
Markéta Machová 02eebe053c Accepting request 1108170 from home:jones_tony:branches:devel:languages:python
Using package for obs source service at suggestion of Georg Pfützenreuter.  Noticed some issues.   Occasional calls into library resulted in errant message about "dumb path" being printed to stdout.   This isn't mentioned in changelog but looking at git tree it was fixed as side-effect of one of the documented changes.

OBS-URL: https://build.opensuse.org/request/show/1108170
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-whatthepatch?expand=0&rev=9
2023-08-31 08:25:44 +00:00

65 lines
1.8 KiB
RPMSpec

#
# spec file for package python-whatthepatch
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-whatthepatch
Version: 1.0.5
Release: 0
Summary: A patch parsing and application library
License: MIT
Group: Development/Languages/Python
URL: https://github.com/cscorley/whatthepatch
Source: https://files.pythonhosted.org/packages/source/w/whatthepatch/whatthepatch-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: ed
BuildRequires: fdupes
BuildRequires: patch
BuildRequires: python-rpm-macros
Requires: ed
Requires: patch
BuildArch: noarch
%python_subpackages
%description
A patch parsing and application library.
%prep
%setup -q -n whatthepatch-%{version}
dos2unix README.rst
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/whatthepatch*/
%changelog