commit b2f7b0e43ae87b65fbf45734e24b5b7a6b6f7d6c
Author: Jakub Bogusz <[email protected]>
Date:   Fri Oct 12 19:48:12 2018 +0200

    - added deps patch (fix inter-library dependencies); release 2

 libmspack-deps.patch | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 libmspack.spec       | 13 +++++++++++-
 2 files changed, 69 insertions(+), 1 deletion(-)
---
diff --git a/libmspack.spec b/libmspack.spec
index b7462d0..62a7c96 100644
--- a/libmspack.spec
+++ b/libmspack.spec
@@ -6,13 +6,17 @@ Summary:      A library for Microsoft compression formats
 Summary(pl.UTF-8):     Biblioteka do formatów kompresji używanych przez 
Microsoft
 Name:          libmspack
 Version:       0.7.1alpha
-Release:       1
+Release:       2
 License:       LGPL v2.1
 Group:         Libraries
 Source0:       
https://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz
 # Source0-md5: 4fd625c993fb0dd548d02415dd09b6c0
+Patch0:                %{name}-deps.patch
 URL:           https://www.cabextract.org.uk/libmspack/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
 BuildRequires: gcc >= 5:3.0
+BuildRequires: libtool >= 2:2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %undefine      __cxx
@@ -69,9 +73,16 @@ Microsoftu.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
+       --disable-silent-rules \
        %{!?with_static_libs:--disable-static}
 %{__make}
 
diff --git a/libmspack-deps.patch b/libmspack-deps.patch
new file mode 100644
index 0000000..7c027e4
--- /dev/null
+++ b/libmspack-deps.patch
@@ -0,0 +1,57 @@
+--- libmspack-0.7.1alpha/Makefile.am.orig      2018-08-09 10:29:14.000000000 
+0200
++++ libmspack-0.7.1alpha/Makefile.am   2018-10-12 19:31:46.296437020 +0200
+@@ -60,39 +60,39 @@
+                       mspack/readbits.h mspack/readhuff.h
+ libmschmd_la_LDFLAGS =        -export-symbols-regex '^mspack_'
+ 
+-examples_cabd_memory_SOURCES =        examples/cabd_memory.c libmscabd.la
++examples_cabd_memory_SOURCES =        examples/cabd_memory.c
+ examples_cabd_memory_LDADD =  libmscabd.la
+-examples_multifh_SOURCES =    examples/multifh.c libmscabd.la
++examples_multifh_SOURCES =    examples/multifh.c
+ examples_multifh_LDADD =      libmscabd.la
+ 
+-src_cabrip_SOURCES =          src/cabrip.c libmspack.la
++src_cabrip_SOURCES =          src/cabrip.c
+ src_cabrip_LDADD =            libmspack.la
+-src_chmextract_SOURCES =      src/chmextract.c src/error.h libmspack.la
++src_chmextract_SOURCES =      src/chmextract.c src/error.h
+ src_chmextract_LDADD =                libmspack.la
+-src_msexpand_SOURCES =                src/msexpand.c src/error.h libmspack.la
++src_msexpand_SOURCES =                src/msexpand.c src/error.h
+ src_msexpand_LDADD =          libmspack.la
+-src_oabextract_SOURCES =      src/oabextract.c src/error.h libmspack.la
++src_oabextract_SOURCES =      src/oabextract.c src/error.h
+ src_oabextract_LDADD =                libmspack.la
+ 
+ test_cabd_md5_SOURCES =               test/cabd_md5.c test/md5.c test/md5.h \
+-                              test/md5_fh.h test/error.h libmscabd.la
++                              test/md5_fh.h test/error.h
+ test_cabd_md5_LDADD =         libmscabd.la
+-test_cabd_test_SOURCES=               test/cabd_test.c libmscabd.la
++test_cabd_test_SOURCES=               test/cabd_test.c
+ test_cabd_test_LDADD =                libmscabd.la
+-test_chmd_find_SOURCES =      test/chmd_find.c test/error.h libmschmd.la
++test_chmd_find_SOURCES =      test/chmd_find.c test/error.h
+ test_chmd_find_LDADD =                libmschmd.la
+ test_chmd_md5_SOURCES =               test/chmd_md5.c test/md5.c test/md5.h \
+-                              test/md5_fh.h test/error.h libmschmd.la
++                              test/md5_fh.h test/error.h
+ test_chmd_md5_LDADD =         libmschmd.la
+ test_chmd_order_SOURCES =     test/chmd_order.c test/md5.c test/md5.h \
+-                              test/md5_fh.h test/error.h libmschmd.la
++                              test/md5_fh.h test/error.h
+ test_chmd_order_LDADD =               libmschmd.la
+-test_chmd_test_SOURCES =      test/chmd_test.c libmschmd.la
++test_chmd_test_SOURCES =      test/chmd_test.c
+ test_chmd_test_LDADD =                libmschmd.la
+-test_chmd_test_DEPENDENCIES =         
test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm
+-test_chminfo_SOURCES =                test/chminfo.c libmschmd.la
++test_chmd_test_DEPENDENCIES =         libmschmd.la 
test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm
++test_chminfo_SOURCES =                test/chminfo.c
+ test_chminfo_LDADD =          libmschmd.la
+-test_kwajd_test_SOURCES =     test/kwajd_test.c libmspack.la
++test_kwajd_test_SOURCES =     test/kwajd_test.c
+ test_kwajd_test_LDADD =       libmspack.la
+ 
+ test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm: 
test/test_files/chmd/cve-2015-4467-reset-interval-zero.chm.LZXC-is-lzxc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmspack.git/commitdiff/b2f7b0e43ae87b65fbf45734e24b5b7a6b6f7d6c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to