15
0

Accepting request 486829 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/486829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certifi?expand=0&rev=9
This commit is contained in:
Todd R
2017-04-12 19:05:04 +00:00
committed by Git OBS Bridge
parent 4bc8ce9190
commit 48596c9ce6
4 changed files with 31 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e8eccf95924658c97b990b50552addb64f55e1e3dfe4880456ac1f287dc79d0
size 364036

3
certifi-2017.1.23.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:81877fb7ac126e9215dfb15bfef7115fdc30e798e0013065158eed0707fd99ce
size 380397

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Apr 8 17:51:03 UTC 2017 - aloisio@gmx.com
- Updated to version 2017.1.23
- Converted to single-spec
- Updated source URL
-------------------------------------------------------------------
Fri Jun 3 23:00:13 UTC 2016 - jacobwinski@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-certifi
#
# Copyright (c) 2016 SUSE LINUX 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
@@ -16,29 +16,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-certifi
Version: 2016.2.28
Version: 2017.1.23
Release: 0
Summary: Python package for providing Mozilla's CA Bundle
License: MPL-2.0
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/certifi
Source: https://pypi.python.org/packages/source/c/certifi/certifi-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/c/certifi/certifi-%{version}.tar.gz
# PATCH-FIX-SUSE -- prefer SUSE certificates
Patch0: python-certifi-shipped-requests-cabundle.patch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: ca-certificates
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: ca-certificates
%endif
%else
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%endif
%python_subpackages
%description
This installable Python package contains a CA Bundle that you can reference
@@ -49,23 +46,24 @@ derived from Mozilla Firefox's canonical set.
%prep
%setup -q -n certifi-%{version}
%if 0%{?suse_version} && 0%{?suse_version} > 1110
%patch0 -p1
%endif
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod +x %{buildroot}/%{python_sitelib}/certifi/core.py
%if 0%{?suse_version} && 0%{?suse_version} > 1110
rm %{buildroot}/%{python_sitelib}/certifi/cacert.pem
%endif
%python_install
%files
%{python_expand chmod +x %{buildroot}/%{$python_sitelib}/certifi/core.py
rm %{buildroot}/%{$python_sitelib}/certifi/cacert.pem
%fdupes -s %{buildroot}%{$python_sitelib}
}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{python_sitelib}/*
%{python_sitelib}/certifi/
%pycache_only %{python_sitelib}/certifi/__pycache__
%{python_sitelib}/certifi-%{version}-py%{python_version}.egg-info
%changelog