/[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 240367 - (show annotations) (download)
Sun May 27 16:28:16 2012 UTC (11 years, 9 months ago) by schedbot
File size: 3995 byte(s)
SILENT: Branching libarchive at revision 196364 for Mageia 2
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 Release: %mkrel 1
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: openssl-devel
22 BuildRequires: libtool
23 BuildRequires: zlib-devel
24 BuildRequires: lzma-devel
25 BuildRequires: sharutils
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 %setup -q
84 %patch0 -p0 -b .headers
85
86 %build
87 autoreconf -fis
88
89 %configure2_5x --disable-static \
90 --enable-bsdtar=shared \
91 --enable-bsdcpio=shared
92
93 %make
94
95 %install
96 rm -rf %{buildroot}
97
98 %makeinstall_std
99
100 rm -f %{buildroot}%{_libdir}/*.la
101
102 %clean
103 rm -rf %{buildroot}
104
105 %files -n bsdtar
106 %defattr(-,root,root)
107 %attr(0755,root,root) %{_bindir}/bsdtar
108 %attr(0644,root,root) %{_mandir}/man1/bsdtar.1*
109
110 %files -n bsdcpio
111 %defattr(-,root,root)
112 %attr(0755,root,root) %{_bindir}/bsdcpio
113 %attr(0644,root,root) %{_mandir}/man1/bsdcpio.1*
114
115 %files -n %{libname}
116 %defattr(-,root,root)
117 %doc NEWS README
118 %attr(0755,root,root) %{_libdir}/lib*.so.%{major}*
119
120 %files -n %{develname}
121 %defattr(-,root,root)
122 %attr(0755,root,root) %{_libdir}/*so
123 %attr(0644,root,root) %{_libdir}/pkgconfig/libarchive.pc
124 %attr(0644,root,root) %{_includedir}/*.h
125 %attr(0644,root,root) %{_mandir}/man3/*
126 %attr(0644,root,root) %{_mandir}/man5/*

  ViewVC Help
Powered by ViewVC 1.1.30