|
|
|
@ -1,19 +1,26 @@
|
|
|
|
|
# Drop gtest on RHEL
|
|
|
|
|
%bcond gtest %[ !0%{?rhel} ]
|
|
|
|
|
|
|
|
|
|
%global __cmake_in_source_build 1
|
|
|
|
|
Name: snappy
|
|
|
|
|
Version: 1.1.8
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Version: 1.1.10
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Fast compression and decompression library
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/google/snappy
|
|
|
|
|
Source0: https://github.com/google/snappy/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# add missing dependency on gtest to snappy_unittest
|
|
|
|
|
Patch0: %{name}-gtest.patch
|
|
|
|
|
# Remove dependency on bundled gtest and google-benchmark.
|
|
|
|
|
Patch0: %{name}-thirdparty.patch
|
|
|
|
|
|
|
|
|
|
# Do not forcibly disable RTTI
|
|
|
|
|
Patch1: %{name}-do-not-disable-rtti.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%{?with_gtest:BuildRequires: gtest-devel}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Snappy is a compression/decompression library. It does not aim for maximum
|
|
|
|
@ -36,11 +43,12 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake .
|
|
|
|
|
# gtest 1.13.0 requires C++14 or later
|
|
|
|
|
%cmake -DCMAKE_CXX_STANDARD=14 -DSNAPPY_BUILD_BENCHMARKS=OFF %{!?with_gtest:-DSNAPPY_BUILD_TESTS=OFF} .
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
# create pkgconfig file
|
|
|
|
@ -74,7 +82,8 @@ ctest -V %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS COPYING NEWS README.md
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS NEWS README.md
|
|
|
|
|
%{_libdir}/libsnappy.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
@ -86,15 +95,45 @@ ctest -V %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.8-8
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Aug 13 2024 Tao Liu <ltao@redhat.com> - 1.1.10-6
|
|
|
|
|
- Remove build-dependency google-benchmark
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.10-5
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.10-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.10-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Jiri Kucera <jkucera@redhat.com> - 1.1.10-2
|
|
|
|
|
- Drop gtest on RHEL, migrate to SPDX license identifier
|
|
|
|
|
|
|
|
|
|
* Wed Jun 30 2021 Lianbo Jiang <lijiang@redhat.com> - 1.1.8-7
|
|
|
|
|
- Drop BuildRequires dependency on gtest
|
|
|
|
|
* Thu Mar 09 2023 Martin Gieseking <martin.gieseking@uos.de> - 1.1.10-1
|
|
|
|
|
- Updated to version 1.1.10.
|
|
|
|
|
- Removed snappy-inline.patch as it's no longer required.
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.8-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue Jan 31 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.9-7
|
|
|
|
|
- Build with C++14 instead of C++11; gtest 1.13.0 requires it
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 08 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 1.1.9-2
|
|
|
|
|
- Do not forcibly disable RTTI
|
|
|
|
|
|
|
|
|
|
* Sat May 15 2021 Martin Gieseking <martin.gieseking@uos.de> - 1.1.9-1
|
|
|
|
|
- Updated to new release.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|