14
0

Accepting request 1113464 from devel:languages:python

- Clean up the SPEC file
- use unbundled versioneer to build package

OBS-URL: https://build.opensuse.org/request/show/1113464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-constantly?expand=0&rev=4
This commit is contained in:
2023-09-26 20:01:13 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Sep 25 13:30:48 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file
-------------------------------------------------------------------
Mon Sep 25 06:55:37 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
- use unbundled versioneer to build package
-------------------------------------------------------------------
Fri Apr 21 12:23:35 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-constantly
Version: 15.1.0
@@ -27,6 +26,8 @@ Group: Development/Languages/Python
URL: https://github.com/twisted/constantly
Source: https://files.pythonhosted.org/packages/source/c/constantly/constantly-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module versioneer}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
@@ -38,16 +39,19 @@ Originally ``twisted.python.constants`` from the `Twisted <https://twistedmatrix
%prep
%setup -q -n constantly-%{version}
rm -rf versioneer.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/constantly
%{python_sitelib}/constantly-%{version}*-info
%changelog