[11368] | 1 | %define _unpackaged_files_terminate_build 1 |
---|
| 2 | |
---|
[521] | 3 | Summary: C library for reading, creating, and modifying zip archives |
---|
| 4 | Name: libzip |
---|
[11368] | 5 | Version: 1.4.0 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[521] | 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: BSD |
---|
[11368] | 10 | URL: https://libzip.org/ |
---|
| 11 | Source0: https://libzip.org/download/%{name}-%{version}.tar.xz |
---|
[521] | 12 | |
---|
[11368] | 13 | # allow path customization (lib64) |
---|
| 14 | Patch0: libzip-upstream.patch |
---|
| 15 | # drop RPATH from installed binaries |
---|
| 16 | Patch1: libzip-rpath.patch |
---|
| 17 | # fix multi-lib issue |
---|
| 18 | Patch2: libzip-multilib.patch |
---|
| 19 | |
---|
[521] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | BuildRequires: zlib-devel >= 1.2.2 |
---|
[11368] | 22 | BuildRequires: bzip2-devel |
---|
[521] | 23 | BuildRequires: pkgconfig |
---|
[11368] | 24 | BuildRequires: cmake |
---|
[521] | 25 | |
---|
| 26 | %description |
---|
| 27 | libzip is a C library for reading, creating, and modifying zip archives. Files |
---|
| 28 | can be added from data buffers, files, or compressed data copied directly from |
---|
| 29 | other zip archives. Changes made without closing the archive can be reverted. |
---|
| 30 | The API is documented by man pages. |
---|
| 31 | |
---|
| 32 | %package devel |
---|
| 33 | Summary: Development files for %{name} |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: %{name} = %{version}-%{release} |
---|
| 36 | Requires: pkgconfig |
---|
| 37 | Requires: zlib-devel |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | The %{name}-devel package contains libraries and header files for |
---|
| 41 | developing applications that use %{name}. |
---|
| 42 | |
---|
| 43 | %prep |
---|
[11368] | 44 | %autosetup -p1 |
---|
[521] | 45 | |
---|
| 46 | %build |
---|
[11368] | 47 | %cmake . |
---|
[521] | 48 | make %{?_smp_mflags} |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
| 53 | |
---|
| 54 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 55 | |
---|
| 56 | %clean |
---|
| 57 | rm -rf $RPM_BUILD_ROOT |
---|
| 58 | |
---|
| 59 | %post -p /sbin/ldconfig |
---|
| 60 | |
---|
| 61 | %postun -p /sbin/ldconfig |
---|
| 62 | |
---|
| 63 | %files |
---|
| 64 | %defattr(-,root,root,-) |
---|
[11368] | 65 | %doc LICENSE* AUTHORS* NEWS* README* THANKS* TODO* |
---|
| 66 | %{_bindir}/* |
---|
| 67 | %{_libdir}/libzip.so.* |
---|
[521] | 68 | %{_mandir}/man1/*zip* |
---|
| 69 | |
---|
| 70 | %files devel |
---|
| 71 | %defattr(-,root,root,-) |
---|
[11368] | 72 | %{_includedir}/* |
---|
[521] | 73 | %{_libdir}/libzip.so |
---|
| 74 | %{_libdir}/pkgconfig/libzip.pc |
---|
[11368] | 75 | %{_mandir}/man3/* |
---|
[521] | 76 | |
---|
| 77 | |
---|
| 78 | %changelog |
---|
[11368] | 79 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1 |
---|
| 80 | - new upstream release. |
---|
| 81 | - import patches from rawhide. |
---|
| 82 | |
---|
[1901] | 83 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2 |
---|
| 84 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 85 | |
---|
[521] | 86 | * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1 |
---|
| 87 | - new upstream release |
---|
| 88 | - built with new toolchain |
---|
| 89 | |
---|
| 90 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5 |
---|
| 91 | - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package |
---|
| 92 | |
---|
| 93 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4 |
---|
| 94 | - Initial build for Vine Linux |
---|
| 95 | |
---|
| 96 | * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1 |
---|
| 97 | - initial release |
---|
| 98 | |
---|