| |
@@ -2,7 +2,7 @@
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
Version: 2016.9.26
|
| |
- Release: 3%{?dist}
|
| |
+ Release: 4%{?dist}
|
| |
Summary: Python package for providing Mozilla's CA Bundle
|
| |
|
| |
License: MPLv2.0
|
| |
@@ -12,13 +12,6 @@
|
| |
Patch1: certifi-2016.9.26-remove-bundle-cert.patch
|
| |
|
| |
BuildArch: noarch
|
| |
-
|
| |
- BuildRequires: python2-devel
|
| |
- BuildRequires: python-setuptools
|
| |
- BuildRequires: python3-setuptools
|
| |
- BuildRequires: python3-devel
|
| |
- Requires: python3
|
| |
- Requires: ca-certificates
|
| |
|
| |
%description
|
| |
Certifi is a carefully curated collection of Root Certificates for validating
|
| |
@@ -30,8 +23,11 @@
|
| |
instead. For more details on this system, see the ca-certificates package.
|
| |
|
| |
%package -n python2-%{pypi_name}
|
| |
- Summary: %{sum}
|
| |
+ Summary: %{summary}
|
| |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
| |
+ BuildRequires: python2-devel
|
| |
+ BuildRequires: python%{?fedora:2}-setuptools
|
| |
+ Requires: ca-certificates
|
| |
|
| |
%description -n python2-%{pypi_name}
|
| |
Certifi is a carefully curated collection of Root Certificates for validating
|
| |
@@ -45,12 +41,14 @@
|
| |
This package provides the Python 2 certifi library.
|
| |
|
| |
|
| |
- %package -n python3-%{pypi_name}
|
| |
- Summary: Python 3 package for providing Mozilla's CA Bundle
|
| |
- Group: Development/Libraries
|
| |
- %{?python_provide:%python_provide python3-%{pypi_name}}
|
| |
+ %package -n python%{python3_pkgversion}-%{pypi_name}
|
| |
+ Summary: %{summary}
|
| |
+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
| |
+ BuildRequires: python%{python3_pkgversion}-devel
|
| |
+ BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
+ Requires: ca-certificates
|
| |
|
| |
- %description -n python3-%{pypi_name}
|
| |
+ %description -n python%{python3_pkgversion}-%{pypi_name}
|
| |
Certifi is a carefully curated collection of Root Certificates for validating
|
| |
the trustworthiness of SSL certificates while verifying the identity of TLS
|
| |
hosts. It has been extracted from the Requests project.
|
| |
@@ -63,11 +61,10 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %setup -q -n %{pypi_name}-%{version}
|
| |
+ %autosetup -n %{pypi_name}-%{version} -p 1
|
| |
# Remove bundled egg-info
|
| |
rm -rf %{pypi_name}.egg-info
|
| |
rm -rf certifi/*.pem
|
| |
- %patch1 -p1
|
| |
|
| |
#drop shebangs from python_sitearch
|
| |
find %{_builddir}/%{pypi_name}-%{version} -name '*.py' \
|
| |
@@ -82,16 +79,23 @@
|
| |
%py3_install
|
| |
|
| |
%files -n python2-%{pypi_name}
|
| |
+ %license LICENSE
|
| |
%doc README.rst
|
| |
%{python2_sitelib}/%{pypi_name}
|
| |
%{python2_sitelib}/%{pypi_name}-*-py?.?.egg-info
|
| |
|
| |
- %files -n python3-%{pypi_name}
|
| |
+ %files -n python%{python3_pkgversion}-%{pypi_name}
|
| |
+ %license LICENSE
|
| |
%doc README.rst
|
| |
%{python3_sitelib}/%{pypi_name}
|
| |
%{python3_sitelib}/%{pypi_name}-*-py?.?.egg-info
|
| |
|
| |
%changelog
|
| |
+ * Thu Oct 12 2017 Carl George <carl@george.computer> - 2016.9.26-4
|
| |
+ - EPEL compatibility
|
| |
+ - Include license
|
| |
+ - Move ca-certificates requirement to subpackages
|
| |
+
|
| |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.9.26-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
| |
|
| |
This change makes the spec fully compatible with EPEL. It also adds the license and fixes a few other minor things. I did a scratch build to validate the changes. If you give me commit access on the repo, I'll request the epel7 branch and handle the build as well.