public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthias Runge <mrunge@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-jsonschema] 2488367: fix build for non-python3 builds
Date: Mon, 15 Jun 2026 07:29:19 GMT	[thread overview]
Message-ID: <178150855960.1.17561206867186594700.rpms-python-jsonschema-f6aa9e92cec8@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-15  7:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178150855960.1.17561206867186594700.rpms-python-jsonschema-f6aa9e92cec8@fedoraproject.org \
    --to=mrunge@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox