forked from tax/python-requests-aws
-
Notifications
You must be signed in to change notification settings - Fork 5
/
python-requests-aws.spec
65 lines (49 loc) · 1.62 KB
/
python-requests-aws.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
61
62
63
64
65
%if 0%{?el8} || 0%{?redos}
%global el_python3_pkgversion 3
%else
%global el_python3_pkgversion 36
%endif
%define pkgname requests-aws
%global sum AWS authentication for Amazon S3 for the python requests module
%global descr AWS authentication for Amazon S3 for the python requests module
Name: python-%{pkgname}
Version: 0.1.5
Release: 3.ROCKIT4%{?dist}
Summary: %{sum}
License: BSD licence
URL: https://github.com/tax/python-requests-aws
Source0: %{pkgname}-%{version}.tar.gz
BuildArch: noarch
%description
%{descr}
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{sum}
Requires: python%{el_python3_pkgversion}-requests
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%if 0%{?redos}
Provides: python3.8dist(%{pkgname})
%endif
%description -n python%{python3_pkgversion}-%{pkgname}
%{descr}
%prep
%setup -q -n %{pkgname}-%{version}
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
%build
%{py3_build}
%install
[ %buildroot = "/" ] || rm -rf %buildroot
%{py3_install}
find %buildroot/ -name '*.egg-info' -exec rm -rf -- '{}' '+'
%files -n python%{python3_pkgversion}-%{pkgname}
%defattr(-,root,root,-)
%doc LICENSE.txt README.md
%{python3_sitelib}/*
%changelog
* Mon Jan 16 2023 Ivan Konov <[email protected]> - 0.1.5-3.CROC2
- Do not build py2 packages on rhel8+
- Remove py2 support
* Sat Jun 29 2019 Vladislav Odintsov <[email protected]> - 0.1.5-2
- Add support for py2/py3 build
* Wed Sep 24 2014 Mikhail Ushanov <[email protected]> - 0.1.5-1
- Initial package