This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
/
python-mock.spec
100 lines (82 loc) · 2.84 KB
/
python-mock.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : python-mock
Version : 4.0.3
Release : 84
URL : https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
Source0 : https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
Summary : Rolling backport of unittest.mock for all Pythons
Group : Development/Tools
License : BSD-2-Clause
Requires: python-mock-license = %{version}-%{release}
Requires: python-mock-python = %{version}-%{release}
Requires: python-mock-python3 = %{version}-%{release}
Requires: twine
Requires: wheel
BuildRequires : buildreq-distutils3
BuildRequires : pbr
BuildRequires : six
BuildRequires : twine
BuildRequires : wheel
%description
your system under test with mock objects and make assertions about how they
have been used.
mock is now part of the Python standard library, available as `unittest.mock
%package license
Summary: license components for the python-mock package.
Group: Default
%description license
license components for the python-mock package.
%package python
Summary: python components for the python-mock package.
Group: Default
Requires: python-mock-python3 = %{version}-%{release}
%description python
python components for the python-mock package.
%package python3
Summary: python3 components for the python-mock package.
Group: Default
Requires: python3-core
Provides: pypi(mock)
%description python3
python3 components for the python-mock package.
%prep
%setup -q -n mock-4.0.3
cd %{_builddir}/mock-4.0.3
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1607644879
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
export CFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=4 "
export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 "
export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 "
export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=4 "
export MAKEFLAGS=%{?_smp_mflags}
python3 setup.py build
%install
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/python-mock
cp %{_builddir}/mock-4.0.3/LICENSE.txt %{buildroot}/usr/share/package-licenses/python-mock/2eec66c59087d1cf096a35fc620161b222591e05
python3 -tt setup.py build install --root=%{buildroot}
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
echo ----[ mark ]----
%files
%defattr(-,root,root,-)
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/python-mock/2eec66c59087d1cf096a35fc620161b222591e05
%files python
%defattr(-,root,root,-)
%files python3
%defattr(-,root,root,-)
/usr/lib/python3*/*