15
0
forked from pool/python-cogapp

Accepting request 1089565 from devel:languages:python

- add sle15_python_module_pythons (jsc#PED-68)
- Use pyproject to build the package

OBS-URL: https://build.opensuse.org/request/show/1089565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cogapp?expand=0&rev=6
This commit is contained in:
2023-05-29 20:47:58 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 29 11:38:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
- Use pyproject to build the package
-------------------------------------------------------------------
Tue Sep 27 06:52:19 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cogapp
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-cogapp
Version: 3.3.0
Release: 0
@@ -25,8 +25,10 @@ License: MIT
Group: Development/Languages/Python
URL: http://nedbatchelder.com/code/cog
Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{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(post): update-alternatives
@@ -40,13 +42,13 @@ as generators in your source files to generate whatever text you
need.
%prep
%setup -q -n cogapp-%{version}
%autosetup -p1 -n cogapp-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog
%python_clone -a %{buildroot}%{_bindir}/cog
@@ -65,6 +67,7 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog
%license LICENSE.txt
%doc README.rst
%python_alternative %{_bindir}/cog
%{python_sitelib}/*
%{python_sitelib}/cogapp
%{python_sitelib}/cogapp-%{version}*-info
%changelog