/[packages]/updates/1/libarchive/current/SPECS/libarchive.spec
ViewVC logotype

Contents of /updates/1/libarchive/current/SPECS/libarchive.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 409186 - (show annotations) (download)
Tue Apr 9 15:32:51 2013 UTC (8 years, 3 months ago) by luigiwalser
File size: 4430 byte(s)
re-diff upstream patch to fix CVE-2013-0211
1 %define major 2
2 %define libname %mklibname archive %{major}
3 %define develname %mklibname archive -d
4
5 Summary: Library for reading and writing streaming archives
6 Name: libarchive
7 Version: 2.8.4
8 %define subrel 3
9 Release: %mkrel 2
10 License: BSD
11 Group: System/Libraries
12 URL: http://code.google.com/p/libarchive/
13 Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz
14 Patch0: libarchive-2.6.1-headers.patch
15 # original redhat/mdv patch breaks ISO support due to two missing {} causing
16 # wrong execution paths and one missing 'return (ARCHIVE_OK)' causing an error
17 # condition, fixed in the below CVE-2011-1777 patch, #3941 (Anssi)
18 Patch1: libarchive-CVE-2011-1777.diff
19 Patch2: libarchive-mdv-CVE-2011-1778.diff
20 Patch3: libarchive-CVE-2013-0211.patch
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: bison
24 BuildRequires: bzip2-devel
25 BuildRequires: libacl-devel
26 BuildRequires: libattr-devel
27 BuildRequires: e2fsprogs-devel
28 BuildRequires: libtool
29 BuildRequires: zlib-devel
30 BuildRequires: lzma-devel
31 BuildRequires: sharutils
32 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
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 and several cpio
37 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
38 archives. The bsdtar program is an implementation of tar(1) that is built on
39 top of libarchive. It started as a test harness, but has grown and is now the
40 standard system tar for FreeBSD 5 and 6.
41
42 %package -n %{libname}
43 Summary: Library for reading and writing streaming archives
44 Group: System/Libraries
45
46 %description -n %{libname}
47 Libarchive is a programming library that can create and read several different
48 streaming archive formats, including most popular tar variants and several cpio
49 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
50 archives. The bsdtar program is an implementation of tar(1) that is built on
51 top of libarchive. It started as a test harness, but has grown and is now the
52 standard system tar for FreeBSD 5 and 6.
53
54 %package -n %{develname}
55 Summary: Static library and header files for the libarchive library
56 Group: Development/C
57 Requires: %{libname} = %{version}
58 Provides: %{libname}-devel = %{version}
59 Obsoletes: %{libname}-devel
60 Obsoletes: %{mklibname archive 1}-devel
61 Provides: %{name}-devel = %{version}
62
63 %description -n %{develname}
64 Libarchive is a programming library that can create and read several different
65 streaming archive formats, including most popular tar variants and several cpio
66 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
67 archives. The bsdtar program is an implementation of tar(1) that is built on
68 top of libarchive. It started as a test harness, but has grown and is now the
69 standard system tar for FreeBSD 5 and 6.
70
71 This package contains header files for the libarchive library.
72
73 %package -n bsdtar
74 Summary: Full-featured tar replacement built on libarchive
75 Group: Archiving/Backup
76
77 %description -n bsdtar
78 The bsdtar program is a full-featured tar replacement built on libarchive.
79
80 %package -n bsdcpio
81 Summary: Copy files to and from archives
82 Group: Archiving/Backup
83
84 %description -n bsdcpio
85 bsdcpio copies files between archives and directories. This implementation can
86 extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can
87 create tar, pax, cpio, ar, and shar archives.
88
89 %prep
90
91 %setup -q
92 %patch0 -p0 -b .headers
93 %patch1 -p1
94 %patch2 -p0
95 %patch3 -p1
96
97 %build
98 autoreconf -fis
99
100 %configure2_5x \
101 --enable-bsdtar=shared \
102 --enable-bsdcpio=shared
103
104 %make
105
106 %install
107 rm -rf %{buildroot}
108
109 %makeinstall_std
110
111 %clean
112 rm -rf %{buildroot}
113
114 %files -n bsdtar
115 %defattr(-,root,root)
116 %attr(0755,root,root) %{_bindir}/bsdtar
117 %attr(0644,root,root) %{_mandir}/man1/bsdtar.1*
118
119 %files -n bsdcpio
120 %defattr(-,root,root)
121 %attr(0755,root,root) %{_bindir}/bsdcpio
122 %attr(0644,root,root) %{_mandir}/man1/bsdcpio.1*
123
124 %files -n %{libname}
125 %defattr(-,root,root)
126 %doc NEWS README
127 %attr(0755,root,root) %{_libdir}/lib*.so.%{major}*
128
129 %files -n %{develname}
130 %defattr(-,root,root)
131 %attr(0755,root,root) %{_libdir}/*so
132 %attr(0644,root,root) %{_libdir}/*.*a
133 %attr(0644,root,root) %{_libdir}/pkgconfig/libarchive.pc
134 %attr(0644,root,root) %{_includedir}/*.h
135 %attr(0644,root,root) %{_mandir}/man3/*
136 %attr(0644,root,root) %{_mandir}/man5/*
137
138

  ViewVC Help
Powered by ViewVC 1.1.28