Blame SPECS/zstd.spec

f54e76
%if 0%{?rhel} && 0%{?rhel} <= 6
f54e76
# gcc-4.4 is currently too old to compile pzstd
f54e76
%bcond_with pzstd
f54e76
%else
f54e76
%ifarch %{ix86} x86_64
f54e76
%bcond_without pzstd
f54e76
%else
f54e76
# aarch64 and armv7hl at least currently segfault
f54e76
# in ThreadPool test for the pzstd util
f54e76
%bcond_with pzstd
f54e76
%endif
f54e76
%endif
f54e76
f54e76
# Disable gtest
f54e76
%bcond_with gtest
f54e76
f54e76
Name:           zstd
f54e76
Version:        1.5.0
f54e76
Release:        2%{?dist}
f54e76
Summary:        Zstd compression library
f54e76
f54e76
License:        BSD and GPLv2
f54e76
URL:            https://github.com/facebook/zstd
f54e76
Source0:        https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
f54e76
f54e76
Patch1:         pzstd.1.patch
f54e76
f54e76
BuildRequires: make
f54e76
BuildRequires:  gcc
f54e76
%if %{with gtest}
f54e76
BuildRequires: gtest-devel
f54e76
%endif
f54e76
%if %{with pzstd}
f54e76
BuildRequires:  gcc-c++
f54e76
%endif
f54e76
f54e76
%description
f54e76
Zstd, short for Zstandard, is a fast lossless compression algorithm,
f54e76
targeting real-time compression scenarios at zlib-level compression ratio.
f54e76
f54e76
%package -n lib%{name}
f54e76
Summary:        Zstd shared library
f54e76
f54e76
%description -n lib%{name}
f54e76
Zstandard compression shared library.
f54e76
f54e76
%package -n lib%{name}-devel
f54e76
Summary:        Header files for Zstd library
f54e76
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
f54e76
f54e76
%package -n lib%{name}-static
f54e76
Summary:        Static variant of the Zstd library
f54e76
Requires:       lib%{name}-devel = %{version}-%{release}
f54e76
f54e76
%description -n lib%{name}-devel
f54e76
Header files for Zstd library.
f54e76
f54e76
%description -n lib%{name}-static
f54e76
Static variant of the Zstd library.
f54e76
f54e76
%prep
f54e76
%setup -q
f54e76
find -name .gitignore -delete
f54e76
%if %{with pzstd}
f54e76
%patch1 -p1
f54e76
%endif
f54e76
f54e76
%build
f54e76
export CFLAGS="$RPM_OPT_FLAGS"
f54e76
export LDFLAGS="$RPM_LD_FLAGS"
f54e76
%make_build -C lib lib-mt
f54e76
%make_build -C programs
f54e76
%if %{with pzstd}
f54e76
export CXXFLAGS="$RPM_OPT_FLAGS"
f54e76
%make_build -C contrib/pzstd
f54e76
%endif
f54e76
f54e76
%check
f54e76
export CFLAGS="$RPM_OPT_FLAGS"
f54e76
export LDFLAGS="$RPM_LD_FLAGS"
f54e76
make -C tests test-zstd
f54e76
%if %{with pzstd}
f54e76
%if %{with gtest}
f54e76
export CXXFLAGS="$RPM_OPT_FLAGS"
f54e76
make -C contrib/pzstd test
f54e76
%endif
f54e76
%endif
f54e76
f54e76
%install
f54e76
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
f54e76
%if %{with pzstd}
f54e76
install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
f54e76
install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
f54e76
%endif
f54e76
f54e76
%files
f54e76
%doc CHANGELOG README.md
f54e76
%{_bindir}/%{name}
f54e76
%if %{with pzstd}
f54e76
%{_bindir}/p%{name}
f54e76
%{_mandir}/man1/p%{name}.1*
f54e76
%endif
f54e76
%{_bindir}/%{name}mt
f54e76
%{_bindir}/un%{name}
f54e76
%{_bindir}/%{name}cat
f54e76
%{_bindir}/%{name}grep
f54e76
%{_bindir}/%{name}less
f54e76
%{_mandir}/man1/%{name}.1*
f54e76
%{_mandir}/man1/un%{name}.1*
f54e76
%{_mandir}/man1/%{name}cat.1*
f54e76
%{_mandir}/man1/%{name}grep.1*
f54e76
%{_mandir}/man1/%{name}less.1*
f54e76
%license COPYING LICENSE
f54e76
f54e76
%files -n lib%{name}
f54e76
%{_libdir}/libzstd.so.*
f54e76
%license COPYING LICENSE
f54e76
f54e76
%files -n lib%{name}-devel
f54e76
%{_includedir}/zdict.h
f54e76
%{_includedir}/zstd.h
f54e76
%{_includedir}/zstd_errors.h
f54e76
%{_libdir}/pkgconfig/libzstd.pc
f54e76
%{_libdir}/libzstd.so
f54e76
f54e76
%files -n lib%{name}-static
f54e76
%{_libdir}/libzstd.a
f54e76
f54e76
%ldconfig_scriptlets -n lib%{name}
f54e76
f54e76
%changelog
f54e76
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.0-2
f54e76
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f54e76
  Related: rhbz#1991688
