| 1 | Name: libarchive |
|---|
| 2 | Summary: A library for handling streaming archive formats |
|---|
| 3 | Version: 2.8.4 |
|---|
| 4 | Release: 5%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: BSD |
|---|
| 8 | URL: http://code.google.com/p/libarchive/ |
|---|
| 9 | |
|---|
| 10 | Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | Patch10: 0003-Patch-from-upstream-rev-2516.patch |
|---|
| 13 | Patch11: 0004-Patch-from-upstream-rev-2514.patch |
|---|
| 14 | Patch12: 0005-Patch-from-upstream-rev-2520.patch |
|---|
| 15 | Patch13: 0006-Patch-from-upstream-rev-2521.patch |
|---|
| 16 | Patch20: 0007-Ignore-ENOSYS-error-when-setting-up-xattrs.-Closes-5.patch |
|---|
| 17 | # security fix |
|---|
| 18 | Patch100: libarchive-2.8.4-CVE-2011-1777.patch |
|---|
| 19 | Patch110: libarchive-2.8.4-CVE-2011-1778.patch |
|---|
| 20 | |
|---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 22 | BuildRequires: zlib-devel |
|---|
| 23 | BuildRequires: bzip2-devel |
|---|
| 24 | BuildRequires: libacl-devel |
|---|
| 25 | BuildRequires: libattr-devel |
|---|
| 26 | BuildRequires: openssl-devel |
|---|
| 27 | BuildRequires: libxml2-devel |
|---|
| 28 | BuildRequires: xz-devel |
|---|
| 29 | BuildRequires: sharutils |
|---|
| 30 | |
|---|
| 31 | Vendor: Project Vine |
|---|
| 32 | Distribution: Vine Linux |
|---|
| 33 | |
|---|
| 34 | %description |
|---|
| 35 | Libarchive is a programming library that can create and read several different |
|---|
| 36 | streaming archive formats, including most popular tar variants, several cpio |
|---|
| 37 | formats, and both BSD and GNU ar variants. It can also write shar archives and |
|---|
| 38 | read ISO9660 CDROM images and ZIP archives. |
|---|
| 39 | |
|---|
| 40 | %package devel |
|---|
| 41 | Summary: Development files for %{name} |
|---|
| 42 | Group: Development/Libraries |
|---|
| 43 | Requires: %{name} = %{version}-%{release} |
|---|
| 44 | |
|---|
| 45 | %description devel |
|---|
| 46 | The %{name}-devel package contains libraries and header files for |
|---|
| 47 | developing applications that use %{name}. |
|---|
| 48 | |
|---|
| 49 | %prep |
|---|
| 50 | %setup -q |
|---|
| 51 | |
|---|
| 52 | %patch10 -p1 -b .rev-2516 |
|---|
| 53 | %patch11 -p1 -b .rev-2514 |
|---|
| 54 | %patch12 -p1 -b .rev-2520 |
|---|
| 55 | %patch13 -p1 -b .rev-2521 |
|---|
| 56 | %patch20 -p1 -b .ENOSYS |
|---|
| 57 | # security fix |
|---|
| 58 | %patch100 -p1 -b .CVE-2011-1777 |
|---|
| 59 | %patch110 -p1 -b .CVE-2011-1778 |
|---|
| 60 | |
|---|
| 61 | %build |
|---|
| 62 | %configure \ |
|---|
| 63 | --disable-static \ |
|---|
| 64 | --disable-bsdtar --disable-bsdcpio |
|---|
| 65 | make %{?_smp_mflags} |
|---|
| 66 | |
|---|
| 67 | %install |
|---|
| 68 | rm -rf $RPM_BUILD_ROOT |
|---|
| 69 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 70 | #iconv -f latin1 -t utf-8 < NEWS > NEWS.utf8; cp NEWS.utf8 NEWS |
|---|
| 71 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
|---|
| 72 | find $RPM_BUILD_ROOT -name cpio.5 -exec rm -f {} ';' |
|---|
| 73 | find $RPM_BUILD_ROOT -name mtree.5 -exec rm -f {} ';' |
|---|
| 74 | find $RPM_BUILD_ROOT -name tar.5 -exec rm -f {} ';' |
|---|
| 75 | |
|---|
| 76 | %clean |
|---|
| 77 | rm -rf $RPM_BUILD_ROOT |
|---|
| 78 | |
|---|
| 79 | %post -p /sbin/ldconfig |
|---|
| 80 | |
|---|
| 81 | %postun -p /sbin/ldconfig |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %files |
|---|
| 85 | %defattr(-,root,root,-) |
|---|
| 86 | %doc COPYING README NEWS |
|---|
| 87 | %{_libdir}/*.so.* |
|---|
| 88 | |
|---|
| 89 | %files devel |
|---|
| 90 | %defattr(-,root,root,-) |
|---|
| 91 | %doc |
|---|
| 92 | %{_includedir}/* |
|---|
| 93 | %{_mandir}/*/* |
|---|
| 94 | %{_libdir}/*.so |
|---|
| 95 | %{_libdir}/pkgconfig/*.pc |
|---|
| 96 | |
|---|
| 97 | %changelog |
|---|
| 98 | * Fri May 4 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.4-5 |
|---|
| 99 | - add patch100 for fix CVE-2011-1777 |
|---|
| 100 | - add patch110 for fix CVE-2011-1778 |
|---|
| 101 | - add patch10 - 20 from debian (upstream fixes) |
|---|
| 102 | - add Vendor/Distri Tags |
|---|
| 103 | |
|---|
| 104 | * Thu May 19 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-4 |
|---|
| 105 | - add BuildRequires: openssl-devel, libxml2-devel |
|---|
| 106 | |
|---|
| 107 | * Thu May 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.4-3 |
|---|
| 108 | - rebuild against liblzma.so.5 |
|---|
| 109 | |
|---|
| 110 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-2 |
|---|
| 111 | - rebuild with rpm-4.8.1 for pkg-config file |
|---|
| 112 | |
|---|
| 113 | * Sun Sep 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.4-1 |
|---|
| 114 | - new upstream release |
|---|
| 115 | |
|---|
| 116 | * Wed Apr 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.3-1 |
|---|
| 117 | - new upstream release |
|---|
| 118 | - built with new toolchain |
|---|
| 119 | |
|---|
| 120 | * Wed Apr 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.0-1 |
|---|
| 121 | - new upstream release |
|---|
| 122 | |
|---|
| 123 | * Wed Apr 2 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.14-1vl5 |
|---|
| 124 | - Build for Vine Linux |
|---|
| 125 | |
|---|
| 126 | * Wed Mar 18 2008 Tomas Bzatek <tbzatek@redhat.com> 2.4.14-1 |
|---|
| 127 | - Initial packaging |
|---|