14
0
forked from pool/python-tpfd

- Switch to autosetup and pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tpfd?expand=0&rev=3
This commit is contained in:
2024-03-05 02:48:21 +00:00
committed by Git OBS Bridge
parent 68fc0c7bb9
commit e2e3985e58
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 5 02:47:23 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Wed Apr 3 10:42:04 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tpfd
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,19 +16,19 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tpfd
Version: 0.2.4
Release: 0
Summary: Text Parsing Function Dispatcher
License: MIT
Group: Development/Languages/Python
URL: https://github.com/erinxocon/tpfd
Source: https://github.com/erinxocon/tpfd/archive/v%{version}.tar.gz#/tpfd-%{version}.tar.gz
Patch0: drop-test-data-installation.patch
BuildRequires: %{python_module parse}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-parse
@@ -45,14 +45,13 @@ the function will be run with a set of keyword arguments you've specified passed
Great for parsing logs and executing macros on what it finds!
%prep
%setup -q -n tpfd-%{version}
%patch0 -p1
%autosetup -p1 -n tpfd-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -64,6 +63,7 @@ $python test_parse.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/tpfd
%{python_sitelib}/tpfd-%{version}.dist-info
%changelog