forked from patrys/httmock
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpython-httmock.spec
85 lines (61 loc) · 2.02 KB
/
python-httmock.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%global dist_raw %(%{__grep} -oP "\\b[0-9]+\\.[0-9]+\\b" /etc/system-release | tr -d ".")
%if 0%{?rhel} == 8 || 0%{?redos} == 7
%global el_python3_pkgversion 3
%else
%global el_python3_pkgversion 36
%endif
%define pkgname httmock
%global sum A mocking library for requests
%global descr A mocking library for `requests` for Python.
Name: python-%{pkgname}
Summary: %{sum}
Version: 1.3.0
Release: 2.ROCKIT5%{?dist}
License: Apache License, Version 2.0
Group: Development/Testing
URL: https://github.com/patrys/httmock
Source0: %{pkgname}-%{version}.tar.gz
BuildArch: noarch
%description
%{descr}
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{sum}
Requires: python%{el_python3_pkgversion}-requests >= 1.0.0
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-requests >= 1.0.0
BuildRequires: python%{el_python3_pkgversion}-nose
%description -n python%{python3_pkgversion}-%{pkgname}
%{descr}
%prep
%setup -q -n %{pkgname}-%{version}
%build
%py3_build
%check
nosetests-%{python3_version} -v
%install
[ %buildroot = "/" ] || rm -rf %buildroot
%py3_install
%clean
rm -rf %{buildroot}
%files -n python%{python3_pkgversion}-%{pkgname}
%defattr(-,root,root,-)
%{python3_sitelib}/*
%doc README.md LICENSE
%changelog
* Tue Dec 19 2023 Grigoriy Kulagin <[email protected]> 1.3.0-2.CROC4
- Add redos support
* Mon Jan 16 2023 Ivan Konov <[email protected]> 1.3.0-2.CROC3
- Fix package names for py3 builds
- Remove py2 support
* Thu Aug 1 2019 Vladislav Odintsov <[email protected]> 1.3.0-2
- Update with upstream patches #58
* Thu Jul 18 2019 Vladislav Odintsov <[email protected]> 1.3.0-1
- Update with upstream version 1.3.0
* Thu Jun 27 2019 Vladislav Odintsov <[email protected]> 1.2.3-3
- Add support for py2/py3.x build
* Fri Jun 03 2016 Vladislav Odintsov <[email protected]> 1.2.3-2
- Fix build for el7 distros
* Mon Mar 16 2015 Mikhail Ushanov <[email protected]> 1.2.3-1
- Update version.
* Fri Feb 06 2015 Mikhail Ushanov <[email protected]> 1.2.2-1
- Initial build.