Build with devtoolset-7 on EPEL7 to fix aarch64 builds
This commit is contained in:
parent
5871bd9b45
commit
f9c2dbeb45
17
brotli.spec
17
brotli.spec
@ -1,12 +1,15 @@
|
|||||||
Name: brotli
|
Name: brotli
|
||||||
Version: 1.0.7
|
Version: 1.0.7
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Lossless compression algorithm
|
Summary: Lossless compression algorithm
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/google/brotli
|
URL: https://github.com/google/brotli
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
|
||||||
|
%endif
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -55,6 +58,9 @@ chmod 644 c/include/brotli/*.h
|
|||||||
chmod 644 c/tools/brotli.c
|
chmod 644 c/tools/brotli.c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
. /opt/rh/devtoolset-7/enable
|
||||||
|
%endif
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
%cmake .. -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
%cmake .. -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
||||||
@ -64,6 +70,9 @@ cd ..
|
|||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
. /opt/rh/devtoolset-7/enable
|
||||||
|
%endif
|
||||||
cd build
|
cd build
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
@ -81,6 +90,9 @@ done
|
|||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
. /opt/rh/devtoolset-7/enable
|
||||||
|
%endif
|
||||||
cd build
|
cd build
|
||||||
ctest -V
|
ctest -V
|
||||||
cd ..
|
cd ..
|
||||||
@ -116,6 +128,9 @@ cd ..
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Apr 20 2019 Orion Poplawski <orion@nwra.com> - 1.0.7-5
|
||||||
|
- Build with devtoolset-7 on EPEL7 to fix aarch64 builds
|
||||||
|
|
||||||
* Thu Mar 28 2019 Carl George <carl@george.computer> - 1.0.7-4
|
* Thu Mar 28 2019 Carl George <carl@george.computer> - 1.0.7-4
|
||||||
- EPEL compatibility
|
- EPEL compatibility
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user