summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2016-12-19 18:37:42 (GMT)
committerJakub Bogusz2016-12-19 18:37:42 (GMT)
commit17fb1491feea2d33c271b7ae1aba6e5bd19a9b76 (patch)
tree2dd47cc3bb1b45e22676e497130fa09e719d6e4a
parentc71f9263d9a3417b27d8d2861c6bc92b774fd1cc (diff)
downloadadvancecomp-17fb1491feea2d33c271b7ae1aba6e5bd19a9b76.zip
advancecomp-17fb1491feea2d33c271b7ae1aba6e5bd19a9b76.tar.gz
- updated to 1.23 (GPL v3 now)auto/th/advancecomp-1.23-1
- added system-libs patch (use system libdeflate and zopfli)
-rw-r--r--advancecomp-system-libs.patch98
-rw-r--r--advancecomp.spec16
2 files changed, 111 insertions, 3 deletions
diff --git a/advancecomp-system-libs.patch b/advancecomp-system-libs.patch
new file mode 100644
index 0000000..3273922
--- /dev/null
+++ b/advancecomp-system-libs.patch
@@ -0,0 +1,98 @@
+--- advancecomp-1.23/Makefile.am.orig 2016-11-21 18:28:02.000000000 +0100
++++ advancecomp-1.23/Makefile.am 2016-12-18 22:10:03.761097301 +0100
+@@ -21,32 +21,9 @@
+ 7z/WindowIn.cc \
+ 7z/WindowOut.cc
+
+-libdeflate_SOURCES = \
+- libdeflate/adler32.c \
+- libdeflate/aligned_malloc.c \
+- libdeflate/crc32.c \
+- libdeflate/deflate_compress.c \
+- libdeflate/deflate_decompress.c \
+- libdeflate/gzip_compress.c \
+- libdeflate/gzip_decompress.c \
+- libdeflate/x86_cpu_features.c \
+- libdeflate/zlib_compress.c \
+- libdeflate/zlib_decompress.c
+-
+-zopfli_SOURCES = \
+- zopfli/blocksplitter.c \
+- zopfli/cache.c \
+- zopfli/deflate.c \
+- zopfli/gzip_container.c \
+- zopfli/hash.c \
+- zopfli/katajainen.c \
+- zopfli/lz77.c \
+- zopfli/squeeze.c \
+- zopfli/tree.c \
+- zopfli/util.c \
+- zopfli/zlib_container.c \
+- zopfli/zopfli.h \
+- zopfli/zopfli_lib.c
++libdeflate_LIBS = -ldeflate
++zopfli_LIBS = -lzopfli
++LDADD = $(libdeflate_LIBS) $(zopfli_LIBS)
+
+ advzip_SOURCES = \
+ rezip.cc \
+@@ -58,9 +35,7 @@
+ zipsh.cc \
+ getopt.c \
+ snprintf.c \
+- $(7z_SOURCES) \
+- $(libdeflate_SOURCES) \
+- $(zopfli_SOURCES)
++ $(7z_SOURCES)
+
+ advpng_SOURCES = \
+ repng.cc \
+@@ -75,9 +50,7 @@
+ lib/png.c \
+ lib/error.c \
+ lib/snstring.c \
+- $(7z_SOURCES) \
+- $(libdeflate_SOURCES) \
+- $(zopfli_SOURCES)
++ $(7z_SOURCES)
+
+ advmng_SOURCES = \
+ remng.cc \
+@@ -95,9 +68,7 @@
+ lib/mng.c \
+ lib/error.c \
+ lib/snstring.c \
+- $(7z_SOURCES) \
+- $(libdeflate_SOURCES) \
+- $(zopfli_SOURCES)
++ $(7z_SOURCES)
+
+ advdef_SOURCES = \
+ redef.cc \
+@@ -113,9 +84,7 @@
+ lib/snstring.c \
+ lib/png.c \
+ lib/mng.c \
+- $(7z_SOURCES) \
+- $(libdeflate_SOURCES) \
+- $(zopfli_SOURCES)
++ $(7z_SOURCES)
+
+ EXTRA_DIST = \
+ README AUTHORS HISTORY INSTALL COPYING \
+--- advancecomp-1.23/compress.h.orig 2016-09-26 22:04:03.000000000 +0200
++++ advancecomp-1.23/compress.h 2016-12-18 22:11:26.444429691 +0100
+@@ -24,11 +24,11 @@
+ #include "7z/7z.h"
+
+ extern "C" {
+-#include "libdeflate/libdeflate.h"
++#include <libdeflate.h>
+ }
+
+ extern "C" {
+-#include "zopfli/zopfli.h"
++#include <zopfli.h>
+ }
+
+ #if USE_BZIP2
diff --git a/advancecomp.spec b/advancecomp.spec
index 92ccfbe..05f4359 100644
--- a/advancecomp.spec
+++ b/advancecomp.spec
@@ -5,16 +5,21 @@
Summary: Recompression utilities for .ZIP archives, .PNG snapshots, .MNG video clips and .gz files
Summary(pl.UTF-8): Narzędzia rekompresujące pliki ZIP, PNG, MNG, gz
Name: advancecomp
-Version: 1.15
+Version: 1.23
Release: 1
-License: GPL v2+
+License: GPL v3+
Group: Applications/File
Source0: http://downloads.sourceforge.net/advancemame/%{name}-%{version}.tar.gz
-# Source0-md5: bb236d8bee6fa473d34108cda1e09076
+# Source0-md5: 39a205f0ba1baa26550fccc6405a6b45
+Patch0: %{name}-system-libs.patch
URL: http://advancemame.sourceforge.net/comp-readme.html
+BuildRequires: autoconf >= 2.65
+BuildRequires: automake
%{?with_bzip2:BuildRequires: bzip2-devel}
+BuildRequires: libdeflate-devel
BuildRequires: libstdc++-devel
BuildRequires: zlib-devel
+BuildRequires: zopfli-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -43,8 +48,13 @@ Głównymi cechami są:
%prep
%setup -q
+%patch0 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
%{?with_bzip2:--enable-bzip2}
%{__make}