Browse Source

libzip-1.4.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11368 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
da4aa1ebfe
1 changed files with 26 additions and 13 deletions
  1. 26 13
      lib/libz/libzip/libzip-vl.spec

+ 26 - 13
lib/libz/libzip/libzip-vl.spec

@@ -1,16 +1,27 @@
+%define _unpackaged_files_terminate_build 1
+
 Summary:        C library for reading, creating, and modifying zip archives
 Name:           libzip
-Version:        0.9.3
-Release:        2%{?_dist_release}
+Version:        1.4.0
+Release:        1%{?_dist_release}
 
 Group:          System Environment/Libraries
 License:        BSD
-URL:            http://www.nih.at/libzip/index.html
-Source0:        http://www.nih.at/libzip/%{name}-%{version}.tar.bz2
+URL:            https://libzip.org/
+Source0:        https://libzip.org/download/%{name}-%{version}.tar.xz
+
+# allow path customization (lib64)
+Patch0:  libzip-upstream.patch
+# drop RPATH from installed binaries
+Patch1:  libzip-rpath.patch
+# fix multi-lib issue
+Patch2:  libzip-multilib.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 BuildRequires:  zlib-devel >= 1.2.2
+BuildRequires:  bzip2-devel
 BuildRequires:  pkgconfig
+BuildRequires:  cmake
 
 %description
 libzip is a C library for reading, creating, and modifying zip archives. Files
@@ -30,10 +41,10 @@ The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-%configure --disable-static
+%cmake .
 make %{?_smp_mflags}
 
 %install
@@ -51,22 +62,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS NEWS README THANKS TODO
-%{_bindir}/zipcmp
-%{_bindir}/zipmerge
-%{_bindir}/ziptorrent
-%{_libdir}/libzip.so.1*
+%doc LICENSE* AUTHORS* NEWS* README* THANKS* TODO*
+%{_bindir}/*
+%{_libdir}/libzip.so.*
 %{_mandir}/man1/*zip*
 
 %files devel
 %defattr(-,root,root,-)
-%{_includedir}/zip.h
+%{_includedir}/*
 %{_libdir}/libzip.so
 %{_libdir}/pkgconfig/libzip.pc
-%{_mandir}/man3/*zip*
+%{_mandir}/man3/*
 
 
 %changelog
+* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
+- new upstream release.
+- import patches from rawhide.
+
 * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
 - rebuild with rpm-4.8.1 for pkg-config file