|
@@ -1,16 +1,27 @@
|
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
+
|
|
Summary: C library for reading, creating, and modifying zip archives
|
|
Summary: C library for reading, creating, and modifying zip archives
|
|
Name: libzip
|
|
Name: libzip
|
|
-Version: 0.9.3
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 1.4.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: BSD
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: zlib-devel >= 1.2.2
|
|
BuildRequires: zlib-devel >= 1.2.2
|
|
|
|
+BuildRequires: bzip2-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig
|
|
|
|
+BuildRequires: cmake
|
|
|
|
|
|
%description
|
|
%description
|
|
libzip is a C library for reading, creating, and modifying zip archives. Files
|
|
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}.
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
|
|
|
|
+%autosetup -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --disable-static
|
|
|
|
|
|
+%cmake .
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -51,22 +62,24 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%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*
|
|
%{_mandir}/man1/*zip*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_includedir}/zip.h
|
|
|
|
|
|
+%{_includedir}/*
|
|
%{_libdir}/libzip.so
|
|
%{_libdir}/libzip.so
|
|
%{_libdir}/pkgconfig/libzip.pc
|
|
%{_libdir}/pkgconfig/libzip.pc
|
|
-%{_mandir}/man3/*zip*
|
|
|
|
|
|
+%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* 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
|
|
- rebuild with rpm-4.8.1 for pkg-config file
|
|
|
|
|