Hello community,

here is the log from the commit of package libzip for openSUSE:Factory
checked in at Tue Mar 22 10:29:50 CET 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/libzip/libzip.changes  2011-03-21 
16:24:41.000000000 +0100
@@ -0,0 +1,38 @@
+-------------------------------------------------------------------
+Mon Mar 21 10:01:42 UTC 2011 - mvysko...@suse.cz
+
+- update to 0.10 - rename to libzip to avoid source package rename on
+  each soname change. Package libzip deprecate libzip-utils
+  * add zip_get_num_files(), deprecate zip_get_num_entries().
+  * support for traditional PKWARE encryption added.
+  * fix opening archives with more than 65535 entries.
+  * fix some memory leaks.
+  * fix cmake build and installation
+  * fix memory leak in error case in zip_open()
+  * fix CVE-2011-0421 (no security implications though) (bnc#681193)
+  * more documentation.
+- refresh libzip-0.8.hg20080403-visibility.patch
+- add libzip.test.diff from upstream fixing failed tests
+- add libzip-0.10-zipconf-location.patch installs zipconf.h to includedir
+- add pkg-config to BuildRequires
+
+-------------------------------------------------------------------
+Sun Jul 27 06:25:54 CEST 2008 - crrodrig...@suse.de
+
+- update to version 0.9
+  * remove erroneous references to GPL
+  * add support for torrentzip
+  * new functions: zip_get_archive_flag, zip_set_archive_flag
+  * zip_source_zip: add flag to force recompression
+  * zip_sorce_file: only keep file open while reading from it 
+
+-------------------------------------------------------------------
+Thu Apr  3 20:11:56 CEST 2008 - crrodrig...@suse.de
+
+- initial version for openSUSE 11, needed by ARK/KDE4 
+
+-------------------------------------------------------------------
+Thu Jun  7 09:13:37 UTC 2007 - judas_iscari...@shorewall.net
+
+- update to stable 0.8 version 
+

calling whatdependson for head-i586


New:
----
  libzip-0.10-zipconf-location.patch
  libzip-0.10.tar.bz2
  libzip-0.8.hg20080403-visibility.patch
  libzip.changes
  libzip.spec
  libzip.test.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libzip.spec ++++++
#
# spec file for package libzip
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libzip
Version:        0.10
Release:        1
Summary:        C library for reading, creating, and modifying zip archives
License:        BSD3c
Group:          Development/Libraries/C and C++
Source0:        http://www.nih.at/libzip/%{name}-%{version}.tar.bz2
Url:            http://www.nih.at/libzip
BuildRequires:  zlib-devel
BuildRequires:  pkg-config
Provides:       libzip-util = %{version}
Obsoletes:      libzip-util < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         libzip-0.8.hg20080403-visibility.patch
#PATCH-FIX-UPSTREAM: for for failing tests by Thomas Klausner
Patch1:         libzip.test.diff
#PATCH-FIX-OPENSUSE: install zipconf.h to includedir
Patch2:         libzip-0.10-zipconf-location.patch

%description
libzip is a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed. This
package contains a set of small utilities built using libzip2 Set os small
utilities built around %{name}
 * zipmerge - merge source zip archives into the target one
 * zipcmp - compares the zip archives and check if they contains same files
 * ziptorrent - manipulate with a restricted file format used for using 
bittorrent on zip files.

%package -n libzip2
License:        BSD3c
Summary:        C library for reading, creating, and modifying zip archives
Group:          Development/Libraries/C and C++

%description -n libzip2
This is libzip, a C library for reading, creating, and modifying zip
archives.  Files can be added from data buffers, files, or compressed
data copied directly from other zip archives.  Changes made without
closing the archive can be reverted.  The API is documented by man
pages.

%package devel
License:        BSD3c
Summary:        C library for reading, creating, and modifying zip archives
Group:          Development/Libraries/C and C++
Requires:       libzip1 = %{version} glibc-devel

%description devel
libzip is a C library for reading, creating, and modifying zip
archives. This package contains devel files.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fiv
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%check
export MALLOC_CHECK_=2
%{__make} --debug=j %{?jobs:-j%jobs} check
unset MALLOC_CHECK_

%install
%{__make} install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/libzip.la

%clean
rm -rf %{buildroot}

%post -n libzip2 -p /sbin/ldconfig

%postun -n libzip2 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README THANKS TODO
%{_bindir}/ziptorrent
%{_bindir}/zipcmp
%{_bindir}/zipmerge
%{_mandir}/man1/*.1*

%files -n libzip2
%defattr(-,root,root)
%{_libdir}/libzip.so.2*

%files devel
%defattr(-,root,root)
%{_libdir}/libzip.so
%{_includedir}/zip*.h
%{_libdir}/pkgconfig/libzip.pc
%{_mandir}/man3/*.3*

%changelog
++++++ libzip-0.10-zipconf-location.patch ++++++
Index: libzip-0.10/lib/Makefile.am
===================================================================
--- libzip-0.10.orig/lib/Makefile.am    2011-03-18 13:51:24.000000000 +0100
+++ libzip-0.10/lib/Makefile.am 2011-03-21 15:21:13.837759964 +0100
@@ -1,4 +1,4 @@
-libincludedir = ${libdir}/@PACKAGE@/include
+libincludedir = ${includedir}
 
 lib_LTLIBRARIES = libzip.la
 noinst_HEADERS = zipint.h
Index: libzip-0.10/lib/Makefile.in
===================================================================
--- libzip-0.10.orig/lib/Makefile.in    2011-03-18 13:51:26.000000000 +0100
+++ libzip-0.10/lib/Makefile.in 2011-03-21 15:22:02.202638002 +0100
@@ -237,7 +237,7 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-libincludedir = ${libdir}/@PACKAGE@/include
+libincludedir = @includedir@
 lib_LTLIBRARIES = libzip.la
 noinst_HEADERS = zipint.h
 include_HEADERS = zip.h
++++++ libzip-0.8.hg20080403-visibility.patch ++++++
Index: libzip-0.10/configure.ac
===================================================================
--- libzip-0.10.orig/configure.ac       2011-03-18 12:37:29.000000000 +0100
+++ libzip-0.10/configure.ac    2011-03-21 13:46:34.674834029 +0100
@@ -38,6 +38,35 @@
     AC_MSG_ERROR([ZLIB version too old, please install at least v1.1.2])
 fi
 
+AC_CACHE_CHECK(for visibility(hidden) attribute,
+        ac_cv_visibility_hidden,
+        [cat > conftest.c <<EOF
+        int foo __attribute__ ((visibility ("hidden"))) = 1;
+EOF
+        ac_cv_visibility_hidden=no
+        if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
+            if grep '\.hidden.*foo' conftest.s >/dev/null; then
+                ac_cv_visibility_hidden=yes
+            fi
+        fi
+        rm -f conftest.[cs]
+        ])
+
+    if test "$ac_cv_visibility_hidden" = "yes"; then
+               CFLAGS="$CFLAGS -DHAVE_GCCVISIBILITYPATCH=1 -fvisibility=hidden"
+       fi
+
+
+
+
+
+
+
+
+
+
+
+
 AC_EXEEXT
 
 AM_PROG_LIBTOOL
Index: libzip-0.10/lib/zip.h
===================================================================
--- libzip-0.10.orig/lib/zip.h  2011-03-04 18:17:43.000000000 +0100
+++ libzip-0.10/lib/zip.h       2011-03-21 13:48:52.466190330 +0100
@@ -34,14 +34,19 @@
   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-
 
-#ifndef ZIP_EXTERN
 #ifdef _WIN32
-#define ZIP_EXTERN __declspec(dllimport)
+  #ifdef BUILDING_DLL
+    #define ZIP_EXTERN __declspec(dllexport)
+  #else
+    #define ZIP_EXTERN __declspec(dllimport)
+  #endif
 #else
-#define ZIP_EXTERN
-#endif
+  #ifdef HAVE_GCCVISIBILITYPATCH
+    #define ZIP_EXTERN  __attribute__ ((visibility("default")))
+  #else
+    #define ZIP_EXTERN
+  #endif
 #endif
 
 #ifdef __cplusplus
++++++ libzip.test.diff ++++++
diff -r 6c57f552da7a regress/open_new_but_exists.test
--- a/regress/open_new_but_exists.test  Mon Mar 21 14:22:51 2011 +0100
+++ b/regress/open_new_but_exists.test  Mon Mar 21 15:18:46 2011 +0100
@@ -3,4 +3,4 @@
 args -e test.zip
 return 1
 file test.zip test.zip test.zip
-stdout opening `test.zip' returned error 10/0
+stdout opening `test.zip' returned error 10
diff -r 6c57f552da7a regress/open_nonarchive.test
--- a/regress/open_nonarchive.test      Mon Mar 21 14:22:51 2011 +0100
+++ b/regress/open_nonarchive.test      Mon Mar 21 15:18:46 2011 +0100
@@ -3,4 +3,4 @@
 file Makefile.am Makefile.am Makefile.am
 args Makefile.am
 return 1
-stdout opening `Makefile.am' returned error 19/2
+stdout opening `Makefile.am' returned error 19
diff -r 6c57f552da7a regress/tryopen.c
--- a/regress/tryopen.c Mon Mar 21 14:22:51 2011 +0100
+++ b/regress/tryopen.c Mon Mar 21 15:18:46 2011 +0100
@@ -90,7 +90,9 @@
        return 0;
     }
 
-    printf("opening `%s' returned error %d/%d\n",
-          fname, ze, errno);
+    printf("opening `%s' returned error %d", fname, ze);
+    if (zip_error_get_sys_type(ze) == ZIP_ET_SYS)
+       printf("/%d", errno);
+    printf("\n");
     return 1;
 }

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to