Skip to content

Commit

Permalink
pypi-jaraco.text: Autospec creation for version 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrus75 committed May 23, 2022
1 parent 15e0830 commit 474802f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 23 additions & 2 deletions pypi-jaraco.text.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Name : pypi-jaraco.text
Version : 3.7.0
Release : 23
Release : 24
URL : https://files.pythonhosted.org/packages/88/9b/ad6fb0d9132e9a12d0f5432645fb2de5902e709f06e03bc5bbe80ffa76e5/jaraco.text-3.7.0.tar.gz
Source0 : https://files.pythonhosted.org/packages/88/9b/ad6fb0d9132e9a12d0f5432645fb2de5902e709f06e03bc5bbe80ffa76e5/jaraco.text-3.7.0.tar.gz
Summary : Module for text manipulation
Expand Down Expand Up @@ -62,13 +62,16 @@ python3 components for the pypi-jaraco.text package.
%prep
%setup -q -n jaraco.text-3.7.0
cd %{_builddir}/jaraco.text-3.7.0
pushd ..
cp -a jaraco.text-3.7.0 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=1649768010
export SOURCE_DATE_EPOCH=1653338283
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
Expand All @@ -79,6 +82,15 @@ 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 "
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 "
python3 -m build --wheel --skip-dependency-check --no-isolation

popd

%install
export MAKEFLAGS=%{?_smp_mflags}
Expand All @@ -89,9 +101,18 @@ 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}/usr/share/clear/optimized-elf/ %{buildroot}/usr/share/clear/filemap/filemap-%{name}

%files
%defattr(-,root,root,-)
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23
24

0 comments on commit 474802f

Please sign in to comment.