Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efe3715ae2 | ||
|
|
7b6ede5c5b | ||
|
|
64ce90edbb | ||
|
|
4170a25cb1 | ||
|
|
e4309bcebc | ||
|
|
af1b0cb786 |
1 changed files with 44 additions and 21 deletions
65
zstd.spec
65
zstd.spec
|
|
@ -18,15 +18,16 @@
|
||||||
|
|
||||||
Name: zstd
|
Name: zstd
|
||||||
Version: 1.5.7
|
Version: 1.5.7
|
||||||
Release: 1%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Zstd compression library
|
Summary: Zstd compression library
|
||||||
|
|
||||||
License: BSD-3-Clause AND GPL-2.0-only
|
License: BSD-3-Clause OR GPL-2.0-only
|
||||||
URL: https://github.com/facebook/zstd
|
URL: https://github.com/facebook/zstd
|
||||||
Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch1: man-pages-1.5.7.patch
|
Patch1: man-pages-1.5.7.patch
|
||||||
|
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc %{?with_gtest:gtest-devel}
|
BuildRequires: gcc %{?with_gtest:gtest-devel}
|
||||||
%if %{with lz4}
|
%if %{with lz4}
|
||||||
|
|
@ -73,33 +74,38 @@ find -name .gitignore -delete
|
||||||
%patch 1 -p1
|
%patch 1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
%if !%{with asm}
|
||||||
export LDFLAGS="$RPM_LD_FLAGS"
|
export CPPFLAGS=-DZSTD_DISABLE_ASM
|
||||||
export PREFIX="%{_prefix}"
|
%endif
|
||||||
export LIBDIR="%{_libdir}"
|
%global _vpath_srcdir build/cmake
|
||||||
%make_build -C lib lib-mt %{!?with_asm:ZSTD_NO_ASM=1}
|
%global _vpath_builddir build/shared
|
||||||
%make_build -C programs %{!?with_asm:ZSTD_NO_ASM=1}
|
%cmake %{?with_pzstd:-DZSTD_BUILD_CONTRIB=ON} -DZSTD_BUILD_STATIC=NO -DZSTD_PROGRAMS_LINK_SHARED=YES
|
||||||
|
%cmake_build
|
||||||
|
%global _vpath_builddir build/static
|
||||||
|
%cmake %{?with_pzstd:-DZSTD_BUILD_CONTRIB=ON} -DZSTD_BUILD_SHARED=NO -DBUILD_TESTING=YES
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%global _vpath_builddir build/static
|
||||||
|
%cmake_install
|
||||||
|
# Install shared second so that cmake config files reference the shared library
|
||||||
|
%global _vpath_builddir build/shared
|
||||||
|
%cmake_install
|
||||||
%if %{with pzstd}
|
%if %{with pzstd}
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||||
%make_build -C contrib/pzstd %{!?with_asm:ZSTD_NO_ASM=1}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
execstack lib/libzstd.so.1
|
execstack %{_vpath_builddir}/lib/libzstd.so.1
|
||||||
|
|
||||||
|
%global _vpath_builddir build/static
|
||||||
|
%ctest --verbose
|
||||||
|
%if %{with pzstd} && %{with gtest}
|
||||||
|
# No pzstd tests with the cmake build at the moment
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
export LDFLAGS="$RPM_LD_FLAGS"
|
export LDFLAGS="$RPM_LD_FLAGS"
|
||||||
make -C tests test-zstd
|
|
||||||
%if %{with pzstd} && %{with gtest}
|
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
make -C contrib/pzstd test
|
make PZSTD_CXX_STD=-std=c++17 -C contrib/pzstd tests check
|
||||||
%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
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
@ -119,6 +125,7 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||||
%{_mandir}/man1/%{name}cat.1*
|
%{_mandir}/man1/%{name}cat.1*
|
||||||
%{_mandir}/man1/%{name}grep.1*
|
%{_mandir}/man1/%{name}grep.1*
|
||||||
%{_mandir}/man1/%{name}less.1*
|
%{_mandir}/man1/%{name}less.1*
|
||||||
|
%{_pkgdocdir}/zstd_manual.html
|
||||||
%license COPYING LICENSE
|
%license COPYING LICENSE
|
||||||
|
|
||||||
%files -n lib%{name}
|
%files -n lib%{name}
|
||||||
|
|
@ -131,6 +138,7 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||||
%{_includedir}/zstd_errors.h
|
%{_includedir}/zstd_errors.h
|
||||||
%{_libdir}/pkgconfig/libzstd.pc
|
%{_libdir}/pkgconfig/libzstd.pc
|
||||||
%{_libdir}/libzstd.so
|
%{_libdir}/libzstd.so
|
||||||
|
%{_libdir}/cmake/zstd/
|
||||||
|
|
||||||
%files -n lib%{name}-static
|
%files -n lib%{name}-static
|
||||||
%{_libdir}/libzstd.a
|
%{_libdir}/libzstd.a
|
||||||
|
|
@ -138,6 +146,21 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||||
%ldconfig_scriptlets -n lib%{name}
|
%ldconfig_scriptlets -n lib%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Oct 08 2025 Terje Røsten <terjeros@gmail.com> - 1.5.7-4
|
||||||
|
- Move to C++17 for gtest 1.17.0
|
||||||
|
|
||||||
|
* Sat Sep 20 2025 Orion Poplawski <orion@nwra.com> - 1.5.7-3
|
||||||
|
- Build with cmake (bz#2088517)
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Feb 20 2025 Pádraig Brady <P@draigBrady.com> - 1.5.7-1
|
* Thu Feb 20 2025 Pádraig Brady <P@draigBrady.com> - 1.5.7-1
|
||||||
- latest upstream
|
- latest upstream
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue