Accepting request 159895 from home:AndreasSchwab:ff

- zziplib-largefile.patch: Enable largefile support
- Enable debug information

OBS-URL: https://build.opensuse.org/request/show/159895
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zziplib?expand=0&rev=15
This commit is contained in:
Ismail Dönmez 2013-03-19 09:04:02 +00:00 committed by Git OBS Bridge
parent 5254f2a807
commit eb27d7fe48
3 changed files with 28 additions and 8 deletions

13
zziplib-largefile.patch Normal file
View File

@ -0,0 +1,13 @@
Index: configure.ac
===================================================================
--- configure.ac.orig
+++ configure.ac
@@ -125,7 +125,7 @@ if test ".$ac_cv_sys_largefile_sensitive
elif test ".$with_largefile" != ".no" ; then
AC_MSG_RESULT(compiles library as 64bit off_t variant dnl
- and renaming some function names)
- LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE"
+ LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_ZZIP_LARGEFILE -D_LARGEFILE_SOURCE"
AC_MSG_RESULT(..adding CFLAGS $LARGEFILE_CFLAGS)
CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
AC_MSG_RESULT(..adding 64 into RELEASE_INFO for the libraries)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Mar 16 21:37:21 UTC 2013 - schwab@linux-m68k.org
- zziplib-largefile.patch: Enable largefile support
- Enable debug information
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 15 18:36:24 UTC 2012 - p.drouand@gmail.com Sat Dec 15 18:36:24 UTC 2012 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package zziplib # spec file for package zziplib
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,25 +16,25 @@
# #
Name: zziplib Name: zziplib
%define lname libzzip-0-13 %define lname libzzip-0-13
Summary: Free Zip Compression Library with an Easy-to-Use API Summary: Free Zip Compression Library with an Easy-to-Use API
Version: 0.13.62
Release: 0
License: LGPL-2.1+ License: LGPL-2.1+
Group: System/Libraries Group: System/Libraries
Version: 0.13.62
Release: 0
Url: http://zziplib.sourceforge.net Url: http://zziplib.sourceforge.net
Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2 Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
Patch: zziplib-0.13.62.patch Patch: zziplib-0.13.62.patch
Patch1: zziplib-0.13.62-wronglinking.patch Patch1: zziplib-0.13.62-wronglinking.patch
Patch2: zziplib-largefile.patch
BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python BuildRequires: python
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: dos2unix
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -52,10 +52,10 @@ ZZipLib is a library for dealing with zip and zip-like archives by
using free algorithms of zlib. using free algorithms of zlib.
%package devel %package devel
License: LGPL-2.1+
Summary: Free zip compression library with easy to use API Summary: Free zip compression library with easy to use API
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version, zlib-devel Requires: %lname = %version
Requires: zlib-devel
%description devel %description devel
That are the header files needed for developing applications using That are the header files needed for developing applications using
@ -65,13 +65,14 @@ ZZipLib.
%setup -q %setup -q
%patch %patch
%patch1 %patch1
%patch2
# Fix wrong encoding # Fix wrong encoding
dos2unix docs/README.MSVC6 dos2unix docs/README.MSVC6
dos2unix docs/sdocbook.css dos2unix docs/sdocbook.css
%build %build
autoreconf -fiv autoreconf -fiv
%configure --enable-largefile --disable-static --with-pic %configure --with-largefile --enable-frame-pointer --disable-static --with-pic
make %{?_smp_mflags} all; make %{?_smp_mflags} all;
make doc; make doc;