zstd/zstd.spec

135 lines
3.7 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:20:50 -04:00
%bcond_without pzstd
Name: zstd
2021-08-04 14:54:22 +08:00
Version: 1.5.0
Release: 8
2019-09-30 11:20:50 -04:00
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
Patch1: backport-zstd-1.5.0-patch-1-set-mtime-on-output-files.patch
2021-11-03 16:33:36 +08:00
Patch2: backport-zstd-1.5.0-patch-2-add-tests-set-mtime-on-output-files.patch
2021-11-08 17:24:07 +08:00
Patch3: backport-zstd-1.5.0-patch-3-remove-invalid-test.patch
2021-11-16 16:40:12 +08:00
Patch4: backport-zstd-1.5.0-patch-4-limit-train-samples.patch
Patch5: patch-5-add-test-case-survive-a-list-of-files-which-long-file-name-length.patch
2021-11-16 16:40:12 +08:00
2019-09-30 11:20:50 -04:00
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
2021-11-17 14:33:50 +08:00
make -C tests test
2019-09-30 11:20:50 -04:00
%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
2020-05-22 06:54:13 +00:00
%doc CHANGELOG README.md
2019-09-30 11:20:50 -04:00
%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
* Thu Nov 18 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0.8
* add test case survive a list of files which long file name length
2021-11-17 14:33:50 +08:00
* Tue Nov 16 2021 zhangying <zhangying103@huawei.com> - 1.5.0.7
* run the complete test case on ci
2021-11-16 16:40:12 +08:00
* Tue Nov 16 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0.6
* Limit train smaples
2021-11-15 14:27:05 +08:00
* Mon Nov 15 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0.5
* make the test in all archtectures
2021-11-08 17:24:07 +08:00
* Mon Nov 08 2021 zhangying <zhangying103@huawei.com> - 1.5.0-4
* remove invalid test
2021-11-03 16:33:36 +08:00
* Wed Nov 03 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0-3
* add tests - solve the modification time is set to the compression time
* Mon Oct 25 2021 zhangxiao <zhangxiao131@huawei.com> - 1.5.0-2
* solve the modification time is set to the compression time
2021-08-04 14:54:22 +08:00
* Wed Aug 04 2021 shixuantong <shixuantong@huawei.com> - 1.5.0-1
- upgrade version to 1.5.0
2021-03-16 15:07:40 +08:00
* Tue Mar 16 2021 shixuantong <shixuantong@huawei.com> - 1.4.8-2
- fix CVE-2021-24032
2021-01-28 14:38:43 +08:00
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 1.4.8-1
- upgrade version to 1.4.8
2020-06-20 17:55:13 +08:00
* Sat Jun 20 2020 maqiang<maqiang42@huawei.com> -1.4.5
- Type:Update
- ID:
- SUG:NA
- DESC:Update to version 1.4.5
2020-05-22 06:54:13 +00:00
* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.6-3
2020-01-13 20:27:26 +08:00
- Delete useless files.
2020-05-22 06:54:13 +00:00
* Sun Sep 15 2019 dongjian <dongjian13@huawei.com> - 1.3.6-2
2019-09-30 11:20:50 -04:00
- Modification summary