[packages/python-certifi] - initial

arekm arekm at pld-linux.org
Tue Nov 3 15:36:10 CET 2015


commit bb398be34257ee6d531d4b93f31a7e29b8814114
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 3 15:35:55 2015 +0100

    - initial

 python-certifi.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 107 insertions(+)
---
diff --git a/python-certifi.spec b/python-certifi.spec
new file mode 100644
index 0000000..fe09eb1
--- /dev/null
+++ b/python-certifi.spec
@@ -0,0 +1,107 @@
+#
+# Conditional build:
+%bcond_without	doc		# don't build doc
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module	certifi
+Summary:	Trust Database for Humans
+Name:		python-%{module}
+Version:	2015.9.6.2
+Release:	1
+License:	ISC
+Group:		Libraries/Python
+Source0:	https://pypi.python.org/packages/source/c/certifi/certifi-%{version}.tar.gz
+# Source0-md5:	323884431b31aa0eccb5f8086d92196b
+URL:		https://certifi.io/
+BuildRequires:	rpmbuild(macros) >= 1.612
+%if %{with python2}
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%package -n python3-%{module}
+Summary:	Trust Database for Humans
+Summary(pl.UTF-8):	-
+Group:		Libraries/Python
+Requires:	python3-modules
+
+%description -n python3-%{module}
+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.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# setup copy of source in py3 dir
+set -- *
+install -d py3
+cp -a "$@" py3
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+	build --build-base build-2 \
+	install --skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+	build --build-base build-3 \
+	install --skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-certifi.git/commitdiff/bb398be34257ee6d531d4b93f31a7e29b8814114



More information about the pld-cvs-commit mailing list