14
0
forked from pool/python-yaswfp

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yaswfp?expand=0&rev=3
This commit is contained in:
2025-06-13 12:51:40 +00:00
committed by Git OBS Bridge
parent be4fc6b41d
commit a7aae2f4e7
2 changed files with 21 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 12:51:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon May 24 08:57:00 UTC 2021 - Paolo Perego <paolo.perego@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-yaswfp
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-yaswfp
Version: 0+git.1411687316.2a2cc6c
Release: 0
Summary: Yet Another SWF Parser
License: GPL-3.0
URL: http://github.com/facundobatista/yaswfp
Source: yaswfp-%{version}.tar.xz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildArch: noarch
License: GPL-3.0-only
Group: Development/Libraries/Python
URL: https://github.com/facundobatista/yaswfp
Source: yaswfp-%{version}.tar.xz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -41,10 +40,10 @@ Yet Another SWF Parser.
%setup -q -n yaswfp-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/swfparser
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -52,7 +51,7 @@ Yet Another SWF Parser.
%pytest
%post
%python_install_alternative swfparser
%{pyproject_install_alternative} swfparser
%postun
%python_uninstall_alternative swfparser
@@ -61,6 +60,7 @@ Yet Another SWF Parser.
%doc README.rst
%license COPYING
%python_alternative %{_bindir}/swfparser
%{python_sitelib}/*
%{python_sitelib}/yaswfp
%{python_sitelib}/yaswfp-%{version}*-info
%changelog