Hello community, here is the log from the commit of package snappy for openSUSE:Factory checked in at 2018-02-12 10:10:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snappy (Old) and /work/SRC/openSUSE:Factory/.snappy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "snappy" Mon Feb 12 10:10:25 2018 rev:6 rq:574330 version:1.1.7 Changes: -------- --- /work/SRC/openSUSE:Factory/snappy/snappy.changes 2015-08-21 07:35:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.snappy.new/snappy.changes 2018-02-12 10:10:27.883776418 +0100 @@ -1,0 +2,30 @@ +Thu Feb 8 15:00:05 UTC 2018 - [email protected] + +- Better neutrality of from description. Quantify "Core i7". + Trim description of SRPM and -devel as the user already has an + idea what to look for. +- Fix RPM groups. + +------------------------------------------------------------------- +Thu Feb 8 11:23:03 UTC 2018 - [email protected] + +- Version update to 1.1.7: + * Aarch64 fixes + * ppc speedups + * PIE improvements + * Switch to cmake build system +- Add patch snappy-pcfile.patch: + * Pull 55 on upstream github, was dropped when moving to cmake + of course we still need it +- Fix license install wrt bsc#1080040 + +------------------------------------------------------------------- +Sat Apr 15 23:55:17 UTC 2017 - [email protected] + +- Version bump to 1.1.4 + * Fix a 1% performance regression when snappy is used in PIE executables. + * Improve compression performance by 5%. + * Improve decompression performance by 20%. +- Use better download url. + +------------------------------------------------------------------- Old: ---- 1.1.3.tar.gz New: ---- 1.1.7.tar.gz snappy-pcfile.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snappy.spec ++++++ --- /var/tmp/diff_new_pack.brRc8u/_old 2018-02-12 10:10:29.035734903 +0100 +++ /var/tmp/diff_new_pack.brRc8u/_new 2018-02-12 10:10:29.039734759 +0100 @@ -1,7 +1,7 @@ # # spec file for package snappy # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,46 +16,40 @@ # -%define lib_name libsnappy1 +%define libname libsnappy1 Name: snappy -Version: 1.1.3 +Version: 1.1.7 Release: 0 -Summary: A fast compressor/decompressor library +Summary: A compressor/decompressor library favoring time License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/google/snappy/ Source0: https://github.com/google/snappy/archive/%{version}.tar.gz Source99: baselibs.conf -BuildRequires: autoconf -BuildRequires: automake +Patch0: snappy-pcfile.patch +BuildRequires: cmake BuildRequires: gcc-c++ -BuildRequires: libtool BuildRequires: lzo-devel BuildRequires: pkgconfig -BuildRequires: zlib-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(zlib) %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. +aims for high speeds and reasonable compression. -%package -n %{lib_name} +%package -n %{libname} Summary: Shared library from snappy -Group: Development/Libraries/C and C++ +Group: System/Libraries -%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 +%description -n %{libname} +Snappy is a compression/decompression library. It does not aim for maximum +compression, or compatibility with any other compression library; instead, it +aims for 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 1st-generation 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. @@ -63,56 +57,42 @@ %package devel Summary: Development files for snappy Group: Development/Libraries/C and C++ -Requires: %{lib_name} = %{version} +Requires: %{libname} = %{version} %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. +aims for high speeds and reasonable compression. This package holds the development files for snappy. %prep %setup -q +%autopatch -p1 %build -autoreconf -fvi -# mvyskocil: disable assertions to improve a speed a bit in microbenchmarks and hopefully in real-world use as well -# http://code.google.com/p/snappy/issues/detail?id=40 -%configure CXXFLAGS="%{optflags} -DNDEBUG" \ - --with-pic \ - --disable-static \ - --docdir=%{_defaultdocdir}/%{name} - +%cmake make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} -find %{buildroot} -type f -name "*.la" -delete -print -rm %{buildroot}/%{_defaultdocdir}/%{name}/INSTALL +%cmake_install %check -make %{?_smp_mflags} check - -%post -n %{lib_name} -p /sbin/ldconfig +export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +%ctest -%postun -n %{lib_name} -p /sbin/ldconfig +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig -%files -n %{lib_name} -%defattr(-,root,root,-) -%doc %{_defaultdocdir}/%{name}/COPYING +%files -n %{libname} +%license COPYING %{_libdir}/libsnappy.so.* %files devel -%defattr(-,root,root,-) %{_includedir}/snappy*.h %{_libdir}/libsnappy.so -%doc %{_defaultdocdir}/%{name} -%exclude %{_defaultdocdir}/%{name}/COPYING +%dir %{_libdir}/cmake/Snappy/ +%{_libdir}/cmake/Snappy/* +%{_libdir}/pkgconfig/snappy.pc %changelog ++++++ 1.1.3.tar.gz -> 1.1.7.tar.gz ++++++ ++++ 5580 lines of diff (skipped) ++++++ snappy-pcfile.patch ++++++ >From 3c55d5cdf3b037cc2ea3d94642ba18a548c3b091 Mon Sep 17 00:00:00 2001 From: "Robert J. Gebis" <[email protected]> Date: Sat, 26 Aug 2017 11:58:09 -0500 Subject: [PATCH] Added pkg-config file and .gitignore --- .gitignore | 1 + CMakeLists.txt | 14 +++++++++++++- cmake/snappy.pc.in | 10 ++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 cmake/snappy.pc.in Index: snappy-1.1.7/.gitignore =================================================================== --- /dev/null +++ snappy-1.1.7/.gitignore @@ -0,0 +1 @@ +build Index: snappy-1.1.7/CMakeLists.txt =================================================================== --- snappy-1.1.7.orig/CMakeLists.txt +++ snappy-1.1.7/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required(VERSION 3.1) -project(Snappy VERSION 1.1.7 LANGUAGES C CXX) + +set(SNAPPY_VER 1.1.7) + +project(Snappy VERSION ${SNAPPY_VER} LANGUAGES C CXX) # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make # it prominent in the GUI. @@ -52,6 +55,10 @@ configure_file( "${PROJECT_BINARY_DIR}/config.h" ) +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/snappy.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/snappy.pc") + # We don't want to define HAVE_ macros in public headers. Instead, we use # CMake's variable substitution with 0/1 variables, which will be seen by the # preprocessor as constants. @@ -141,6 +148,9 @@ if(SNAPPY_BUILD_TESTS) endif(SNAPPY_BUILD_TESTS) include(GNUInstallDirs) + +set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files") + install(TARGETS snappy EXPORT SnappyTargets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} @@ -172,3 +182,6 @@ install( "${PROJECT_BINARY_DIR}/SnappyConfigVersion.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Snappy" ) + +install(FILES ${PROJECT_BINARY_DIR}/snappy.pc + DESTINATION ${INSTALL_PKGCONFIG_DIR}) Index: snappy-1.1.7/cmake/snappy.pc.in =================================================================== --- /dev/null +++ snappy-1.1.7/cmake/snappy.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=@CMAKE_INSTALL_LIBDIR@ +includedir=@CMAKE_INSTALL_PREFIX@/include + +Name: snappy +Description: Fast compressor/decompressor library. +Version: @SNAPPY_VER@ +Libs: -L@CMAKE_INSTALL_LIBDIR@ -lsnappy +Cflags: -I@CMAKE_INSTALL_PREFIX@/include
