parent
f941154bae
commit
dc3caadf0a
@ -0,0 +1 @@
|
||||
/zlib-1.2.11.tar.xz
|
@ -0,0 +1,84 @@
|
||||
Name: minizip1.2
|
||||
Summary: Library for manipulation with .zip archives
|
||||
Version: 1.2.11
|
||||
Release: 23
|
||||
License: zlib
|
||||
URL: http://www.zlib.net/
|
||||
Source: http://www.zlib.net/zlib-%{version}.tar.xz
|
||||
# https://github.com/madler/zlib/pull/210
|
||||
Patch0: zlib-1.2.5-minizip-fixuncrypt.patch
|
||||
BuildRequires: autoconf, automake, libtool
|
||||
BuildRequires: zlib-devel >= %{version}
|
||||
BuildRequires: gcc
|
||||
Provides: minizip-compat = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Minizip is a library for manipulation with files from .zip archives.
|
||||
This package contains the old minizip API, as bundled with zlib.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the minizip library
|
||||
Requires: minizip1.2%{?_isa} = %{version}-%{release}
|
||||
Requires: zlib-devel%{?_isa} >= %{version}
|
||||
Conflicts: minizip-devel
|
||||
Provides: minizip-compat-devel = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the libraries and header files needed for
|
||||
developing applications which use the old minizip API.
|
||||
|
||||
%prep
|
||||
%setup -q -n zlib-%{version}
|
||||
%patch0 -p1 -b .fixuncrypt
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
%ifarch ppc64
|
||||
CFLAGS+=" -O3"
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
CFLAGS+=" -DARM_NEON -O3"
|
||||
%endif
|
||||
%ifarch s390 s390x
|
||||
CFLAGS+=" -DDFLTCC"
|
||||
%endif
|
||||
|
||||
export MKFLAGS=""
|
||||
%ifarch s390 s390x
|
||||
MKFLAGS+="OBJA=dfltcc.o PIC_OBJA=dfltcc.lo"
|
||||
%endif
|
||||
|
||||
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
|
||||
|
||||
cd contrib/minizip
|
||||
autoreconf --install
|
||||
%configure --enable-static=no
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install -C contrib/minizip
|
||||
# https://github.com/madler/zlib/pull/229
|
||||
rm $RPM_BUILD_ROOT%_includedir/minizip/crypt.h
|
||||
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
|
||||
%files
|
||||
%license README
|
||||
%doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
|
||||
%{_libdir}/libminizip.so.*
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/minizip
|
||||
%{_includedir}/minizip/*.h
|
||||
%{_libdir}/libminizip.so
|
||||
%{_libdir}/pkgconfig/minizip.pc
|
||||
|
||||
%changelog
|
||||
* Wed Nov 6 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-23
|
||||
- add BR: gcc
|
||||
|
||||
* Tue Nov 5 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-22
|
||||
- rename to minizip1.2, add provides for minizip-compat naming
|
||||
|
||||
* Fri Nov 1 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-21
|
||||
- standalone minizip-compat package for epel8
|
@ -0,0 +1 @@
|
||||
SHA512 (zlib-1.2.11.tar.xz) = b7f50ada138c7f93eb7eb1631efccd1d9f03a5e77b6c13c8b757017b2d462e19d2d3e01c50fad60a4ae1bc86d431f6f94c72c11ff410c25121e571953017cb67
|
@ -0,0 +1,14 @@
|
||||
diff -up zlib-1.2.5/contrib/minizip/unzip.c.fixuncrypt zlib-1.2.5/contrib/minizip/unzip.c
|
||||
--- zlib-1.2.5/contrib/minizip/unzip.c.fixuncrypt 2011-11-11 12:13:56.335867758 -0500
|
||||
+++ zlib-1.2.5/contrib/minizip/unzip.c 2011-11-11 12:14:01.747799372 -0500
|
||||
@@ -68,10 +68,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
-#ifndef NOUNCRYPT
|
||||
- #define NOUNCRYPT
|
||||
-#endif
|
||||
-
|
||||
#include "zlib.h"
|
||||
#include "unzip.h"
|
||||
|
Loading…
Reference in new issue