Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
Pádraig Brady | eb0f7b0f31 | |
Pádraig Brady | ab7f0275c7 | |
Pádraig Brady | baf5c1f41a | |
Pádraig Brady | 97ac083558 | |
Pádraig Brady | 57da3a54e2 | |
Pádraig Brady | 8cf8358742 | |
Zbigniew Jędrzejewski-Szmek | 25138c2423 | |
Zbigniew Jędrzejewski-Szmek | 1da1913cc1 | |
Pádraig Brady | f9fafbbc38 | |
Pádraig Brady | bd5bfb5d25 | |
Pádraig Brady | 66c011b413 | |
Pádraig Brady | 196d817011 |
84
zstd.spec
84
zstd.spec
|
@ -1,17 +1,18 @@
|
|||
# enable asm implementations by default
|
||||
%bcond_without asm
|
||||
|
||||
# enable .lz4 support by default
|
||||
%bcond_without lz4
|
||||
|
||||
# enable .xz/.lzma support by default
|
||||
%bcond_without lzma
|
||||
|
||||
# enable .gz support by default
|
||||
%bcond_without zlib
|
||||
|
||||
# enable pzstd support by default
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
# gcc-4.4 is currently too old to compile pzstd
|
||||
%bcond_with pzstd
|
||||
%else
|
||||
%ifarch %{ix86} x86_64
|
||||
%bcond_without pzstd
|
||||
%else
|
||||
# aarch64 and armv7hl at least currently segfault
|
||||
# in ThreadPool test for the pzstd util
|
||||
%bcond_with pzstd
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Support disabling ASM implementations
|
||||
%bcond_without asm
|
||||
|
||||
Name: zstd
|
||||
Version: 1.5.4
|
||||
|
@ -24,21 +25,10 @@ Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{n
|
|||
|
||||
Patch1: pzstd.1.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc gtest-devel
|
||||
%if %{with lz4}
|
||||
BuildRequires: lz4-devel
|
||||
%endif
|
||||
%if %{with lzma}
|
||||
BuildRequires: xz-devel
|
||||
%endif
|
||||
%if %{with pzstd}
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
%if %{with zlib}
|
||||
BuildRequires: zlib-devel
|
||||
%endif
|
||||
BuildRequires: execstack
|
||||
|
||||
%description
|
||||
Zstd, short for Zstandard, is a fast lossless compression algorithm,
|
||||
|
@ -76,21 +66,20 @@ export CFLAGS="$RPM_OPT_FLAGS"
|
|||
export LDFLAGS="$RPM_LD_FLAGS"
|
||||
export PREFIX="%{_prefix}"
|
||||
export LIBDIR="%{_libdir}"
|
||||
%make_build -C lib lib-mt %{!?with_asm:ZSTD_NO_ASM=1}
|
||||
%make_build -C programs %{!?with_asm:ZSTD_NO_ASM=1}
|
||||
for dir in lib programs; do
|
||||
%make_build -C "$dir" %{!?with_asm:ZSTD_NO_ASM=1}
|
||||
done
|
||||
%if %{with pzstd}
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
|
||||
%make_build -C contrib/pzstd %{!?with_asm:ZSTD_NO_ASM=1}
|
||||
%endif
|
||||
|
||||
%check
|
||||
execstack lib/libzstd.so.1
|
||||
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export LDFLAGS="$RPM_LD_FLAGS"
|
||||
make -C tests test-zstd
|
||||
%if %{with pzstd}
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
|
||||
make -C contrib/pzstd test
|
||||
%endif
|
||||
|
||||
|
@ -140,27 +129,9 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
|||
* Mon Feb 13 2023 Pádraig Brady <P@draigBrady.com> - 1.5.4-1
|
||||
- Latest upstream
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu May 19 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5.2-2
|
||||
- ThreadPool segfault fixed so build pzst everywhere
|
||||
|
||||
* Sat Jan 22 2022 Pádraig Brady <P@draigBrady.com> - 1.5.2-1
|
||||
- Latest upstream
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Jan 11 2022 Pádraig Brady <P@draigBrady.com> - 1.5.1-6
|
||||
- Re-enable CET protections (#2039353)
|
||||
|
||||
* Fri Jan 07 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.5.1-5
|
||||
- Enable gz, .xz/.lzma and .lz4 support
|
||||
|
||||
* Mon Jan 03 2022 Pádraig Brady <P@draigBrady.com> - 1.5.1-4
|
||||
- Use correct prefix for pkgconfig.
|
||||
|
||||
|
@ -174,30 +145,15 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
|||
* Wed Dec 22 2021 Pádraig Brady <P@draigBrady.com> - 1.5.1-1
|
||||
- Latest upstream
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Sun May 16 2021 Pádraig Brady <P@draigBrady.com> - 1.5.0-2
|
||||
* Sun May 16 2021 Pádraig Brady <P@draigBrady.com> - 1.5.0-1
|
||||
- Latest upstream
|
||||
|
||||
* Fri Mar 05 2021 Pádraig Brady <P@draigBrady.com> - 1.4.9-1
|
||||
- Latest upstream
|
||||
|
||||
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Dec 17 2020 Pádraig Brady <P@draigBrady.com> - 1.4.7-1
|
||||
- Latest upstream
|
||||
|
||||
* Wed Aug 26 2020 Jeff Law <law@redhat.com> - 1.4.5-6
|
||||
- Do not force C++11 mode
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat Jul 11 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.4.5-4
|
||||
- Build libzstd with multi-threading support
|
||||
|
||||
* Mon May 25 2020 Pádraig Brady <P@draigBrady.com> - 1.4.5-3
|
||||
- Build shared library with correct compiler flags
|
||||
|
||||
|
|
Loading…
Reference in New Issue