Package init
This commit is contained in:
commit
343320f97d
BIN
v0.13.69.tar.gz
Normal file
BIN
v0.13.69.tar.gz
Normal file
Binary file not shown.
31
zziplib-0.13.69-multilib.patch
Normal file
31
zziplib-0.13.69-multilib.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up ./_builddir/zzip/_config.h.orig ./_builddir/zzip/_config.h
|
||||||
|
--- ./_builddir/zzip/_config.h.orig 2018-07-23 09:11:59.971840954 +0300
|
||||||
|
+++ ./_builddir/zzip/_config.h 2018-07-23 09:12:07.438731527 +0300
|
||||||
|
@@ -139,6 +139,11 @@
|
||||||
|
/* whether the system defaults to 32bit off_t but can do 64bit when requested
|
||||||
|
*/
|
||||||
|
/* #undef LARGEFILE_SENSITIVE */
|
||||||
|
+#if __WORDSIZE == 32
|
||||||
|
+#ifndef ZZIP_LARGEFILE_SENSITIVE
|
||||||
|
+#define ZZIP_LARGEFILE_SENSITIVE 1
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||||
|
#ifndef ZZIP_LT_OBJDIR
|
||||||
|
@@ -197,6 +202,15 @@
|
||||||
|
/* The number of bytes in type short */
|
||||||
|
/* #undef SIZEOF_SHORT */
|
||||||
|
|
||||||
|
+/* The number of bytes in type long */
|
||||||
|
+#ifndef ZZIP_SIZEOF_LONG
|
||||||
|
+#if __WORDSIZE == 32
|
||||||
|
+#define ZZIP_SIZEOF_LONG 4
|
||||||
|
+#elif __WORDSIZE == 64
|
||||||
|
+#define ZZIP_SIZEOF_LONG 8
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#ifndef ZZIP_STDC_HEADERS
|
||||||
|
#define ZZIP_STDC_HEADERS 1
|
||||||
88
zziplib.spec
Normal file
88
zziplib.spec
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
%define disable_rpath \
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool \
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
|
||||||
|
|
||||||
|
Name: zziplib
|
||||||
|
Version: 0.13.69
|
||||||
|
Release: 2
|
||||||
|
Summary: Lightweight library for zip compression
|
||||||
|
License: LGPLv2+ or MPLv1.1
|
||||||
|
URL: http://zziplib.sourceforge.net
|
||||||
|
Source0: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: zziplib-0.13.69-multilib.patch
|
||||||
|
|
||||||
|
BuildRequires: perl-interpreter python2 python2-rpm-macros zip xmlto
|
||||||
|
BuildRequires: zlib-devel SDL-devel pkgconfig autoconf automake
|
||||||
|
|
||||||
|
Provides: zziplib-utils
|
||||||
|
Obsoletes: zziplib-utils
|
||||||
|
|
||||||
|
%description
|
||||||
|
The zziplib is a lightweight library to easily extract data from zip files. Applications
|
||||||
|
can bundle files into a single zip archive and access them. The implementation is based
|
||||||
|
only on the (free) subset of compression with the zlib algorithm which is actually used
|
||||||
|
by the zip/unzip tools.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files and libraries for zziplib development
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig zlib-devel SDL-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the header files and libraries needed to
|
||||||
|
develop programs that use the zziplib compression and decompression
|
||||||
|
library.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Help documentation for the zziplib library
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This package includes help documentation and manuals related to zziplib.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
find . -name '*.py' | xargs sed -i 's@#! /usr/bin/python@#! %__python2@g;s@#! /usr/bin/env python@#! %__python2@g'
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
|
export PYTHON=%__python2
|
||||||
|
%configure --disable-static --enable-sdl --enable-frame-pointer --enable-builddir=_builddir
|
||||||
|
%disable_rpath
|
||||||
|
|
||||||
|
%ifnarch armv7hl
|
||||||
|
cd _builddir
|
||||||
|
%apply_patch %{PATCH0} -p2
|
||||||
|
cd ..
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc docs/COPYING* ChangeLog README TODO
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%doc docs/README.SDL docs/*.htm
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%{_datadir}/aclocal/*.m4
|
||||||
|
%exclude %{_libdir}/*.la
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 12 2019 dongjian <dongjian13@huawei.com> 0.13.36-2
|
||||||
|
- Modification summary
|
||||||
Loading…
x
Reference in New Issue
Block a user