[packages/python3-pytest_codspeed] Rel 3; noarch on everything beside x86_64
arekm
arekm at pld-linux.org
Mon Feb 17 16:28:47 CET 2025
commit d819a9a59d3b0297621c910f247be2de93373abc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Feb 17 15:52:56 2025 +0100
Rel 3; noarch on everything beside x86_64
python3-pytest_codspeed.spec | 43 +++++++++++++++++++++++++++----------------
1 file changed, 27 insertions(+), 16 deletions(-)
---
diff --git a/python3-pytest_codspeed.spec b/python3-pytest_codspeed.spec
index 15e3a1b..6bb3478 100644
--- a/python3-pytest_codspeed.spec
+++ b/python3-pytest_codspeed.spec
@@ -6,7 +6,7 @@ Summary: Pytest plugin to create CodSpeed benchmarks
# Name must match the python module/package name (as on pypi or in 'import' statement)
Name: python3-%{module}
Version: 3.2.0
-Release: 1
+Release: 2
License: MIT
Group: Libraries/Python
Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
@@ -21,8 +21,17 @@ BuildRequires: python3-modules >= 1:3.2
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
Requires: python3-modules >= 1:3.2
+%ifnarch %{x8664}
+BuildArch: noarch
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%ifnarch %{x8664}
+%define extdir %{py3_sitescriptdir}
+%else
+%define extdir %{py3_sitedir}
+%endif
+
%description
Creating benchmarks with pytest-codspeed is compatible with the
standard pytest-benchmark API. So if you already have benchmarks
@@ -53,18 +62,20 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%{py3_sitedir}/%{module}/py.typed
-%{py3_sitedir}/%{module}/__pycache__/*.py*
-%{py3_sitedir}/%{module}/instruments/*.py
-%{py3_sitedir}/%{module}/instruments/__pycache__/*.py*
-%{py3_sitedir}/%{module}/instruments/valgrind/*.py
-%{py3_sitedir}/%{module}/instruments/valgrind/__pycache__/*.py*
-%dir %{py3_sitedir}/%{module}/instruments/valgrind/_wrapper
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/__pycache__/*.py*
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.py
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.[chi]
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.pyi
-%attr(755,root,root) %{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.so
-%{py3_sitedir}/%{module}-%{version}.dist-info
+%dir %{extdir}/%{module}
+%{extdir}/%{module}/*.py
+%{extdir}/%{module}/py.typed
+%{extdir}/%{module}/__pycache__/*.py*
+%{extdir}/%{module}/instruments/*.py
+%{extdir}/%{module}/instruments/__pycache__/*.py*
+%{extdir}/%{module}/instruments/valgrind/*.py
+%{extdir}/%{module}/instruments/valgrind/__pycache__/*.py*
+%dir %{extdir}/%{module}/instruments/valgrind/_wrapper
+%{extdir}/%{module}/instruments/valgrind/_wrapper/__pycache__/*.py*
+%{extdir}/%{module}/instruments/valgrind/_wrapper/*.py
+%{extdir}/%{module}/instruments/valgrind/_wrapper/*.[chi]
+%{extdir}/%{module}/instruments/valgrind/_wrapper/*.pyi
+%if "%{extdir}" == "%{py3_sitedir}"
+%attr(755,root,root) %{extdir}/%{module}/instruments/valgrind/_wrapper/*.so
+%endif
+%{extdir}/%{module}-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest_codspeed.git/commitdiff/d819a9a59d3b0297621c910f247be2de93373abc
More information about the pld-cvs-commit
mailing list