Author: qboosh Date: Mon Apr 4 17:05:22 2011 GMT Module: packages Tag: HEAD ---- Log message: - new - link patch to avoid linking the library with other compression libs; only tests use them
---- Files affected: packages/snappy: snappy-link.patch (NONE -> 1.1) (NEW), snappy.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/snappy/snappy-link.patch diff -u /dev/null packages/snappy/snappy-link.patch:1.1 --- /dev/null Mon Apr 4 19:05:22 2011 +++ packages/snappy/snappy-link.patch Mon Apr 4 19:05:17 2011 @@ -0,0 +1,32 @@ +--- snappy-1.0.1/Makefile.am.orig 2011-03-25 00:20:16.000000000 +0100 ++++ snappy-1.0.1/Makefile.am 2011-04-04 18:41:40.079842328 +0200 +@@ -12,7 +12,7 @@ noinst_HEADERS = snappy-internal.h snapp + snappy_unittest_CPPFLAGS = $(gflags_CFLAGS) $(GTEST_CPPFLAGS) + snappy_unittest_SOURCES = snappy_unittest.cc snappy-test.cc + snappy_unittest_LDFLAGS = $(GTEST_LDFLAGS) +-snappy_unittest_LDADD = libsnappy.la $(gflags_LIBS) $(GTEST_LIBS) ++snappy_unittest_LDADD = libsnappy.la $(gflags_LIBS) $(GTEST_LIBS) $(OTHERS_LIBS) + TESTS = snappy_unittest + noinst_PROGRAMS = $(TESTS) + +--- snappy-1.0.1/configure.ac.orig 2011-03-25 00:20:16.000000000 +0100 ++++ snappy-1.0.1/configure.ac 2011-04-04 18:42:55.415849032 +0200 +@@ -79,11 +79,13 @@ fi + + # Other compression libraries; the unit test can use these for comparison + # if they are available. If they are not found, just ignore. +-AC_CHECK_LIB([z], [zlibVersion],, [true]) +-AC_CHECK_LIB([lzo2], [lzo1x_1_15_compress],, [true]) +-AC_CHECK_LIB([lzf], [lzf_compress],, [true]) +-AC_CHECK_LIB([fastlz], [fastlz_compress],, [true]) +-AC_CHECK_LIB([quicklz], [qlz_compress],, [true]) ++OTHERS_LIBS= ++AC_CHECK_LIB([z], [zlibVersion], [OTHERS_LIBS="$OTHERS_LIBS -lz"], [true]) ++AC_CHECK_LIB([lzo2], [lzo1x_1_15_compress], [OTHERS_LIBS="$OTHERS_LIBS -llzo2"], [true]) ++AC_CHECK_LIB([lzf], [lzf_compress], [OTHERS_LIBS="$OTHERS_LIBS -llzf"], [true]) ++AC_CHECK_LIB([fastlz], [fastlz_compress], [OTHERS_LIBS="$OTHERS_LIBS -lfastlz"], [true]) ++AC_CHECK_LIB([quicklz], [qlz_compress], [OTHERS_LIBS="$OTHERS_LIBS -lquicklz"], [true]) ++AC_SUBST([OTHERS_LIBS]) + + # These are used by snappy-stubs-public.h.in. + if test "$ac_cv_header_stdint_h" = "yes"; then ================================================================ Index: packages/snappy/snappy.spec diff -u /dev/null packages/snappy/snappy.spec:1.1 --- /dev/null Mon Apr 4 19:05:22 2011 +++ packages/snappy/snappy.spec Mon Apr 4 19:05:17 2011 @@ -0,0 +1,143 @@ +# $Revision$, $Date$ +Summary: Snappy - fast compression/decompression library +Summary(pl.UTF-8): Snappy - biblioteka do szybkiej kompresji i dekompresji +Name: snappy +Version: 1.0.1 +Release: 1 +License: Apache v2.0 +Group: Libraries +#Source0Download: http://code.google.com/p/snappy/downloads/list +Source0: http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz +# Source0-md5: b3af7263f0481f0c03267bb4117fce3a +Patch0: %{name}-link.patch +URL: http://code.google.com/p/snappy/ +BuildRequires: autoconf >= 2.50 +BuildRequires: automake +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:2.0 +BuildRequires: pkgconfig +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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. + +Snappy has the following properties: +- Fast: Compression speeds at 250 MB/sec and beyond, with no + assembler code. +- Stable: Over the last few years, Snappy has compressed and + decompressed petabytes of data in Google's production environment. + The Snappy bitstream format is stable and will not change between + versions. +- Robust: The Snappy decompressor is designed not to crash in the face + of corrupted or malicious input. +- Free and open source software: Snappy is licensed under the Apache + license, version 2.0. + +Snappy has previously been called "Zippy" in some Google presentations +and the like. + +%description -l pl.UTF-8 +Snappy to biblioteka kompresująca i dekompresująca. Jej celem nie jest +maksymalna kompresja ani kompatybilność z żadną istniejącą biblioteką; +celem natomiast jest bardzo duża szybkość przy rozsądnej kompresji. Na +przykład, w porównaniu do najszybszego trybu zliba, Snappy jest rząd +wielkości szybszy dla większości danych, ale pliki wynikowe są większe +o 20 do 100%. + +Biblioteka Snappy ma następujące cechy: +- jest szybka: potrafi przetwarzać 250 MB/s bez kodu w asemblerze +- jest stabilna: przez ostatnie kilka lat była używana do kompresji i + dekompresji petabajtów danych w środowisku produkcyjnym Google'a; + format strumienia Snappy jest stabilny i nie zmieni się między + wersjami +- jest trwała: dekompresor Snappy został tak zaprojektowany, aby nie + wykładać się na uszkodzonych lub błędnych danych wejściowych +- jest oprogramowaniem wolnodostępnym i z otwartymi źródłami, na + licencji Apache w wersji 2.0. + +Snappy wcześniej (np. na różnych prezentacjach Google'a) był nazywany +"Zippy". + +%package devel +Summary: Header files for Snappy library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Snappy +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libstdc++-devel + +%description devel +Header files for Snappy library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Snappy. + +%package static +Summary: Static Snappy library +Summary(pl.UTF-8): Statyczna biblioteka Snappy +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static Snappy library. + +%description static -l pl.UTF-8 +Statyczna biblioteka Snappy. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# already as %doc +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/snappy + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README +%attr(755,root,root) %{_libdir}/libsnappy.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libsnappy.so.1 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libsnappy.so +%{_libdir}/libsnappy.la +%{_includedir}/snappy*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/libsnappy.a + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/04/04 17:05:17 qboosh +- new +- link patch to avoid linking the library with other compression libs; only tests use them ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
