Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 36667855
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libsnappy

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libsnappy
Version: 1.1.7
Release: alt1
Summary: Google fast compression/decompression library
Group: System/Libraries
License: BSD
Source: snappy-%version.tar.gz
Patch0: FC-gtest.patch
Patch1: FC-version-macros.patch

# Automatically added by buildreq on Wed Apr 17 2019

# optimized out: cmake-modules glibc-kernheaders-generic glibc-kernheaders-x86 libsasl2-3 libstdc++-devel python-base sh4
BuildRequires: cmake gcc-c++ libgflags-devel libgtest-devel liblzo2-devel zlib-devel

BuildRequires: ctest

Snappy is a compression/decompression library. It does not aim for
maximum compression, or compatibility with any other compression
library; instead, it aims for very high speeds and reasonable
compression. For instance, compared to the fastest mode of zlib, Snappy
is an order of magnitude faster for most inputs, but the resulting
compressed files are anywhere from 20%% to 100%% bigger.

%package devel
Summary: Development environment for %name
Group: Development/C++
Requires: %name = %version
%description devel
Development environment for %name

%package devel-static
Summary: Static development environment for %name
Group: Development/C++
%description devel-static
Static development environment for %name

%setup -n snappy-%version
%patch0 -p1
%patch1 -p1

%make_build CXXFLAGS="-DNDEBUG -O2"

# create pkgconfig file

cat << \EOF >snappy.pc

Name: %name
Description: A fast compression/decompression library
Version: %version
Cflags: -I${includedir}
Libs: -L${libdir} -lsnappy

%makeinstall DESTDIR=%buildroot
install -D snappy.pc %buildroot%_libdir/pkgconfig/snappy.pc

LD_LIBRARY_PATH=`pwd` ctest -V %_smp_mflags


%files devel
%doc format_description.txt framing_format.txt


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin