This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.9 KiB

  1. #TARBALL: https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-1.4.4.tar.gz
  2. #MD5SUM: 487f7ee1562dee7c1c8adf85e2a63df9;SOURCES/zstd-1.4.4.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: Zstandard - Fast real-time compression algorithm.
  5. Name: zstd
  6. Version: 1.4.4
  7. Release: 1
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: https://github.com/facebook/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. Zstandard is a real-time compression algorithm, providing high compression
  15. ratios. It offers a very wide range of compression / speed trade-offs, while
  16. being backed by a very fast decoder.
  17. #-----------------------------------------------------------------------------
  18. %prep
  19. %setup -q -n %{NAME}-%{VERSION}
  20. make %{?_smp_mflags}
  21. %install
  22. make prefix=%{buildroot}/%{_prefix} install
  23. install -vdm 755 %{buildroot}/lib
  24. rm -v %{buildroot}/usr/lib/libzstd.a
  25. mv -v %{buildroot}/usr/lib/libzstd.so.* %{buildroot}/lib
  26. ln -sfv ../../lib/$(readlink %{buildroot}/usr/lib/libzstd.so) %{buildroot}/usr/lib/libzstd.so
  27. #-----------------------------------------------------------------------------
  28. # Copy license/copying file
  29. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  30. #-----------------------------------------------------------------------------
  31. # Create file list
  32. find %{buildroot} -name '*.la' -delete
  33. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  34. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  35. sed -i '/man\/man/d' filelist.list
  36. sed -i '/\/usr\/share\/info/d' filelist.list
  37. #-----------------------------------------------------------------------------
  38. %files -f filelist.list
  39. %defattr(-,root,root)
  40. %{_mandir}/man1/*
  41. #-----------------------------------------------------------------------------
  42. %changelog
  43. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 1.4.4-1
  44. - Initial build. First version