-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-certifi.spec
60 lines (40 loc) · 1.72 KB
/
python-certifi.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
########################################################################################
%define package_name certifi
########################################################################################
Summary: Python package for providing Mozilla's CA Bundle.
Name: python-certifi
Version: 2016.09.26
Release: 0%{?dist}
License: MIT
Group: Development/Libraries
URL: https://pypi.python.org/pypi/certifi
Source: https://github.com/certifi/python-%{package_name}/archive/%{version}.tar.gz
BuildRequires: python-devel python-setuptools
Requires: python-requests python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Provides: %{name} = %{verion}-%{release}
########################################################################################
%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.
########################################################################################
%prep
%setup -q -n %{name}-%{version}
%clean
rm -rf %{buildroot}
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
########################################################################################
%files
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitelib}/*
########################################################################################
%changelog
* Tue Nov 29 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 2016.9.26-0
- Initial build