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