source: projects/specs/branches/6/lib/liba/libarchive/libarchive-vl.spec @ 6136

Revision 6136, 3.5 KB checked in by iwamoto, 12 years ago (diff)

libarchive: security fix CVE-2012-1177, 1178

RevLine 
[1872]1Name:          libarchive
2Summary:       A library for handling streaming archive formats
3Version:       2.8.4
[6136]4Release:       5%{?_dist_release}
[521]5
[1872]6Group:         System Environment/Libraries
7License:       BSD
8URL:           http://code.google.com/p/libarchive/
[521]9
[1872]10Source0:       http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz
11
[6136]12Patch10:       0003-Patch-from-upstream-rev-2516.patch
13Patch11:       0004-Patch-from-upstream-rev-2514.patch
14Patch12:       0005-Patch-from-upstream-rev-2520.patch
15Patch13:       0006-Patch-from-upstream-rev-2521.patch
16Patch20:       0007-Ignore-ENOSYS-error-when-setting-up-xattrs.-Closes-5.patch
17# security fix
18Patch100:      libarchive-2.8.4-CVE-2011-1777.patch
19Patch110:      libarchive-2.8.4-CVE-2011-1778.patch
20
[1872]21BuildRoot:     %{_tmppath}/%{name}-%{version}-root
[521]22BuildRequires: zlib-devel
23BuildRequires: bzip2-devel
[827]24BuildRequires: libacl-devel
25BuildRequires: libattr-devel
[3913]26BuildRequires: openssl-devel
27BuildRequires: libxml2-devel
[827]28BuildRequires: xz-devel
[521]29BuildRequires: sharutils
30
[6136]31Vendor: Project Vine
32Distribution: Vine Linux
33
[521]34%description
35Libarchive is a programming library that can create and read several different
36streaming archive formats, including most popular tar variants, several cpio
37formats, and both BSD and GNU ar variants. It can also write shar archives and
38read ISO9660 CDROM images and ZIP archives.
39
[1872]40%package       devel
41Summary:       Development files for %{name}
42Group:         Development/Libraries
43Requires:      %{name} = %{version}-%{release}
[521]44
[1872]45%description   devel
[521]46The %{name}-devel package contains libraries and header files for
47developing 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]65make %{?_smp_mflags}
66
67%install
68rm -rf $RPM_BUILD_ROOT
69make install DESTDIR=$RPM_BUILD_ROOT
70#iconv -f latin1 -t utf-8 < NEWS > NEWS.utf8; cp NEWS.utf8 NEWS
71find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
72find $RPM_BUILD_ROOT -name cpio.5 -exec rm -f {} ';'
73find $RPM_BUILD_ROOT -name mtree.5 -exec rm -f {} ';'
74find $RPM_BUILD_ROOT -name tar.5 -exec rm -f {} ';'
75
76%clean
77rm -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
Note: See TracBrowser for help on using the repository browser.