This repository was archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpy.spec
100 lines (83 loc) · 2.98 KB
/
py.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 : py
Version : 1.11.0
Release : 88
URL : https://files.pythonhosted.org/packages/98/ff/fec109ceb715d2a6b4c4a85a61af3b40c723a961e8828319fbcb15b868dc/py-1.11.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/98/ff/fec109ceb715d2a6b4c4a85a61af3b40c723a961e8828319fbcb15b868dc/py-1.11.0.tar.gz
Summary : library with cross-python path, ini-parsing, io, code, log facilities
Group : Development/Tools
License : MIT
Requires: py-license = %{version}-%{release}
Requires: py-python = %{version}-%{release}
Requires: py-python3 = %{version}-%{release}
BuildRequires : buildreq-distutils3
BuildRequires : pytest
BuildRequires : setuptools-python
BuildRequires : setuptools_scm
%description
.. image:: https://img.shields.io/pypi/v/py.svg
:target: https://pypi.org/project/py
%package license
Summary: license components for the py package.
Group: Default
%description license
license components for the py package.
%package python
Summary: python components for the py package.
Group: Default
Requires: py-python3 = %{version}-%{release}
%description python
python components for the py package.
%package python3
Summary: python3 components for the py package.
Group: Default
Requires: python3-core
Provides: pypi(py)
%description python3
python3 components for the py package.
%prep
%setup -q -n py-1.11.0
cd %{_builddir}/py-1.11.0
%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=1636131245
export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$FFLAGS -fno-lto "
export FFLAGS="$FFLAGS -fno-lto "
export CXXFLAGS="$CXXFLAGS -fno-lto "
export MAKEFLAGS=%{?_smp_mflags}
python3 setup.py build
%check
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
pytest --verbose || :
%install
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/py
cp %{_builddir}/py-1.11.0/LICENSE %{buildroot}/usr/share/package-licenses/py/cf3eaf29116a37a7d9ba773e776104c067c8e5fc
cp %{_builddir}/py-1.11.0/py/_vendored_packages/apipkg-2.0.0.dist-info/LICENSE %{buildroot}/usr/share/package-licenses/py/82dbfd684f7c04da81d4faa852c6317142daa3e7
cp %{_builddir}/py-1.11.0/py/_vendored_packages/iniconfig-1.1.1.dist-info/LICENSE %{buildroot}/usr/share/package-licenses/py/cf3eaf29116a37a7d9ba773e776104c067c8e5fc
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/py/82dbfd684f7c04da81d4faa852c6317142daa3e7
/usr/share/package-licenses/py/cf3eaf29116a37a7d9ba773e776104c067c8e5fc
%files python
%defattr(-,root,root,-)
%files python3
%defattr(-,root,root,-)
/usr/lib/python3*/*