zstd-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. %bcond_without test
  2. %bcond_without pzstd
  3. Name: zstd
  4. Summary: Zstd compression library
  5. Version: 1.5.6
  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. * Thu Mar 28 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.6-1
  92. - new upstream release.
  93. * Wed Apr 05 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.5-1
  94. - new upstream release.
  95. * Fri Feb 10 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.4-1
  96. - new upstream release.
  97. * Mon Oct 31 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.2-1
  98. - new upstream release.
  99. * Fri Aug 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.0-1
  100. - new upstream release.
  101. - dropped ldconfig scriptlets.
  102. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.9-1
  103. - new upstream release.
  104. * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.8-1
  105. - new upstream release.
  106. * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.5-1
  107. - new upstream release.
  108. * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.4-3
  109. - initial build for Vine Linux.
  110. * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  112. * Wed Jan 15 2020 Pádraig Brady <P@draigBrady.com> - 1.4.4-1
  113. - Latest upstream
  114. * Wed Jul 31 2019 Pádraig Brady <P@draigBrady.com> - 1.4.2-1
  115. - Latest upstream
  116. * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  118. * Mon Apr 29 2019 Pádraig Brady <P@draigBrady.com> - 1.4.0-1
  119. - Latest upstream
  120. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
  121. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  122. * Mon Dec 31 2018 Pádraig Brady <P@draigBrady.com> - 1.3.8-1
  123. - Latest upstream
  124. * Mon Oct 08 2018 Pádraig Brady <P@draigBrady.com> - 1.3.6-1
  125. - Latest upstream
  126. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  128. * Mon Jul 02 2018 Pádraig Brady <P@draigBrady.com> - 1.3.5.1
  129. - Latest upstream
  130. * Wed Mar 28 2018 Pádraig Brady <P@draigBrady.com> - 1.3.4-1
  131. - Latest upstream
  132. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  134. * Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.3-2
  135. - Switch to %%ldconfig_scriptlets
  136. * Thu Dec 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.3-1
  137. - Latest upstream
  138. * Fri Nov 10 2017 Pádraig Brady <P@draigBrady.com> - 1.3.2-1
  139. - Latest upstream
  140. * Mon Aug 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.1-1
  141. - Latest upstream
  142. * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
  144. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  146. * Sun Jul 16 2017 Pádraig Brady <P@draigBrady.com> - 1.3.0-1
  147. - Latest upstream
  148. * Mon May 08 2017 Pádraig Brady <P@draigBrady.com> - 1.2.0-1
  149. - Latest upstream
  150. * Mon Mar 06 2017 Pádraig Brady <P@draigBrady.com> - 1.1.3-1
  151. - Latest upstream
  152. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
  153. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  154. * Wed Nov 02 2016 Pádraig Brady <pbrady@redhat.com> - 1.1.1-1
  155. - Latest upstream
  156. * Thu Oct 6 2016 Pádraig Brady <pbrady@fb.com> 1.1.0-2
  157. - Add pzstd(1)
  158. * Thu Sep 29 2016 Pádraig Brady <pbrady@fb.com> 1.1.0-1
  159. - New upstream release
  160. - Remove examples and static lib
  161. * Mon Sep 12 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-2
  162. - Adjust various upstream links
  163. - Parameterize various items in spec file
  164. * Mon Sep 5 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-1
  165. - Initial release