rpms/zziplib/devel zziplib-0.13.49-open.patch, NONE, 1.1 zziplib.spec, 1.11, 1.12

Matthias Saou (thias) fedora-extras-commits at redhat.com
Thu Aug 23 09:36:08 UTC 2007


Author: thias

Update of /cvs/extras/rpms/zziplib/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14851

Modified Files:
	zziplib.spec 
Added Files:
	zziplib-0.13.49-open.patch 
Log Message:
Include patch to fix fd.open calls with recent glibc.


zziplib-0.13.49-open.patch:

--- NEW FILE zziplib-0.13.49-open.patch ---
diff -Naupr zziplib-0.13.49.orig/zzip/file.c zziplib-0.13.49/zzip/file.c
--- zziplib-0.13.49.orig/zzip/file.c	2007-03-18 16:20:12.000000000 +0100
+++ zziplib-0.13.49/zzip/file.c	2007-08-23 11:17:34.000000000 +0200
@@ -713,7 +713,7 @@ zzip_open_shared_io (ZZIP_FILE* stream,
     {   
 	zzip_plugin_io_t os = (o_modes & ZZIP_ALLOWREAL)
 	    ?  zzip_get_default_io () : io;
-	int fd = os->fd.open(filename, o_flags); /* io->fd.open */
+	int fd = (os->fd.open)(filename, o_flags); /* io->fd.open */
         if (fd != -1)
         {
             ZZIP_FILE* fp = calloc (1, sizeof(ZZIP_FILE));
diff -Naupr zziplib-0.13.49.orig/zzip/write.c zziplib-0.13.49/zzip/write.c
--- zziplib-0.13.49.orig/zzip/write.c	2007-03-18 16:22:11.000000000 +0100
+++ zziplib-0.13.49/zzip/write.c	2007-08-23 11:17:46.000000000 +0200
@@ -163,7 +163,7 @@ zzip_dir_creat_ext_io(zzip_char_t* name,
             if (! (exx_len = strlen (*exx)) || exx_len >= MAX_EXT_LEN) break; 
             memcpy (dir->realname+name_len, exx, exx_len); /* append! */
         }____;
-        fd  = io->fd.open (dir->realname, O_CREAT|O_TRUNC|O_WRONLY, o_mode);
+        fd  = (io->fd.open)(dir->realname, O_CREAT|O_TRUNC|O_WRONLY, o_mode);
         dir->realname[name_len] = '\0'; /* keep ummodified */
         if (fd != -1) { dir->fd = fd; return dir; } 
      error:
diff -Naupr zziplib-0.13.49.orig/zzip/zip.c zziplib-0.13.49/zzip/zip.c
--- zziplib-0.13.49.orig/zzip/zip.c	2007-03-18 16:27:49.000000000 +0100
+++ zziplib-0.13.49/zzip/zip.c	2007-08-23 11:17:22.000000000 +0200
@@ -688,7 +688,7 @@ __zzip_try_open(zzip_char_t* filename, i
     for ( ; *ext ; ++ext)
     {
         strcpy (file+len, *ext);
-        fd = io->fd.open(file, filemode);
+        fd = (io->fd.open)(file, filemode);
         if (fd != -1) return fd;
     }
     return -1;
@@ -718,7 +718,7 @@ zzip_dir_open_ext_io(zzip_char_t* filena
     if (! io) io = zzip_get_default_io();
     if (! ext) ext = zzip_get_default_ext();
 
-    fd = io->fd.open(filename, O_RDONLY|O_BINARY);
+    fd = (io->fd.open)(filename, O_RDONLY|O_BINARY);
     if (fd != -1) { 
 	return zzip_dir_fdopen_ext_io(fd, e, ext, io); 
     } else


Index: zziplib.spec
===================================================================
RCS file: /cvs/extras/rpms/zziplib/devel/zziplib.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- zziplib.spec	3 Aug 2007 15:53:39 -0000	1.11
+++ zziplib.spec	23 Aug 2007 09:35:35 -0000	1.12
@@ -1,13 +1,15 @@
 Summary: Lightweight library to easily extract data from zip files
 Name: zziplib
 Version: 0.13.49
-Release: 3%{?dist}
-License: LGPLv2+ or MPL
+Release: 4%{?dist}
+License: LGPLv2+ or MPLv1.1
 Group: Applications/Archiving
 URL: http://zziplib.sourceforge.net/
 Source: http://dl.sf.net/zziplib/zziplib-%{version}.tar.bz2
+Patch0: zziplib-0.13.49-open.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: zlib-devel, zip, python, SDL-devel, xmlto, pkgconfig, automake
+BuildRequires: zlib-devel, zip, python, SDL-devel, xmlto, pkgconfig
+BuildRequires: autoconf, automake
 
 %description
 The zziplib library is intentionally lightweight, it offers the ability to
@@ -50,6 +52,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -60,7 +63,8 @@
 # Remove rpath on 64bit archs
 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
-%{__make} %{?_smp_mflags}
+# Disable _smp_mflags because docs fail to build (as of 0.13.49)
+%{__make}
 
 
 %install
@@ -99,6 +103,10 @@
 
 
 %changelog
+* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-4
+- Include patch to fix fd.open calls with recent glibc.
+- Disable _smp_mflags since the docs fail to build.
+
 * Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-3
 - Update License field.
 




More information about the fedora-extras-commits mailing list