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

Line 
1Name:          libarchive
2Summary:       A library for handling streaming archive formats
3Version:       2.8.4
4Release:       5%{?_dist_release}
5
6Group:         System Environment/Libraries
7License:       BSD
8URL:           http://code.google.com/p/libarchive/
9
10Source0:       http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz
11
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
21BuildRoot:     %{_tmppath}/%{name}-%{version}-root
22BuildRequires: zlib-devel
23BuildRequires: bzip2-devel
24BuildRequires: libacl-devel
25BuildRequires: libattr-devel
26BuildRequires: openssl-devel
27BuildRequires: libxml2-devel
28BuildRequires: xz-devel
29BuildRequires: sharutils
30
31Vendor: Project Vine
32Distribution: Vine Linux
33
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
40%package       devel
41Summary:       Development files for %{name}
42Group:         Development/Libraries
43Requires:      %{name} = %{version}-%{release}
44
45%description   devel
46The %{name}-devel package contains libraries and header files for
47developing 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
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
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
Note: See TracBrowser for help on using the repository browser.