From bbb06ff0ad769b4e7ebc5eb99d976d87c6d284179d4d0d62221cfa2ea9053352 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Nov 2024 11:18:55 +0000 Subject: [PATCH] - Clean up the SPEC file to build again. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs.types?expand=0&rev=8 --- python-calmjs.types.changes | 5 +++++ python-calmjs.types.spec | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/python-calmjs.types.changes b/python-calmjs.types.changes index 7ea650f..39d8be5 100644 --- a/python-calmjs.types.changes +++ b/python-calmjs.types.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 6 11:18:41 UTC 2024 - Matej Cepl + +- Clean up the SPEC file to build again. + ------------------------------------------------------------------- Mon Jun 26 05:57:56 UTC 2023 - Andreas Schneider diff --git a/python-calmjs.types.spec b/python-calmjs.types.spec index d9feb8d..1e8d335 100644 --- a/python-calmjs.types.spec +++ b/python-calmjs.types.spec @@ -1,7 +1,7 @@ # # spec file for package python-calmjs.types # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -24,8 +24,9 @@ Summary: Types for the calmjs framework License: MIT URL: https://github.com/calmjs/calmjs.types Source: https://github.com/calmjs/calmjs.types/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools @@ -36,13 +37,13 @@ BuildArch: noarch A collection of types (mostly exception classes) for use with |calmjs|_. %prep -%setup -q -n calmjs.types-%{version} +%autosetup -p1 -n calmjs.types-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -r %{buildroot}%{$python_sitelib}/calmjs/types/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -52,6 +53,8 @@ A collection of types (mostly exception classes) for use with |calmjs|_. %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/calmjs +%{python_sitelib}/calmjs.types-%{version}*-info +%{python_sitelib}/calmjs.types-%{version}*-nspkg.pth %changelog