]> git.pld-linux.org Git - packages/snappy.git/commitdiff
- updated to 1.1.10 master auto/th/snappy-1.1.10-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Mar 2023 21:09:42 +0000 (22:09 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Mar 2023 21:09:42 +0000 (22:09 +0100)
- force C++ 14 for gtest 1.13+

snappy-inline.patch [deleted file]
snappy.spec

diff --git a/snappy-inline.patch b/snappy-inline.patch
deleted file mode 100644 (file)
index b45da9a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- snappy-1.1.9/snappy.cc.orig        2021-05-05 00:53:34.000000000 +0200
-+++ snappy-1.1.9/snappy.cc     2022-02-14 16:46:13.219517746 +0100
-@@ -1014,7 +1014,7 @@ void MemMove(ptrdiff_t dst, const void*
- }
- SNAPPY_ATTRIBUTE_ALWAYS_INLINE
--size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
-+static inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
-   const uint8_t*& ip = *ip_p;
-   // This section is crucial for the throughput of the decompression loop.
-   // The latency of an iteration is fundamentally constrained by the
index 0949b363c5355a6b9a416f7102e8f493e6af0807..edde7f01b3cc98bf3da3a5cb85b1c431a51d59c4 100644 (file)
@@ -6,20 +6,18 @@
 Summary:       Snappy - fast compression/decompression library
 Summary(pl.UTF-8):     Snappy - biblioteka do szybkiej kompresji i dekompresji
 Name:          snappy
-Version:       1.1.9
+Version:       1.1.10
 Release:       1
 License:       BSD
 Group:         Libraries
 #Source0Download: https://github.com/google/snappy/releases
 Source0:       https://github.com/google/snappy/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 213b6324b7790d25f5368629540a172c
+# Source0-md5: 70153395ebe6d72febe2cf2e40026a44
 Source1:       %{name}.pc.in
 Patch0:                %{name}-gtest.patch
-Patch1:                %{name}-inline.patch
 URL:           http://google.github.io/snappy/
 BuildRequires: cmake >= 3.1
-BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:2.0
+BuildRequires: libstdc++-devel >= 6:5
 BuildRequires: pkgconfig
 %if %{with tests}
 BuildRequires: gtest-devel
@@ -101,7 +99,6 @@ Statyczna biblioteka Snappy.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %if %{with static_libs}
@@ -109,6 +106,7 @@ install -d build-static
 cd build-static
 %cmake .. \
        -DBUILD_SHARED_LIBS=OFF \
+       -DCMAKE_CXX_STANDARD=14 \
        -DSNAPPY_BUILD_BENCHMARKS=OFF \
        %{!?with_tests:-DSNAPPY_BUILD_TESTS=OFF}
 
@@ -119,6 +117,7 @@ cd ..
 install -d build
 cd build
 %cmake .. \
+       -DCMAKE_CXX_STANDARD=14 \
        -DSNAPPY_BUILD_BENCHMARKS=OFF \
        %{!?with_tests:-DSNAPPY_BUILD_TESTS=OFF}
 
This page took 0.118639 seconds and 4 git commands to generate.