From d743379fa71d085cf05c19ca1b67c01290f1fe703e873795118a9b90904e52d1 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 28 Aug 2017 14:27:18 +0000 Subject: [PATCH] Accepting request 518678 from devel:languages:python:singlespec-staging - singlespec auto-conversion OBS-URL: https://build.opensuse.org/request/show/518678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ndg-httpsclient?expand=0&rev=3 --- python-ndg-httpsclient.changes | 6 ++++++ python-ndg-httpsclient.spec | 31 +++++++++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/python-ndg-httpsclient.changes b/python-ndg-httpsclient.changes index ba7a671..32a2e1d 100644 --- a/python-ndg-httpsclient.changes +++ b/python-ndg-httpsclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:46:22 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Jun 12 07:20:53 UTC 2015 - t.gruner@katodev.de @@ -38,3 +43,4 @@ Fri Jun 12 07:20:53 UTC 2015 - t.gruner@katodev.de 0.1.0 ----- Initial release + diff --git a/python-ndg-httpsclient.spec b/python-ndg-httpsclient.spec index 2af0f87..6a554dc 100644 --- a/python-ndg-httpsclient.spec +++ b/python-ndg-httpsclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-ndg-httpsclient # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,25 +13,25 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ndg-httpsclient Version: 0.4.0 Release: 0 -License: BSD-2-Clause Summary: Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL -Url: https://github.com/cedadev/ndg_httpsclient/ +License: BSD-2-Clause Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/n/ndg-httpsclient/ndg_httpsclient-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Url: https://github.com/cedadev/ndg_httpsclient/ +Source: https://files.pythonhosted.org/packages/source/n/ndg_httpsclient/ndg_httpsclient-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description This is a HTTPS client implementation for httplib and urllib2 based on @@ -39,7 +39,6 @@ PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the default provided with Python and importantly enables full verification of the SSL peer. - Prerequisites ============= This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14. @@ -51,15 +50,15 @@ verification with subjectAltNames. %setup -q -n ndg_httpsclient-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %fdupes %{buildroot} -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/* -%{_bindir}/ndg_httpclient +%python3_only %{_bindir}/ndg_httpclient -%changelog \ No newline at end of file +%changelog