/[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 6181 - (show annotations) (download)
Tue Jan 11 19:26:22 2011 UTC (13 years, 3 months ago) by ahmad
Original Path: cauldron/libarchive/current/SPECS/libarchive.spec
File size: 4161 byte(s)
imported package libarchive
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 2
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

  ViewVC Help
Powered by ViewVC 1.1.30