zstd-vl.spec 6.0 KB

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