public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-webob] epel9: Port to pyproject macros
@ 2026-08-02 12:38 Carl George
0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-08-02 12:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-webob
Branch : epel9
Commit : 890c03aa2ef7643616f6a973bc8e2414695e97ef
Author : Carl George <carlwgeorge@fedoraproject.org>
Date : 2024-11-11T22:01:05-06:00
Stats : +21/-21 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-webob/c/890c03aa2ef7643616f6a973bc8e2414695e97ef?branch=epel9
Log:
Port to pyproject macros
---
diff --git a/python-webob.spec b/python-webob.spec
index 925830b..b23e4ec 100644
--- a/python-webob.spec
+++ b/python-webob.spec
@@ -1,4 +1,4 @@
-%global with_tests 1
+%bcond tests 1
%global desc WebOb provides wrappers around the WSGI request environment, and an object to \
help create WSGI responses. The objects map much of the specified behavior of \
@@ -18,12 +18,7 @@ BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-# only require legacy-cgi on on systems where it's present
-%if 0%{?fedora} > 40 || 0%{?rhel} > 9
-BuildRequires: python3dist(legacy-cgi)
-%endif
-%if 0%{?with_tests}
+%if %{with tests}
BuildRequires: python3-pytest
%endif
@@ -37,46 +32,51 @@ Summary: %{summary}
Provides: python3-webob1.2 = %{version}-%{release}
Obsoletes: python3-webob1.2 < 1.2.3-7
-# only require legacy-cgi on on systems where it's present
-%if 0%{?fedora} > 40 || 0%{?rhel} > 9
-Requires: python3-cgi
-%endif
-
-%{?python_provide:%python_provide python3-webob}
-
%description -n python3-webob
%{desc}
+
%prep
%setup -q -n webob-%{version}
# Disable performance_test, which requires repoze.profile, which isn't
# in Fedora.
-%{__rm} -f tests/performance_test.py
+rm -f tests/performance_test.py
# Remove an empty unneeded file that is there for scm purposes.
rm docs/_static/.empty
+
+%generate_buildrequires
+%pyproject_buildrequires
+
+
%build
-%py3_build
+%pyproject_wheel
+
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files -L webob
+
%check
-%if 0%{?with_tests}
+%if %{with tests}
%pytest
+%else
+%pyproject_check_import
%endif
-%files -n python3-webob
+
+%files -n python3-webob -f %{pyproject_files}
%license docs/license.txt
%doc docs/*
-%{python3_sitelib}/webob/
-%{python3_sitelib}/WebOb-%{version}-py%{python3_version}.egg-info
+
%changelog
* Tue Nov 12 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.8.9-1
- Update to version 1.8.9 rhbz#2325373
+- Port to pyproject macros
* Sat Aug 17 2024 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.8.8-2
- Disable legacy-cgi requires for Fedora 40 and older systems
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-02 12:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-02 12:38 [rpms/python-webob] epel9: Port to pyproject macros Carl George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox