/[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 189404 - (show annotations) (download)
Sun Jan 1 01:16:43 2012 UTC (12 years, 3 months ago) by anssi
File size: 4378 byte(s)
- fix ISO support broken by redhat/mdv patch for CVE-2011-1777
  (missing braces and a return statement, patch updated, #3941)

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 2
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 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: bison
23 BuildRequires: bzip2-devel
24 BuildRequires: libacl-devel
25 BuildRequires: libattr-devel
26 BuildRequires: e2fsprogs-devel
27 BuildRequires: libtool
28 BuildRequires: zlib-devel
29 BuildRequires: lzma-devel
30 BuildRequires: sharutils
31 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
32
33 %description
34 Libarchive is a programming library that can create and read several different
35 streaming archive formats, including most popular tar variants and several cpio
36 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
37 archives. The bsdtar program is an implementation of tar(1) that is built on
38 top of libarchive. It started as a test harness, but has grown and is now the
39 standard system tar for FreeBSD 5 and 6.
40
41 %package -n %{libname}
42 Summary: Library for reading and writing streaming archives
43 Group: System/Libraries
44
45 %description -n %{libname}
46 Libarchive is a programming library that can create and read several different
47 streaming archive formats, including most popular tar variants and several cpio
48 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
49 archives. The bsdtar program is an implementation of tar(1) that is built on
50 top of libarchive. It started as a test harness, but has grown and is now the
51 standard system tar for FreeBSD 5 and 6.
52
53 %package -n %{develname}
54 Summary: Static library and header files for the libarchive library
55 Group: Development/C
56 Requires: %{libname} = %{version}
57 Provides: %{libname}-devel = %{version}
58 Obsoletes: %{libname}-devel
59 Obsoletes: %{mklibname archive 1}-devel
60 Provides: %{name}-devel = %{version}
61
62 %description -n %{develname}
63 Libarchive is a programming library that can create and read several different
64 streaming archive formats, including most popular tar variants and several cpio
65 formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
66 archives. The bsdtar program is an implementation of tar(1) that is built on
67 top of libarchive. It started as a test harness, but has grown and is now the
68 standard system tar for FreeBSD 5 and 6.
69
70 This package contains header files for the libarchive library.
71
72 %package -n bsdtar
73 Summary: Full-featured tar replacement built on libarchive
74 Group: Archiving/Backup
75
76 %description -n bsdtar
77 The bsdtar program is a full-featured tar replacement built on libarchive.
78
79 %package -n bsdcpio
80 Summary: Copy files to and from archives
81 Group: Archiving/Backup
82
83 %description -n bsdcpio
84 bsdcpio copies files between archives and directories. This implementation can
85 extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can
86 create tar, pax, cpio, ar, and shar archives.
87
88 %prep
89
90 %setup -q
91 %patch0 -p0 -b .headers
92 %patch1 -p1
93 %patch2 -p0
94
95 %build
96 autoreconf -fis
97
98 %configure2_5x \
99 --enable-bsdtar=shared \
100 --enable-bsdcpio=shared
101
102 %make
103
104 %install
105 rm -rf %{buildroot}
106
107 %makeinstall_std
108
109 %clean
110 rm -rf %{buildroot}
111
112 %files -n bsdtar
113 %defattr(-,root,root)
114 %attr(0755,root,root) %{_bindir}/bsdtar
115 %attr(0644,root,root) %{_mandir}/man1/bsdtar.1*
116
117 %files -n bsdcpio
118 %defattr(-,root,root)
119 %attr(0755,root,root) %{_bindir}/bsdcpio
120 %attr(0644,root,root) %{_mandir}/man1/bsdcpio.1*
121
122 %files -n %{libname}
123 %defattr(-,root,root)
124 %doc NEWS README
125 %attr(0755,root,root) %{_libdir}/lib*.so.%{major}*
126
127 %files -n %{develname}
128 %defattr(-,root,root)
129 %attr(0755,root,root) %{_libdir}/*so
130 %attr(0644,root,root) %{_libdir}/*.*a
131 %attr(0644,root,root) %{_libdir}/pkgconfig/libarchive.pc
132 %attr(0644,root,root) %{_includedir}/*.h
133 %attr(0644,root,root) %{_mandir}/man3/*
134 %attr(0644,root,root) %{_mandir}/man5/*
135
136

  ViewVC Help
Powered by ViewVC 1.1.30