14
0

Accepting request 1285472 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1285472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-subscene-api?expand=0&rev=3
This commit is contained in:
2025-06-13 16:48:05 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 12:14:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:55:00 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:55:00 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-subscene-api # spec file for package python-subscene-api
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # 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,21 +16,20 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-subscene-api Name: python-subscene-api
Version: 2.0.0 Version: 2.0.0
Release: 0 Release: 0
Summary: Python wrapper for Subscene subtitle database Summary: Python wrapper for Subscene subtitle database
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/mamins1376/Subscene-API URL: https://github.com/mamins1376/Subscene-API
Source0: https://pypi.io/packages/source/s/subscene-api/subscene-api-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/s/subscene-api/subscene-api-%{version}.tar.gz
BuildRequires: %{python_module beautifulsoup4 >= 4.4.1} BuildRequires: %{python_module beautifulsoup4 >= 4.4.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-beautifulsoup4 >= 4.4.1 Requires: python-beautifulsoup4 >= 4.4.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -44,14 +43,13 @@ rm -rf subscene_api.egg-info
sed -i -e '1d' subscene/__init__.py sed -i -e '1d' subscene/__init__.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%files %{python_files} %files %{python_files}
%defattr(-,root,root)
%{python_sitelib}/subscene %{python_sitelib}/subscene
%{python_sitelib}/subscene_api-%{version}-py%{python_version}.egg-info %{python_sitelib}/subscene_api-%{version}*-info
%changelog %changelog