zstd-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %bcond_without test
  2. %bcond_without pzstd
  3. Name: zstd
  4. Summary: Zstd compression library
  5. Version: 1.5.2
  6. Release: 1%{?_dist_release}
  7. Group: accessories
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD and GPLv2
  11. URL: https://github.com/facebook/zstd
  12. Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  13. BuildRequires: gcc gtest-devel
  14. %if %{with pzstd}
  15. BuildRequires: gcc-c++
  16. %endif
  17. %description
  18. Zstd, short for Zstandard, is a fast lossless compression algorithm,
  19. targeting real-time compression scenarios at zlib-level compression ratio.
  20. %package -n lib%{name}
  21. Summary: Zstd shared library
  22. Group: system
  23. %description -n lib%{name}
  24. Zstandard compression shared library.
  25. %package -n lib%{name}-devel
  26. Summary: Header files for Zstd library
  27. Group: programming
  28. Requires: lib%{name}%{?_isa} = %{version}-%{release}
  29. %description -n lib%{name}-devel
  30. Header files for Zstd library.
  31. %debug_package
  32. %prep
  33. %setup -q
  34. find -name .gitignore -delete
  35. %build
  36. export CFLAGS="$RPM_OPT_FLAGS"
  37. export LDFLAGS="$RPM_LD_FLAGS"
  38. for dir in lib programs; do
  39. %make_build -C "$dir"
  40. done
  41. %if %{with pzstd}
  42. export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
  43. %make_build -C contrib/pzstd
  44. %endif
  45. %if %{with test}
  46. %check
  47. export CFLAGS="$RPM_OPT_FLAGS"
  48. export LDFLAGS="$RPM_LD_FLAGS"
  49. make -C tests test-zstd
  50. %if %{with pzstd}
  51. export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
  52. make -C contrib/pzstd test
  53. %endif
  54. %endif
  55. %install
  56. %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
  57. # Don't install the static lib
  58. rm %{buildroot}%{_libdir}/libzstd.a
  59. %if %{with pzstd}
  60. install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
  61. install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
  62. %endif
  63. %files
  64. %doc CHANGELOG README.md
  65. %{_bindir}/%{name}
  66. %if %{with pzstd}
  67. %{_bindir}/p%{name}
  68. %{_mandir}/man1/p%{name}.1*
  69. %endif
  70. %{_bindir}/%{name}mt
  71. %{_bindir}/un%{name}
  72. %{_bindir}/%{name}cat
  73. %{_bindir}/%{name}grep
  74. %{_bindir}/%{name}less
  75. %{_mandir}/man1/%{name}.1*
  76. %{_mandir}/man1/un%{name}.1*
  77. %{_mandir}/man1/%{name}cat.1*
  78. %{_mandir}/man1/%{name}grep.1*
  79. %{_mandir}/man1/%{name}less.1*
  80. %license COPYING LICENSE
  81. %files -n lib%{name}
  82. %{_libdir}/libzstd.so.*
  83. %license COPYING LICENSE
  84. %files -n lib%{name}-devel
  85. %{_includedir}/zdict.h
  86. %{_includedir}/zstd.h
  87. %{_includedir}/zstd_errors.h
  88. %{_libdir}/pkgconfig/libzstd.pc
  89. %{_libdir}/libzstd.so
  90. %changelog
  91. * Mon Oct 31 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.2-1
  92. - new upstream release.
  93. * Fri Aug 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.0-1
  94. - new upstream release.
  95. - dropped ldconfig scriptlets.
  96. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.9-1
  97. - new upstream release.
  98. * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.8-1
  99. - new upstream release.
  100. * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.5-1
  101. - new upstream release.
  102. * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-3
  103. - initial build for Vine Linux.
  104. * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  106. * Wed Jan 15 2020 Pádraig Brady <P@draigBrady.com> - 1.4.4-1
  107. - Latest upstream
  108. * Wed Jul 31 2019 Pádraig Brady <P@draigBrady.com> - 1.4.2-1
  109. - Latest upstream
  110. * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  112. * Mon Apr 29 2019 Pádraig Brady <P@draigBrady.com> - 1.4.0-1
  113. - Latest upstream
  114. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  116. * Mon Dec 31 2018 Pádraig Brady <P@draigBrady.com> - 1.3.8-1
  117. - Latest upstream
  118. * Mon Oct 08 2018 Pádraig Brady <P@draigBrady.com> - 1.3.6-1
  119. - Latest upstream
  120. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
  121. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  122. * Mon Jul 02 2018 Pádraig Brady <P@draigBrady.com> - 1.3.5.1
  123. - Latest upstream
  124. * Wed Mar 28 2018 Pádraig Brady <P@draigBrady.com> - 1.3.4-1
  125. - Latest upstream
  126. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  128. * Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.3-2
  129. - Switch to %%ldconfig_scriptlets
  130. * Thu Dec 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.3-1
  131. - Latest upstream
  132. * Fri Nov 10 2017 Pádraig Brady <P@draigBrady.com> - 1.3.2-1
  133. - Latest upstream
  134. * Mon Aug 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.1-1
  135. - Latest upstream
  136. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
  137. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  138. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
  139. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  140. * Sun Jul 16 2017 Pádraig Brady <P@draigBrady.com> - 1.3.0-1
  141. - Latest upstream
  142. * Mon May 08 2017 Pádraig Brady <P@draigBrady.com> - 1.2.0-1
  143. - Latest upstream
  144. * Mon Mar 06 2017 Pádraig Brady <P@draigBrady.com> - 1.1.3-1
  145. - Latest upstream
  146. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
  147. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  148. * Wed Nov 02 2016 Pádraig Brady <pbrady@redhat.com> - 1.1.1-1
  149. - Latest upstream
  150. * Thu Oct 6 2016 Pádraig Brady <pbrady@fb.com> 1.1.0-2
  151. - Add pzstd(1)
  152. * Thu Sep 29 2016 Pádraig Brady <pbrady@fb.com> 1.1.0-1
  153. - New upstream release
  154. - Remove examples and static lib
  155. * Mon Sep 12 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-2
  156. - Adjust various upstream links
  157. - Parameterize various items in spec file
  158. * Mon Sep 5 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-1
  159. - Initial release