[1872] | 1 | Name: libarchive |
---|
| 2 | Summary: A library for handling streaming archive formats |
---|
| 3 | Version: 2.8.4 |
---|
[6136] | 4 | Release: 5%{?_dist_release} |
---|
[521] | 5 | |
---|
[1872] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: BSD |
---|
| 8 | URL: http://code.google.com/p/libarchive/ |
---|
[521] | 9 | |
---|
[1872] | 10 | Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
| 11 | |
---|
[6136] | 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 | |
---|
[1872] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 22 | BuildRequires: zlib-devel |
---|
| 23 | BuildRequires: bzip2-devel |
---|
[827] | 24 | BuildRequires: libacl-devel |
---|
| 25 | BuildRequires: libattr-devel |
---|
[3913] | 26 | BuildRequires: openssl-devel |
---|
| 27 | BuildRequires: libxml2-devel |
---|
[827] | 28 | BuildRequires: xz-devel |
---|
[521] | 29 | BuildRequires: sharutils |
---|
| 30 | |
---|
[6136] | 31 | Vendor: Project Vine |
---|
| 32 | Distribution: Vine Linux |
---|
| 33 | |
---|
[521] | 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 | |
---|
[1872] | 40 | %package devel |
---|
| 41 | Summary: Development files for %{name} |
---|
| 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 44 | |
---|
[1872] | 45 | %description devel |
---|
[521] | 46 | The %{name}-devel package contains libraries and header files for |
---|
| 47 | developing applications that use %{name}. |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | |
---|
[6136] | 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 | |
---|
[521] | 61 | %build |
---|
[827] | 62 | %configure \ |
---|
| 63 | --disable-static \ |
---|
| 64 | --disable-bsdtar --disable-bsdcpio |
---|
[521] | 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 |
---|
[827] | 95 | %{_libdir}/pkgconfig/*.pc |
---|
[521] | 96 | |
---|
| 97 | %changelog |
---|
[6136] | 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 | |
---|
[3913] | 104 | * Thu May 19 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-4 |
---|
| 105 | - add BuildRequires: openssl-devel, libxml2-devel |
---|
| 106 | |
---|
[3909] | 107 | * Thu May 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.4-3 |
---|
| 108 | - rebuild against liblzma.so.5 |
---|
| 109 | |
---|
[1901] | 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 | |
---|
[1872] | 113 | * Sun Sep 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.4-1 |
---|
| 114 | - new upstream release |
---|
| 115 | |
---|
[827] | 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 | |
---|
[521] | 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 |
---|