[packages/crcutil] add library patch

glen glen at pld-linux.org
Mon Jul 4 09:18:00 CEST 2016


commit 1ccbee031121d1462756a17bcd0dc8054b6fb868
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 4 10:13:36 2016 +0300

    add library patch
    
    https://code.google.com/archive/p/crcutil/issues/4

 crcutil.spec  |  3 ++
 library.patch | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
---
diff --git a/crcutil.spec b/crcutil.spec
index 2289f4e..418839c 100644
--- a/crcutil.spec
+++ b/crcutil.spec
@@ -16,6 +16,7 @@ Patch1:		http://storage.googleapis.com/google-code-attachments/crcutil/issue-9/c
 # Patch1-md5:	6b88d4eeef7e418c1eb6fc0ab729dca2
 Patch2:		http://storage.googleapis.com/google-code-attachments/crcutil/issue-3/comment-0/automake.patch
 # Patch2-md5:	b2c82d3ac05fc206944479aae2e17d8d
+Patch3:		library.patch
 URL:		https://code.google.com/archive/p/crcutil/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -73,8 +74,10 @@ Dokumentacja API biblioteki %{name}.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
diff --git a/library.patch b/library.patch
new file mode 100644
index 0000000..9c38fe1
--- /dev/null
+++ b/library.patch
@@ -0,0 +1,92 @@
+Last-Update: 2014-12-10
+Forwarded: https://code.google.com/p/crcutil/issues/detail?id=4
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: build proper library
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,8 +2,46 @@
+ AM_CFLAGS=$(AM_CXXFLAGS)
++
++lib_LTLIBRARIES = libcrcutil.la
++libcrcutil_la_SOURCES = \
++    code/crc32c_sse4.cc \
++    code/multiword_128_64_gcc_amd64_sse2.cc \
++    code/multiword_64_64_cl_i386_mmx.cc \
++    code/multiword_64_64_gcc_amd64_asm.cc \
++    code/multiword_64_64_gcc_i386_mmx.cc
++
++libcrcutil_la_LDFLAGS = -version-info $(LIBCRCUTIL_SO_VERSION) -no-undefined
++libcrcutil_includedir = $(includedir)/crcutil
++libcrcutil_include_HEADERS = \
++    code/base_types.h \
++    code/crc32c_sse4.h \
++    code/crc32c_sse4_intrin.h \
++    code/crc_casts.h \
++    code/generic_crc.h \
++    code/gf_util.h \
++    code/platform.h \
++    code/protected_crc.h \
++    code/rolling_crc.h \
++    code/std_headers.h \
++    code/uint128_sse2.h
++
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = libcrcutil.pc
++
+ check_PROGRAMS=crcutil_ut
+ TESTS=crcutil_ut
+-crcutil_ut_SOURCES=code/base_types.h code/crc32c_sse4.cc code/crc32c_sse4.h code/crc32c_sse4_intrin.h code/crc_casts.h code/generic_crc.h code/gf_util.h code/multiword_128_64_gcc_amd64_sse2.cc code/multiword_64_64_cl_i386_mmx.cc code/multiword_64_64_gcc_amd64_asm.cc code/multiword_64_64_gcc_i386_mmx.cc code/platform.h code/protected_crc.h code/rolling_crc.h code/std_headers.h code/uint128_sse2.h tests/aligned_alloc.h tests/bob_jenkins_rng.h tests/rdtsc.h tests/set_hi_pri.c tests/unittest.cc tests/unittest.h tests/unittest_helper.h 
++crcutil_ut_SOURCES = \
++    tests/aligned_alloc.h \
++    tests/bob_jenkins_rng.h \
++    tests/rdtsc.h \
++    tests/set_hi_pri.c \
++    tests/unittest.cc \
++    tests/unittest.h \
++    tests/unittest_helper.h
++
++crcutil_ut_LDADD = libcrcutil.la
++
+ tmpdir=/tmp
+ tmp_PROGRAMS=usage
++usage_LDADD=libcrcutil.la
+ usage_CXXFLAGS=$(AM_CXXFLAGS) -Itests
+-usage_SOURCES=code/base_types.h code/crc32c_sse4.cc code/crc32c_sse4.h code/crc32c_sse4_intrin.h code/crc_casts.h code/generic_crc.h code/gf_util.h code/multiword_128_64_gcc_amd64_sse2.cc code/multiword_64_64_cl_i386_mmx.cc code/multiword_64_64_gcc_amd64_asm.cc code/multiword_64_64_gcc_i386_mmx.cc code/platform.h code/protected_crc.h code/rolling_crc.h code/std_headers.h code/uint128_sse2.h examples/interface.cc examples/interface.h examples/usage.cc tests/aligned_alloc.h 
++usage_SOURCES = examples/interface.cc examples/interface.h examples/usage.cc
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,13 +3,19 @@
+ 
+ AC_PREREQ([2.65])
+ AC_INIT([crcutil], [1.0], [crcutil at googlegroups.com], [crcutil])
+ AM_INIT_AUTOMAKE([subdir-objects serial-tests])
+-AC_CONFIG_FILES([Makefile]) 
++AC_CONFIG_FILES([Makefile
++    libcrcutil.pc:libcrcutil.pc.in
++])
+ AC_OUTPUT()
+ AC_CONFIG_SRCDIR([tests/aligned_alloc.h])
+ AC_CONFIG_HEADERS([config.h])
+ 
++# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
++AC_SUBST([LIBCRCUTIL_SO_VERSION], [0:1:0])
++LT_INIT([])
++
+ # Checks for programs.
+ AC_PROG_CXX
+ AC_PROG_CC
+ AC_PROG_INSTALL
+--- /dev/null
++++ b/libcrcutil.pc.in
+@@ -0,0 +1,10 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@/crcutil
++
++Name: @PACKAGE_NAME@
++Description: library for cyclic redundancy check (CRC) computation.
++Version: @PACKAGE_VERSION@
++Libs: -L${libdir} -lcrcutil
++Cflags: -I${includedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crcutil.git/commitdiff/6c003d1735b5c9336d0f2236db8af25ced5ab0ff



More information about the pld-cvs-commit mailing list