[heads up] - libzip soname change in rawhide coming soon.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I plan to update libzip to 1.0.1 in rawhide.

Soname change from .2 to .4 but source compatibility seems good
(deprecated functions are still available)

I will first run a set of test build.

As libzip is in critical path, and as I don't want to break buildroot,
I will probably copy old soname from the current build, then rebuild
all dependent packages, then drop the hack.


Remi.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlVI4IgACgkQYUppBSnxahh8gQCg2A7Drgr4czkmFQ5uBcwQXjpJ
cOsAoLJuVSDSsC9S5tkP1cru52Rwzj9Q
=ZBqd
-----END PGP SIGNATURE-----
diff --git a/libzip.spec b/libzip.spec
index 5c56bda..e690fe9 100644
--- a/libzip.spec
+++ b/libzip.spec
@@ -1,25 +1,22 @@
 
-%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
+%global multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
+%global with_tests     %{?_without_tests:0}%{!?_without_tests:1}
 
 Name:    libzip
-Version: 0.11.2
-Release: 5%{?dist}
+Version: 1.0.1
+Release: 1%{?dist}
 Summary: C library for reading, creating, and modifying zip archives
 
 License: BSD
 URL:     http://www.nih.at/libzip/index.html
 Source0: http://www.nih.at/libzip/libzip-%{version}.tar.xz
-
-# https://bugzilla.redhat.com/show_bug.cgi?id=1204677
-# http://hg.nih.at/libzip/raw-rev/9f11d54f692e
-Patch1: libzip-0.11.2-CVE-2015-2331.patch
-
-#BuildRequires:  automake libtool
-BuildRequires:  zlib-devel
-
 # to handle multiarch headers, ex from mysql-devel package
 Source1: zipconf.h
 
+BuildRequires:  zlib-devel
+# TODO remove this - Hack to not break builroot
+BuildRequires:  libzip
+
 
 %description
 libzip is a C library for reading, creating, and modifying zip archives. Files
@@ -27,14 +24,26 @@ 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
-Summary: Development files for %{name}
+Summary:  Development files for %{name}
 Requires: %{name}%{?_isa} = %{version}-%{release}
+
 %description devel
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 
+%package utils
+Summary:  Command line tools from %{libname}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description utils
+The %{name}-utils package provides command line tools split off %{name}:
+- zipcmp
+- zipmerge
+
+
 %prep
 %autosetup -p1
 
@@ -70,33 +79,55 @@ ln -s ../%{_lib}/libzip/include/zipconf.h \
       %{buildroot}%{_includedir}/zipconf.h
 %endif
 
+# TODO remove this - Hack to not break builroot
+cp -p %{_libdir}/libzip.so.2.1.0 %{buildroot}%{_libdir}
+ln -s libzip.so.2.1.0 %{buildroot}%{_libdir}/libzip.so.2
+
 
 %check
+%if %{with_tests}
 make check
+%else
+: Test suite disabled
+%endif
 
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+
 %files
-%doc API-CHANGES AUTHORS LICENSE NEWS README THANKS TODO
+%license LICENSE
+%{_libdir}/libzip.so.4*
+# TODO remove this - Hack to not break builroot
+%{_libdir}/libzip.so.2*
+
+%files utils
+%defattr(-,root,root,-)
 %{_bindir}/zipcmp
 %{_bindir}/zipmerge
-%{_bindir}/ziptorrent
-%{_libdir}/libzip.so.2*
-%{_mandir}/man1/*zip*
+%{_mandir}/man1/zip*
 
 %files devel
+%doc API-CHANGES AUTHORS NEWS README THANKS TODO
 %{_includedir}/zip.h
 %{_includedir}/zipconf*.h
 %dir %{_libdir}/libzip
 %{_libdir}/libzip/include
 %{_libdir}/libzip.so
 %{_libdir}/pkgconfig/libzip.pc
-%{_mandir}/man3/*zip*
+%{_mandir}/man3/libzip*
+%{_mandir}/man3/zip*
+%{_mandir}/man3/ZIP*
 
 
 %changelog
+* Tue May  5 2015 Remi Collet <remi@xxxxxxxxxxxxxxxxx> - 1.0.1-1
+- update to 1.0.1
+- soname bump from .2 to .4
+- drop ziptorrent
+- create "utils" sub package
+
 * Mon Mar 23 2015 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> 0.11.2-5
 - actually apply patch (using %%autosetup)
 
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux