public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jsonschema] 2488367: fix build for non-python3 builds
@ 2026-06-15  7:29 Matthias Runge
  0 siblings, 0 replies; only message in thread
From: Matthias Runge @ 2026-06-15  7:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-jsonschema
Branch : 2488367
Commit : f6aa9e92cec8b5072b4a1e5fcdc4b19d689c703b
Author : Matthias Runge <mrunge@redhat.com>
Date   : 2014-02-04T12:55:57+01:00
Stats  : +10/-7 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-jsonschema/c/f6aa9e92cec8b5072b4a1e5fcdc4b19d689c703b?branch=2488367

Log:
fix build for non-python3 builds

---
diff --git a/python-jsonschema.spec b/python-jsonschema.spec
index 15c1f09..2b8ed0c 100644
--- a/python-jsonschema.spec
+++ b/python-jsonschema.spec
@@ -9,7 +9,7 @@
 
 Name:           python-%{pypi_name}
 Version:        2.0.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        An implementation of JSON Schema validation for Python
 
 License:        MIT
@@ -19,7 +19,7 @@ BuildArch:      noarch
 BuildRequires:  python2-devel
 BuildRequires:  python-nose
 BuildRequires:  python-mock
-%if 0%{with_python3}
+%if 0%{?with_python3}
 BuildRequires:  python3-devel
 BuildRequires:  python3-nose
 BuildRequires:  python3-mock
@@ -30,7 +30,7 @@ BuildRequires:  python3-mock
 jsonschema is JSON Schema validator currently based on
 http://tools.ietf.org/html/draft-zyp-json-schema-03
 
-%if 0%{with_python3}
+%if 0%{?with_python3}
 %package -n python3-%{pypi_name}
 Summary:        An implementation of JSON Schema validation for Python
 %description -n python3-%{pypi_name}
@@ -47,7 +47,7 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
 %endif # with_python3
 
 %build
-%if 0%{with_python3}
+%if 0%{?with_python3}
 pushd %{py3dir}
     %{__python3} setup.py build
 popd
@@ -56,7 +56,7 @@ popd
 
 
 %install
-%if 0%{with_python3}
+%if 0%{?with_python3}
 pushd %{py3dir}
     %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
 popd
@@ -64,7 +64,7 @@ popd
 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
 
 %check
-%if 0%{with_python3}
+%if 0%{?with_python3}
 pushd %{py3dir}
     %{_bindir}/nosetests-3* -v
 popd
@@ -76,7 +76,7 @@ popd
 %{python_sitelib}/%{pypi_name}/
 %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
 
-%if 0%{with_python3}
+%if 0%{?with_python3}
 %files -n python3-%{pypi_name}
 %doc README.rst COPYING
 %{python3_sitelib}/%{pypi_name}/
@@ -85,6 +85,9 @@ popd
 
 
 %changelog
+* Tue Feb 04 2014 Matthias Runge <mrunge@redhat.com> - 2.0.0-3
+- fix %%{? issues in spec
+
 * Thu Oct 17 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.0.0-2
 - add python3 subpackage (#1016207)
 - add %%check

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15  7:29 [rpms/python-jsonschema] 2488367: fix build for non-python3 builds Matthias Runge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox