[packages/python-fasteners] Rel 4; drop python3 from here (python3-fasteners.spec)
arekm
arekm at pld-linux.org
Thu May 8 18:18:21 CEST 2025
commit 789fbcd74c6ef06062ff804b2b550d72f319ee86
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 8 17:53:07 2025 +0200
Rel 4; drop python3 from here (python3-fasteners.spec)
python-fasteners.spec | 36 +-----------------------------------
1 file changed, 1 insertion(+), 35 deletions(-)
---
diff --git a/python-fasteners.spec b/python-fasteners.spec
index cd891e2..190fd5b 100644
--- a/python-fasteners.spec
+++ b/python-fasteners.spec
@@ -1,7 +1,5 @@
# Conditional build:
%bcond_without tests # do not perform "make test"
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module
%define module fasteners
%define egg_name fasteners
@@ -10,7 +8,7 @@ Summary: Provides useful locks
Name: python-%{pypi_name}
# 0.16.2 - latest with python2 support
Version: 0.16.2
-Release: 3
+Release: 4
License: Apache v2.0
Group: Libraries/Python
Source0: https://pypi.debian.net/fasteners/fasteners-%{version}.tar.gz
@@ -18,22 +16,12 @@ Source0: https://pypi.debian.net/fasteners/fasteners-%{version}.tar.gz
URL: https://pypi.python.org/pypi/fasteners
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
BuildRequires: python-modules
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-monotonic
BuildRequires: python-testtools
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-monotonic
-BuildRequires: python3-testtools
-%endif
-%endif
Requires: python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,41 +41,19 @@ Provides useful locks
%setup -q -n %{pypi_name}-%{version}
%build
-%if %{with python2}
%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc ChangeLog README.md
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc ChangeLog README.md
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fasteners.git/commitdiff/789fbcd74c6ef06062ff804b2b550d72f319ee86
More information about the pld-cvs-commit
mailing list