| 1 | Summary: C library for reading, creating, and modifying zip archives |
|---|
| 2 | Name: libzip |
|---|
| 3 | Version: 0.9.3 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: BSD |
|---|
| 8 | URL: http://www.nih.at/libzip/index.html |
|---|
| 9 | Source0: http://www.nih.at/libzip/%{name}-%{version}.tar.bz2 |
|---|
| 10 | |
|---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 12 | BuildRequires: zlib-devel >= 1.2.2 |
|---|
| 13 | BuildRequires: pkgconfig |
|---|
| 14 | |
|---|
| 15 | %description |
|---|
| 16 | libzip is a C library for reading, creating, and modifying zip archives. Files |
|---|
| 17 | can be added from data buffers, files, or compressed data copied directly from |
|---|
| 18 | other zip archives. Changes made without closing the archive can be reverted. |
|---|
| 19 | The API is documented by man pages. |
|---|
| 20 | |
|---|
| 21 | %package devel |
|---|
| 22 | Summary: Development files for %{name} |
|---|
| 23 | Group: Development/Libraries |
|---|
| 24 | Requires: %{name} = %{version}-%{release} |
|---|
| 25 | Requires: pkgconfig |
|---|
| 26 | Requires: zlib-devel |
|---|
| 27 | |
|---|
| 28 | %description devel |
|---|
| 29 | The %{name}-devel package contains libraries and header files for |
|---|
| 30 | developing applications that use %{name}. |
|---|
| 31 | |
|---|
| 32 | %prep |
|---|
| 33 | %setup -q |
|---|
| 34 | |
|---|
| 35 | %build |
|---|
| 36 | %configure --disable-static |
|---|
| 37 | make %{?_smp_mflags} |
|---|
| 38 | |
|---|
| 39 | %install |
|---|
| 40 | rm -rf $RPM_BUILD_ROOT |
|---|
| 41 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
|---|
| 42 | |
|---|
| 43 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
|---|
| 44 | |
|---|
| 45 | %clean |
|---|
| 46 | rm -rf $RPM_BUILD_ROOT |
|---|
| 47 | |
|---|
| 48 | %post -p /sbin/ldconfig |
|---|
| 49 | |
|---|
| 50 | %postun -p /sbin/ldconfig |
|---|
| 51 | |
|---|
| 52 | %files |
|---|
| 53 | %defattr(-,root,root,-) |
|---|
| 54 | %doc AUTHORS NEWS README THANKS TODO |
|---|
| 55 | %{_bindir}/zipcmp |
|---|
| 56 | %{_bindir}/zipmerge |
|---|
| 57 | %{_bindir}/ziptorrent |
|---|
| 58 | %{_libdir}/libzip.so.1* |
|---|
| 59 | %{_mandir}/man1/*zip* |
|---|
| 60 | |
|---|
| 61 | %files devel |
|---|
| 62 | %defattr(-,root,root,-) |
|---|
| 63 | %{_includedir}/zip.h |
|---|
| 64 | %{_libdir}/libzip.so |
|---|
| 65 | %{_libdir}/pkgconfig/libzip.pc |
|---|
| 66 | %{_mandir}/man3/*zip* |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | %changelog |
|---|
| 70 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2 |
|---|
| 71 | - rebuild with rpm-4.8.1 for pkg-config file |
|---|
| 72 | |
|---|
| 73 | * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1 |
|---|
| 74 | - new upstream release |
|---|
| 75 | - built with new toolchain |
|---|
| 76 | |
|---|
| 77 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5 |
|---|
| 78 | - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package |
|---|
| 79 | |
|---|
| 80 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4 |
|---|
| 81 | - Initial build for Vine Linux |
|---|
| 82 | |
|---|
| 83 | * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1 |
|---|
| 84 | - initial release |
|---|
| 85 | |
|---|