f54e76
f54e76
* Mon Jul 12 2021 Jakub Martisko <jamartis@redhat.com> - 1.5.0-1
f54e76
* Rebase to the latest usptream version
f54e76
Resolves: rhbz#1928094
f54e76
f54e76
* Thu Jul 01 2021 Jakub Martisko <jamartis@redhat.com> - 1.4.9-3
f54e76
- Drop gtest-devel dependency
f54e76
Resolves: rhbz#1977606
f54e76
f54e76
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.9-2
f54e76
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f54e76
f54e76
* Fri Mar 05 2021 Pádraig Brady <P@draigBrady.com> - 1.4.9-1
f54e76
- Latest upstream
f54e76
f54e76
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f54e76
f54e76
* Thu Dec 17 2020 Pádraig Brady <P@draigBrady.com> - 1.4.7-1
f54e76
- Latest upstream
f54e76
f54e76
* Wed Aug 26 2020 Jeff Law <law@redhat.com> - 1.4.5-6
f54e76
- Do not force C++11 mode
f54e76
f54e76
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-5
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f54e76
f54e76
* Sat Jul 11 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.4.5-4
f54e76
- Build libzstd with multi-threading support
f54e76
f54e76
* Mon May 25 2020 Pádraig Brady <P@draigBrady.com> - 1.4.5-3
f54e76
- Build shared library with correct compiler flags
f54e76
f54e76
* Fri May 22 2020 Pádraig Brady <P@draigBrady.com> - 1.4.5-1
f54e76
- Latest upstream
f54e76
f54e76
* Fri May 22 2020 Avi Kivity <avi@scylladb.com> - 1.4.4-3
f54e76
- Added static library subpackage
f54e76
f54e76
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f54e76
f54e76
* Wed Jan 15 2020 Pádraig Brady <P@draigBrady.com> - 1.4.4-1
f54e76
- Latest upstream
f54e76
f54e76
* Wed Jul 31 2019 Pádraig Brady <P@draigBrady.com> - 1.4.2-1
f54e76
- Latest upstream
f54e76
f54e76
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f54e76
f54e76
* Mon Apr 29 2019 Pádraig Brady <P@draigBrady.com> - 1.4.0-1
f54e76
- Latest upstream
f54e76
f54e76
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f54e76
f54e76
* Mon Dec 31 2018 Pádraig Brady <P@draigBrady.com> - 1.3.8-1
f54e76
- Latest upstream
f54e76
f54e76
* Mon Oct 08 2018 Pádraig Brady <P@draigBrady.com> - 1.3.6-1
f54e76
- Latest upstream
f54e76
f54e76
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f54e76
f54e76
* Mon Jul 02 2018 Pádraig Brady <P@draigBrady.com> - 1.3.5.1
f54e76
- Latest upstream
f54e76
f54e76
* Wed Mar 28 2018 Pádraig Brady <P@draigBrady.com> - 1.3.4-1
f54e76
- Latest upstream
f54e76
f54e76
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f54e76
f54e76
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.3-2
f54e76
- Switch to %%ldconfig_scriptlets
f54e76
f54e76
* Thu Dec 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.3-1
f54e76
- Latest upstream
f54e76
f54e76
* Fri Nov 10 2017 Pádraig Brady <P@draigBrady.com> - 1.3.2-1
f54e76
- Latest upstream
f54e76
f54e76
* Mon Aug 21 2017 Pádraig Brady <P@draigBrady.com> - 1.3.1-1
f54e76
- Latest upstream
f54e76
f54e76
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f54e76
f54e76
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f54e76
f54e76
* Sun Jul 16 2017 Pádraig Brady <P@draigBrady.com> - 1.3.0-1
f54e76
- Latest upstream
f54e76
f54e76
* Mon May 08 2017 Pádraig Brady <P@draigBrady.com> - 1.2.0-1
f54e76
- Latest upstream
f54e76
f54e76
* Mon Mar 06 2017 Pádraig Brady <P@draigBrady.com> - 1.1.3-1
f54e76
- Latest upstream
f54e76
f54e76
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
f54e76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f54e76
f54e76
* Wed Nov 02 2016 Pádraig Brady <pbrady@redhat.com> - 1.1.1-1
f54e76
- Latest upstream
f54e76
f54e76
* Thu Oct 6  2016 Pádraig Brady <pbrady@fb.com> 1.1.0-2
f54e76
- Add pzstd(1)
f54e76
f54e76
* Thu Sep 29 2016 Pádraig Brady <pbrady@fb.com> 1.1.0-1
f54e76
- New upstream release
f54e76
- Remove examples and static lib
f54e76
f54e76
* Mon Sep 12 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-2
f54e76
- Adjust various upstream links
f54e76
- Parameterize various items in spec file
f54e76
f54e76
* Mon Sep 5 2016 Pádraig Brady <pbrady@fb.com> 1.0.0-1
f54e76
- Initial release