public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michele Baldessari <michele@acksyn.org>
To: git-commits@fedoraproject.org
Subject: [rpms/google-api-python-client] epel10: Make spec more epel friendly
Date: Tue, 21 Jul 2026 20:26:47 GMT	[thread overview]
Message-ID: <178466560758.1.16552860236963542628.rpms-google-api-python-client-d7b49d46d34a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/google-api-python-client
Branch : epel10
Commit : d7b49d46d34a460b45f8af39cf84a694fad5b37b
Author : Michele Baldessari <michele@acksyn.org>
Date   : 2016-01-31T18:43:26+01:00
Stats  : +27/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/google-api-python-client/c/d7b49d46d34a460b45f8af39cf84a694fad5b37b?branch=epel10

Log:
Make spec more epel friendly

---
diff --git a/google-api-python-client.spec b/google-api-python-client.spec
index eb2a366..d3d5514 100644
--- a/google-api-python-client.spec
+++ b/google-api-python-client.spec
@@ -3,6 +3,10 @@
 %global sum Google APIs Client Library for Python
 %global srcname google-api-client
 
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
 Name:           google-api-python-client
 Summary:        %{sum}
 Version:        1.4.2
@@ -13,18 +17,6 @@ URL:            http://github.com/google/%{name}/
 Source0:        https://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
-BuildRequires:  python2-devel >= 2.7
-BuildRequires:  python2-setuptools
-BuildRequires:  python-httplib2 >= 0.8
-BuildRequires:  python2-oauth2client >= 1.4.6
-BuildRequires:  python2-uri-templates >= 0.6
-BuildRequires:  python2-six >= 1.6.1
-BuildRequires:  python3-devel >= 3.3
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-httplib2 >= 0.8
-BuildRequires:  python3-oauth2client >= 1.4.6
-BuildRequires:  python3-uri-templates >= 0.6
-BuildRequires:  python3-six >= 1.6.1
 
 %description 
 Written by Google, this library provides a small, flexible, and powerful 
@@ -34,6 +26,13 @@ Python client library for accessing Google APIs.
 Summary:        %{sum}
 %{?python_provide:%python_provide python2-%{srcname}}
 
+BuildRequires:  python2-devel >= 2.7
+BuildRequires:  python2-setuptools
+BuildRequires:  python-httplib2 >= 0.8
+BuildRequires:  python-oauth2client >= 1.4.6
+BuildRequires:  python-uri-templates >= 0.6
+BuildRequires:  python-six >= 1.6.1
+
 Requires:       python-httplib2 >= 0.8
 Requires:       python2-oauth2client >= 1.4.6
 Requires:       python2-uri-templates >= 0.6
@@ -44,10 +43,18 @@ Written by Google, this library provides a small, flexible, and powerful
 Python client library for accessing Google APIs.
 
 
+%if 0%{?with_python3}
 %package -n python3-%{srcname}
 Summary:        %{sum}
 %{?python_provide:%python_provide python3-%{srcname}}
 
+BuildRequires:  python3-devel >= 3.3
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-httplib2 >= 0.8
+BuildRequires:  python3-oauth2client >= 1.4.6
+BuildRequires:  python3-uri-templates >= 0.6
+BuildRequires:  python3-six >= 1.6.1
+
 Requires:       python3-httplib2 >= 0.8
 Requires:       python3-oauth2client >= 1.4.6
 Requires:       python3-uri-templates >= 0.6
@@ -56,6 +63,7 @@ Requires:       python3-six >= 1.6.1
 %description -n python3-%{srcname}
 Written by Google, this library provides a small, flexible, and powerful 
 Python 3 client library for accessing Google APIs.
+%endif
 
 %prep
 %setup -q
@@ -72,11 +80,15 @@ done
 
 %build
 %{py2_build}
+%if 0%{?with_python3}
 %{py3_build}
+%endif
 
 %install
 %{py2_install}
+%if 0%{?with_python3}
 %{py3_install}
+%endif
 
 %files -n python2-%{srcname}
 %license LICENSE
@@ -93,6 +105,9 @@ done
 %{python3_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
 
 %changelog
+* Sun Jan 31 2016 Michele Baldessari <michele@acksyn.org> - 1.4.2-4
+- Make spec more epel friendly
+
 * Mon Nov 02 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-3
 - Cleanup spec according to newest python policy
 - Drop python3 conditional, we'll build this for Fedora only for now anyways

                 reply	other threads:[~2026-07-21 20:26 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=178466560758.1.16552860236963542628.rpms-google-api-python-client-d7b49d46d34a@fedoraproject.org \
    --to=michele@acksyn.org \
    --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