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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,21 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-yaswfp Name: python-yaswfp
Version: 0+git.1411687316.2a2cc6c Version: 0+git.1411687316.2a2cc6c
Release: 0 Release: 0
Summary: Yet Another SWF Parser Summary: Yet Another SWF Parser
License: GPL-3.0 License: GPL-3.0-only
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
Group: Development/Libraries/Python 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 %python_subpackages
%description %description
@@ -41,10 +40,10 @@ Yet Another SWF Parser.
%setup -q -n yaswfp-%{version} %setup -q -n yaswfp-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/swfparser %python_clone -a %{buildroot}%{_bindir}/swfparser
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -52,7 +51,7 @@ Yet Another SWF Parser.
%pytest %pytest
%post %post
%python_install_alternative swfparser %{pyproject_install_alternative} swfparser
%postun %postun
%python_uninstall_alternative swfparser %python_uninstall_alternative swfparser
@@ -61,6 +60,7 @@ Yet Another SWF Parser.
%doc README.rst %doc README.rst
%license COPYING %license COPYING
%python_alternative %{_bindir}/swfparser %python_alternative %{_bindir}/swfparser
%{python_sitelib}/* %{python_sitelib}/yaswfp
%{python_sitelib}/yaswfp-%{version}*-info
%changelog %changelog