zstd-vl.spec 5.7 KB

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