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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28