avatar
Rosa has added 2e869023ff
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "libarchive-2.8.4.tar.gz": b9cc3bbd20bd71f996be9ec738f19fda8653f7af
view file @ 2e869023ff
... ... --- /dev/null
... ... +++ b/libarchive-2.6.1-headers.patch
... ... @@ -0,0 +1,12 @@
1
--- cpio/cpio.c	2010-01-18 19:01:37.000000000 +0100
2
+++ cpio/cpio.c.oden	2010-02-14 14:17:38.000000000 +0100
3
@@ -75,6 +75,9 @@ __FBSDID("$FreeBSD: src/usr.bin/cpio/cpi
4
 #ifdef HAVE_TIME_H
5
 #include <time.h>
6
 #endif
7
+#ifdef HAVE_SYS_TIME_H
8
+#include <sys/time.h>
9
+#endif
10
 
11
 #include "cpio.h"
12
 #include "err.h"
view file @ 2e869023ff
... ... --- /dev/null
... ... +++ b/libarchive.spec
... ... @@ -0,0 +1,234 @@
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
Release:	%mkrel 3
9
License:	BSD
10
Group:		System/Libraries
11
URL:		http://code.google.com/p/libarchive/
12
Source0:	http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz
13
Patch0:		libarchive-2.6.1-headers.patch
14
BuildRequires:	autoconf
15
BuildRequires:	automake
16
BuildRequires:	bison
17
BuildRequires:	bzip2-devel
18
BuildRequires:	libacl-devel
19
BuildRequires:	libattr-devel
20
BuildRequires:	e2fsprogs-devel
21
BuildRequires:	libtool
22
BuildRequires:	zlib-devel
23
BuildRequires:	lzma-devel
24
BuildRequires:	sharutils
25
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
26
27
%description
28
Libarchive is a programming library that can create and read several different
29
streaming archive formats, including most popular tar variants and several cpio
30
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
31
archives. The bsdtar program is an implementation of tar(1) that is built on
32
top of libarchive. It started as a test harness, but has grown and is now the
33
standard system tar for FreeBSD 5 and 6.
34
35
%package -n	%{libname}
36
Summary:	Library for reading and writing streaming archives
37
Group:          System/Libraries
38
39
%description -n	%{libname}
40
Libarchive is a programming library that can create and read several different
41
streaming archive formats, including most popular tar variants and several cpio
42
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
43
archives. The bsdtar program is an implementation of tar(1) that is built on
44
top of libarchive. It started as a test harness, but has grown and is now the
45
standard system tar for FreeBSD 5 and 6.
46
47
%package -n	%{develname}
48
Summary:	Static library and header files for the libarchive library
49
Group:		Development/C
50
Requires:	%{libname} = %{version}
51
Provides:	%{libname}-devel = %{version}
52
Obsoletes:	%{libname}-devel
53
Obsoletes:	%{mklibname archive 1}-devel
54
Provides:	%{name}-devel = %{version}
55
56
%description -n	%{develname}
57
Libarchive is a programming library that can create and read several different
58
streaming archive formats, including most popular tar variants and several cpio
59
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
60
archives. The bsdtar program is an implementation of tar(1) that is built on
61
top of libarchive. It started as a test harness, but has grown and is now the
62
standard system tar for FreeBSD 5 and 6.
63
64
This package contains header files for the libarchive library.
65
66
%package -n	bsdtar
67
Summary:	Full-featured tar replacement built on libarchive
68
Group:		Archiving/Backup
69
70
%description -n	bsdtar
71
The bsdtar program is a full-featured tar replacement built on libarchive.
72
73
%package -n	bsdcpio
74
Summary:	Copy files to and from archives
75
Group:		Archiving/Backup
76
77
%description -n	bsdcpio
78
bsdcpio copies files between archives and directories. This implementation can
79
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can
80
create tar, pax, cpio, ar, and shar archives.
81
82
%prep
83
84
%setup -q
85
%patch0 -p0 -b .headers
86
87
%build
88
autoreconf -fis
89
90
%configure2_5x \
91
    --enable-bsdtar=shared \
92
    --enable-bsdcpio=shared
93
94
%make
95
96
%install
97
rm -rf %{buildroot}
98
99
%makeinstall_std
100
101
%if %mdkversion < 200900
102
%post -n %{libname} -p /sbin/ldconfig
103
%endif
104
105
%if %mdkversion < 200900
106
%postun -n %{libname} -p /sbin/ldconfig
107
%endif
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
137
%changelog
138
* Fri Apr 29 2011 Oden Eriksson <oeriksson@mandriva.com> 2.8.4-3mdv2011.0
139
+ Revision: 660211
140
- mass rebuild
141
142
* Sat Nov 27 2010 Funda Wang <fwang@mandriva.org> 2.8.4-2mdv2011.0
143
+ Revision: 601637
144
- rebuild for new liblzma
145
146
* Mon Jul 19 2010 Emmanuel Andry <eandry@mandriva.org> 2.8.4-1mdv2011.0
147
+ Revision: 554969
148
- New version 2.8.4
149
150
* Sat Mar 20 2010 Emmanuel Andry <eandry@mandriva.org> 2.8.3-1mdv2010.1
151
+ Revision: 525440
152
- New version 2.8.3
153
154
* Sun Feb 14 2010 Oden Eriksson <oeriksson@mandriva.com> 2.8.0-1mdv2010.1
155
+ Revision: 505805
156
- 2.8.0
157
158
* Fri Aug 28 2009 Frederik Himpe <fhimpe@mandriva.org> 2.7.1-1mdv2010.0
159
+ Revision: 422034
160
- update to new version 2.7.1
161
162
* Sun Jun 21 2009 Oden Eriksson <oeriksson@mandriva.com> 2.7.0-1mdv2010.0
163
+ Revision: 387638
164
- 2.7.0
165
- dropped one upstream patch
166
- rediffed one patch
167
- added one patch to fix build
168
169
* Sun Mar 22 2009 Funda Wang <fwang@mandriva.org> 2.6.2-1mdv2009.1
170
+ Revision: 360163
171
- new version 2.6.2
172
173
* Sun Feb 01 2009 Oden Eriksson <oeriksson@mandriva.com> 2.6.1-1mdv2009.1
174
+ Revision: 336156
175
- 2.6.1
176
- new url
177
- reconstruct autopoo
178
- added a header fix patch from gentoo
179
180
* Wed Jan 21 2009 Per Øyvind Karlsen <peroyvind@mandriva.org> 2.6.0-2mdv2009.1
181
+ Revision: 332384
182
- use new liblzma and also add support for new xz format (P0)
183
- ditch useless %%buildroot != "/" check..
184
- properly set dynamic build of bsdtar in stead of hackishly modify the Makefile
185
186
* Sat Jan 03 2009 Funda Wang <fwang@mandriva.org> 2.6.0-1mdv2009.1
187
+ Revision: 323640
188
- New version 2.6.0
189
190
* Thu Dec 18 2008 Oden Eriksson <oeriksson@mandriva.com> 2.5.5-2mdv2009.1
191
+ Revision: 315553
192
- rebuild
193
194
* Fri Jul 18 2008 Funda Wang <fwang@mandriva.org> 2.5.5-1mdv2009.0
195
+ Revision: 237992
196
- BR ext2fs
197
- New version 2.5.5
198
199
  + Pixel <pixel@mandriva.com>
200
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
201
202
* Sat May 31 2008 Funda Wang <fwang@mandriva.org> 2.4.17-1mdv2009.0
203
+ Revision: 213652
204
- New version 2.4.17
205
206
* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 2.4.11-2mdv2008.1
207
+ Revision: 170943
208
- rebuild
209
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
210
211
* Mon Jan 21 2008 Funda Wang <fwang@mandriva.org> 2.4.11-1mdv2008.1
212
+ Revision: 155589
213
- update to new version 2.4.11
214
215
* Sun Dec 30 2007 Funda Wang <fwang@mandriva.org> 2.4.10-1mdv2008.1
216
+ Revision: 139575
217
- New version 2.4.10
218
219
  + Olivier Blin <oblin@mandriva.com>
220
    - restore BuildRoot
221
222
  + Thierry Vignaud <tv@mandriva.org>
223
    - kill re-definition of %%buildroot on Pixel's request
224
225
* Sun Aug 19 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-1mdv2008.0
226
+ Revision: 66729
227
- 2.2.6
228
- new major
229
- conform to the 2008 specs
230
231
232
* Mon Jul 10 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2.53-1mdv2007.0
233
- initial Mandriva package
234

Comments