/
pypi-jaraco.text.spec
135 lines (117 loc) · 4.47 KB
/
pypi-jaraco.text.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : pypi-jaraco.text
Version : 3.9.1
Release : 32
URL : https://files.pythonhosted.org/packages/80/69/7ef593911e7cf28e930145f3cfa509ec902afca78f6b9135fa995bea8348/jaraco.text-3.9.1.tar.gz
Source0 : https://files.pythonhosted.org/packages/80/69/7ef593911e7cf28e930145f3cfa509ec902afca78f6b9135fa995bea8348/jaraco.text-3.9.1.tar.gz
Summary : Module for text manipulation
Group : Development/Tools
License : MIT
Requires: pypi-jaraco.text-license = %{version}-%{release}
Requires: pypi-jaraco.text-python = %{version}-%{release}
Requires: pypi-jaraco.text-python3 = %{version}-%{release}
BuildRequires : buildreq-distutils3
BuildRequires : pypi(autocommand)
BuildRequires : pypi(inflect)
BuildRequires : pypi(jaraco.context)
BuildRequires : pypi(jaraco.functools)
BuildRequires : pypi(more_itertools)
BuildRequires : pypi(py)
BuildRequires : pypi(setuptools)
BuildRequires : pypi(setuptools_scm)
BuildRequires : pypi-pluggy
BuildRequires : pypi-pytest
BuildRequires : pypi-tox
BuildRequires : pypi-virtualenv
%description
.. image:: https://img.shields.io/pypi/v/jaraco.text.svg
:target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/jaraco.text.svg
:target: `PyPI link`_
%package license
Summary: license components for the pypi-jaraco.text package.
Group: Default
%description license
license components for the pypi-jaraco.text package.
%package python
Summary: python components for the pypi-jaraco.text package.
Group: Default
Requires: pypi-jaraco.text-python3 = %{version}-%{release}
%description python
python components for the pypi-jaraco.text package.
%package python3
Summary: python3 components for the pypi-jaraco.text package.
Group: Default
Requires: python3-core
Provides: pypi(jaraco.text)
Requires: pypi(autocommand)
Requires: pypi(inflect)
Requires: pypi(jaraco.context)
Requires: pypi(jaraco.functools)
Requires: pypi(more_itertools)
%description python3
python3 components for the pypi-jaraco.text package.
%prep
%setup -q -n jaraco.text-3.9.1
cd %{_builddir}/jaraco.text-3.9.1
pushd ..
cp -a jaraco.text-3.9.1 buildavx2
popd
%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=1661192932
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=auto "
export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto "
export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=auto "
export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=auto "
export MAKEFLAGS=%{?_smp_mflags}
python3 -m build --wheel --skip-dependency-check --no-isolation
pushd ../buildavx2/
export CFLAGS="$CFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 -msse2avx"
export CXXFLAGS="$CXXFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 -msse2avx "
export FFLAGS="$FFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 "
export FCFLAGS="$FCFLAGS -m64 -march=x86-64-v3 "
export LDFLAGS="$LDFLAGS -m64 -march=x86-64-v3 "
python3 -m build --wheel --skip-dependency-check --no-isolation
popd
%install
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/pypi-jaraco.text
cp %{_builddir}/jaraco.text-%{version}/LICENSE %{buildroot}/usr/share/package-licenses/pypi-jaraco.text/8e6689d37f82d5617b7f7f7232c94024d41066d1
pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
echo ----[ mark ]----
pushd ../buildavx2/
export CFLAGS="$CFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 "
export CXXFLAGS="$CXXFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 "
export FFLAGS="$FFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 "
export FCFLAGS="$FCFLAGS -m64 -march=x86-64-v3 "
export LDFLAGS="$LDFLAGS -m64 -march=x86-64-v3 "
pip install --root=%{buildroot}-v3 --no-deps --ignore-installed dist/*.whl
popd
## Remove excluded files
rm -f %{buildroot}*/usr/lib/python3.*/site-packages/jaraco/__init__.py
rm -f %{buildroot}*/usr/lib/python3.*/site-packages/jaraco/__pycache__/__init__.*
/usr/bin/elf-move.py avx2 %{buildroot}-v3 %{buildroot} %{buildroot}/usr/share/clear/filemap/filemap-%{name}
%files
%defattr(-,root,root,-)
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/pypi-jaraco.text/8e6689d37f82d5617b7f7f7232c94024d41066d1
%files python
%defattr(-,root,root,-)
%files python3
%defattr(-,root,root,-)
/usr/lib/python3*/*