mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-02-09 11:47:19 +08:00
fix build
This commit is contained in:
parent
8d2b533fa5
commit
7552bbda28
@ -1,10 +1,13 @@
|
|||||||
%if 0%{!?__pip3:1} == 1
|
%if 0%{?!__pip3:1} == 1
|
||||||
%global __pip3 %{_bindir}/pip3
|
%global __pip3 %{_bindir}/pip3
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?!__cmake:1} == 1
|
||||||
|
%global __cmake %{_bindir}/cmake
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: brotli
|
Name: brotli
|
||||||
Version: 1.0.9
|
Version: 1.0.9
|
||||||
Release: %{?repo}0.rc1%{?dist}
|
Release: %{?repo}0.rc2%{?dist}
|
||||||
Summary: lossless compression algorithm
|
Summary: lossless compression algorithm
|
||||||
|
|
||||||
Group: System Environment/Utilities
|
Group: System Environment/Utilities
|
||||||
@ -12,9 +15,9 @@ License: MIT
|
|||||||
URL: https://github.com/google/brotli
|
URL: https://github.com/google/brotli
|
||||||
Source0: https://github.com/google/brotli/archive/v%{version}/brotli-%{version}.tar.gz
|
Source0: https://github.com/google/brotli/archive/v%{version}/brotli-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: %{_bindir}/cmake
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: %{__pip3}
|
BuildRequires: %{__pip3}
|
||||||
|
BuildRequires: %{__cmake}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,12 +81,14 @@ cd out
|
|||||||
..
|
..
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
cd ..
|
cd ..
|
||||||
|
export PIP_CONFIG_FILE=/dev/null
|
||||||
%{__pip3} wheel -w dist --no-build-isolation --no-deps $PWD
|
%{__pip3} wheel -w dist --no-build-isolation --no-deps $PWD
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd out
|
cd out
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
cd ..
|
cd ..
|
||||||
|
export PIP_CONFIG_FILE=/dev/null
|
||||||
pip3 install --no-index \
|
pip3 install --no-index \
|
||||||
--find-links dist \
|
--find-links dist \
|
||||||
--no-cache-dir \
|
--no-cache-dir \
|
||||||
@ -161,5 +166,8 @@ install -m644 docs/types.h.3 %{buildroot}%{_mandir}/man3/brotli-types.h.3
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 19 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.0.9-0.rc2
|
||||||
|
- Fixed build against the YJL pip.conf file
|
||||||
|
|
||||||
* Thu Apr 27 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.0.9-0.rc1
|
* Thu Apr 27 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.0.9-0.rc1
|
||||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
||||||
|
Loading…
Reference in New Issue
Block a user