From fe5907a6173266c08a36f0956303f3d12cf2a70e3a2bfd556efdf7d37da35d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 12:58:34 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-XStatic-tv4?expand=0&rev=6 --- python-XStatic-tv4.changes | 5 +++++ python-XStatic-tv4.spec | 19 +++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/python-XStatic-tv4.changes b/python-XStatic-tv4.changes index ab28b92..c633e62 100644 --- a/python-XStatic-tv4.changes +++ b/python-XStatic-tv4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 10:42:06 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 8 16:54:52 UTC 2019 - Jan Engelhardt diff --git a/python-XStatic-tv4.spec b/python-XStatic-tv4.spec index 5e31cbb..12e11e9 100644 --- a/python-XStatic-tv4.spec +++ b/python-XStatic-tv4.spec @@ -1,7 +1,7 @@ # # spec file for package python-XStatic-tv4 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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,20 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-XStatic-tv4 Version: 1.2.7.0 Release: 0 Summary: AngularJS library "tv4" repackaged for the XStatic standard License: SUSE-Public-Domain Group: Development/Languages/Python -Url: http://geraintluff.github.com/tv4/ +URL: http://geraintluff.github.com/tv4/ Source: https://files.pythonhosted.org/packages/source/X/XStatic-tv4/XStatic-tv4-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -42,15 +42,18 @@ You can find more info about the xstatic packaging way in the package `XStatic`. %setup -q -n XStatic-tv4-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root,-) %doc README.txt -%{python_sitelib}/* +%dir %{python_sitelib}/xstatic +%dir %{python_sitelib}/xstatic/pkg +%{python_sitelib}/xstatic/pkg/tv4 +%{python_sitelib}/[Xx][Ss]tatic[-_]tv4-%{version}*-info +%{python_sitelib}/[Xx][Ss]tatic[-_]tv4-%{version}*nspkg.pth %changelog