# 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 %bcond_without pzstd Name: zstd Version: 1.5.5 Release: 1%{?dist} Summary: Zstd compression library License: BSD and GPLv2 URL: https://github.com/facebook/zstd Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz 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, targeting real-time compression scenarios at zlib-level compression ratio. %package -n lib%{name} Summary: Zstd shared library %description -n lib%{name} Zstandard compression shared library. %package -n lib%{name}-devel Summary: Header files for Zstd library Requires: lib%{name}%{?_isa} = %{version}-%{release} %package -n lib%{name}-static Summary: Static variant of the Zstd library Requires: lib%{name}-devel = %{version}-%{release} %description -n lib%{name}-devel Header files for Zstd library. %description -n lib%{name}-static Static variant of the Zstd library. %prep %setup -q find -name .gitignore -delete %if %{with pzstd} %patch1 -p1 %endif %build 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} %if %{with pzstd} export CXXFLAGS="$RPM_OPT_FLAGS" %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" make -C contrib/pzstd test %endif %install %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} %if %{with pzstd} install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1 %endif %files %doc CHANGELOG README.md %{_bindir}/%{name} %if %{with pzstd} %{_bindir}/p%{name} %{_mandir}/man1/p%{name}.1* %endif %{_bindir}/%{name}mt %{_bindir}/un%{name} %{_bindir}/%{name}cat %{_bindir}/%{name}grep %{_bindir}/%{name}less %{_mandir}/man1/%{name}.1* %{_mandir}/man1/un%{name}.1* %{_mandir}/man1/%{name}cat.1* %{_mandir}/man1/%{name}grep.1* %{_mandir}/man1/%{name}less.1* %license COPYING LICENSE %files -n lib%{name} %{_libdir}/libzstd.so.* %license COPYING LICENSE %files -n lib%{name}-devel %{_includedir}/zdict.h %{_includedir}/zstd.h %{_includedir}/zstd_errors.h %{_libdir}/pkgconfig/libzstd.pc %{_libdir}/libzstd.so %files -n lib%{name}-static %{_libdir}/libzstd.a %ldconfig_scriptlets -n lib%{name} %changelog * Wed Apr 05 2023 Pádraig Brady
- 1.5.5-1 - Latest upstream * Mon Feb 13 2023 Pádraig Brady
- 1.5.4-1
- Latest upstream
* Sat Jan 21 2023 Fedora Release Engineering - 1.5.2-1
- Latest upstream
* Sat Jan 22 2022 Fedora Release Engineering - 1.5.1-6
- Re-enable CET protections (#2039353)
* Fri Jan 07 2022 Michel Alexandre Salim - 1.5.1-4
- Use correct prefix for pkgconfig.
* Wed Dec 29 2021 Pádraig Brady - 1.5.1-3
- Avoid executable stack on i686 also.
* Tue Dec 28 2021 Zbigniew Jędrzejewski-Szmek - 1.5.1-1
- Latest upstream
* Fri Jul 23 2021 Fedora Release Engineering - 1.5.0-2
- Latest upstream
* Fri Mar 05 2021 Pádraig Brady - 1.4.9-1
- Latest upstream
* Thu Jan 28 2021 Fedora Release Engineering - 1.4.7-1
- Latest upstream
* Wed Aug 26 2020 Jeff Law - 1.4.5-3
- Build shared library with correct compiler flags
* Fri May 22 2020 Pádraig Brady - 1.4.5-1
- Latest upstream
* Fri May 22 2020 Avi Kivity - 1.4.4-1
- Latest upstream
* Wed Jul 31 2019 Pádraig Brady - 1.4.2-1
- Latest upstream
* Sat Jul 27 2019 Fedora Release Engineering - 1.4.0-1
- Latest upstream
* Sun Feb 03 2019 Fedora Release Engineering - 1.3.8-1
- Latest upstream
* Mon Oct 08 2018 Pádraig Brady - 1.3.6-1
- Latest upstream
* Sat Jul 14 2018 Fedora Release Engineering - 1.3.5.1
- Latest upstream
* Wed Mar 28 2018 Pádraig Brady - 1.3.4-1
- Latest upstream
* Fri Feb 09 2018 Fedora Release Engineering - 1.3.3-1
- Latest upstream
* Fri Nov 10 2017 Pádraig Brady - 1.3.2-1
- Latest upstream
* Mon Aug 21 2017 Pádraig Brady - 1.3.1-1
- Latest upstream
* Thu Aug 03 2017 Fedora Release Engineering - 1.3.0-1
- Latest upstream
* Mon May 08 2017 Pádraig Brady - 1.2.0-1
- Latest upstream
* Mon Mar 06 2017 Pádraig Brady - 1.1.3-1
- Latest upstream
* Sat Feb 11 2017 Fedora Release Engineering