Accepting request 143644 from home:darix

by request of todd rme <toddrme2178@gmail.com>

OBS-URL: https://build.opensuse.org/request/show/143644
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/snappy?expand=0&rev=1
This commit is contained in:
Marcus Rückert 2012-11-30 10:09:29 +00:00 committed by Git OBS Bridge
commit 31d3f70217
6 changed files with 186 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,12 @@
Index: snappy_unittest.cc
===================================================================
--- snappy_unittest.cc.orig
+++ snappy_unittest.cc
@@ -161,6 +161,7 @@ static size_t MinimumRequiredOutputSpace
default:
LOG(FATAL) << "Unknown compression type number " << comp;
+ return -1;
}
}

3
snappy-1.0.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a2d4afc3752d78996f7a881e4f3648c6358654c5ff618f5d1b6b253984fd607
size 1731382

37
snappy.changes Normal file
View File

@ -0,0 +1,37 @@
-------------------------------------------------------------------
Fri Nov 23 02:19:58 UTC 2012 - mrueckert@suse.de
- update to 1.0.5
* More speed improvements. Exactly how big will depend on
the architecture:
- 310% faster decompression for the base case (x86-64).
- ARMv7 and higher can now use unaligned accesses,
and will see about 30% faster decompression and
2040% faster compression.
- 32-bit platforms (ARM and 32-bit x86) will see 25%
faster compression.
These are all cumulative (e.g., ARM gets all three speedups).
* Fixed an issue where the unit test would crash on system
with less than 256 MB address space available,
e.g. some embedded platforms.
* Added a framing format description, for use over e.g. HTTP,
or for a command-line compressor. We do not have any
implementations of this at the current point, but there seems
to be enough of a general interest in the topic.
Also make the format description slightly clearer.
* Remove some compile-time warnings in -Wall
(mostly signed/unsigned comparisons), for easier embedding
into projects that use -Wall -Werror.
-------------------------------------------------------------------
Wed Feb 8 16:36:29 UTC 2012 - mrueckert@suse.de
- initial package (v1.0.4)

110
snappy.spec Normal file
View File

@ -0,0 +1,110 @@
#
# spec file for package snappy
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: snappy
Version: 1.0.5
Release: 1
#
License: MIT
Group: Development/Libraries/C and C++
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ zlib-devel lzo-devel
#
Url: http://code.google.com/p/snappy/
Source: snappy-%{version}.tar.gz
Patch: snappy-1.0.4_random_return.patch
#
Summary: A fast compressor/decompressor library
%description
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. On a single core of a Core i7 processor
in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about
500 MB/sec or more.
%define lib_name libsnappy1
%package -n %{lib_name}
Group: Development/Libraries/C and C++
#
Summary: Shared library from snappy
%description -n %{lib_name}
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. On a single core of a Core i7 processor
in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about
500 MB/sec or more.
This package holds the shared library of snappy.
%package devel
License: MIT
Group: Development/Libraries/C and C++
Requires: %{lib_name} = %{version}
#
Summary: Development files for snappy
%description devel
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. On a single core of a Core i7 processor
in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about
500 MB/sec or more.
This package holds the development files for snappy.
%prep
%setup
%patch
%build
%configure --with-pic --disable-static --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_flags}
%install
%makeinstall
find %{buildroot} -name \*.la -delete -print
%check
make check
%clean
rm -rf %{buildroot}
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%files -n %{lib_name}
%defattr(-,root,root,-)
%{_libdir}/libsnappy.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/snappy*.h
%{_libdir}/libsnappy.so
%doc %{_defaultdocdir}/%{name}
%changelog