代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/zstd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%bcond_without pzstd
Name: zstd
Version: 1.4.5
Release: 0
Summary: A fast lossless compression algorithm
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
BuildRequires: gtest-devel gcc-c++ pkg-config
Provides: libzstd
Obsoletes: libzstd
%description
Zstd is a fast lossless compression algorithm. It's backed by a very fast entropy stage,
provided by Huff0 and FSE library. It's a real-time compression scenario for zlib levels
and has a better compression ratio.
%package devel
Summary: Header files for zstd library
Requires: %{name} = %{version}-%{release}
Provides: libzstd-devel
Obsoletes: libzstd-devel
%description devel
This package contains the header files for zstd library.
%package help
Summary: Help documentation related to zstd
BuildArch: noarch
%description help
This package includes help documentation and manuals related to zstd.
%prep
%autosetup -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$RPM_LD_FLAGS"
for dir in lib programs; do
%make_build -C "$dir"
done
%if %{with pzstd}
%make_build -C contrib/pzstd CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
%endif
%check
make -C tests test-zstd
%if %{with pzstd}
make -C contrib/pzstd test CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
%if %{with pzstd}
install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
%endif
%files
%doc CHANGELOG README.md
%license LICENSE COPYING
%{_bindir}/*
%{_libdir}/libzstd.so.*
%exclude %{_bindir}/%{name}less
%exclude %{_bindir}/%{name}grep
%exclude %{_libdir}/libzstd.a
%files devel
%{_includedir}/*.h
%{_libdir}/pkgconfig/libzstd.pc
%{_libdir}/libzstd.so
%files help
%{_mandir}/man1/*.1*
%changelog
* Sat May 30 2020 SimpleUpdate Robot <[email protected]>
- Update to version 1.4.5
* Fri May 22 2020 SimpleUpdate Robot <[email protected]>
- Update to version 1.4.4
* Mon Jan 13 2020 openEuler Buildteam <[email protected]> - 1.3.6-3
- Delete useless files.
* Sun Sep 15 2019 dongjian <[email protected]> - 1.3.6-2
- Modification summary
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。