2 Version: {{{ git_version lead=3 follow=5 }}}
4 Summary: A library for handling streaming archive formats
7 URL: http://www.libarchive.org/
8 Source: {{{ git_pack }}}
12 BuildRequires: automake
14 BuildRequires: bzip2-devel
15 BuildRequires: e2fsprogs-devel
17 BuildRequires: libacl-devel
18 BuildRequires: libattr-devel
19 BuildRequires: libtool
20 BuildRequires: libxml2-devel
21 BuildRequires: libzstd-devel
22 BuildRequires: lz4-devel
23 BuildRequires: lzo-devel
24 BuildRequires: openssl-devel
25 BuildRequires: sharutils
26 BuildRequires: xz-devel
27 BuildRequires: zlib-devel
30 Libarchive is a programming library that can create and read several different
31 streaming archive formats, including most popular tar variants, several cpio
32 formats, and both BSD and GNU ar variants. It can also write shar archives and
33 read ISO9660 CDROM images and ZIP archives.
37 Summary: Development files for %{name}
38 Requires: %{name}%{?_isa} = %{version}-%{release}
41 The %{name}-devel package contains libraries and header files for
42 developing applications that use %{name}.
46 Summary: Manipulate tape archives
47 Requires: %{name}%{?_isa} = %{version}-%{release}
49 %description -n bsdtar
50 The bsdtar package contains standalone bsdtar utility split off regular
55 Summary: Copy files to and from archives
56 Requires: %{name}%{?_isa} = %{version}-%{release}
58 %description -n bsdcpio
59 The bsdcpio package contains standalone bsdcpio utility split off regular
64 Summary: Expand files to standard output
65 Requires: %{name}%{?_isa} = %{version}-%{release}
67 %description -n bsdcat
68 The bsdcat program typically takes a filename as an argument or reads standard
69 input when used in a pipe. In both cases decompressed data it written to
74 {{{ git_setup_macro }}}
80 %configure --disable-static --without-nettle LT_SYS_LIBRARY_PATH=%_libdir
85 make install DESTDIR=$RPM_BUILD_ROOT
86 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
92 file=`basename "$filename"`
94 pattern=${binary##bsd}
98 /^.Dt ${pattern^^} 1/ {
99 print \".Dt ${binary^^} 1\";
102 # replace the first occurence of \"$pattern\" by \"$binary\"
103 !stop && /^.Nm $pattern/ {
104 print \".Nm $binary\" ;
108 # print remaining lines
110 " "$filename" > "$filename.new"
111 mv "$filename".new "$filename"
114 for manpage in bsdtar.1 bsdcpio.1
116 installed_manpage=`find "$RPM_BUILD_ROOT" -name "$manpage"`
117 replace "$installed_manpage"
125 find -name '*_test.log' -or -name test-suite.log
131 | awk "match(\$0, /[^[:space:]]*`date -I`[^[:space:]]*/) { print substr(\$0, RSTART, RLENGTH); }" \
147 %make_build check -j1 || {
148 # error happened - try to extract in koji as much info as possible
151 for i in `tempdirs`; do
152 if test -d "$i" ; then
153 find $i -printf "%p\n ~> a: %a\n ~> c: %c\n ~> t: %t\n ~> %s B\n"
162 # On a ppc/ppc64 is some race condition causing 'make check' fail on ppc
163 # when both 32 and 64 builds are done in parallel on the same machine in
164 # koji. Try to run once again if failed.
166 run_testsuite || run_testsuite
174 %{!?_licensedir:%global license %%doc}
177 %{_libdir}/libarchive.so.13*
184 %{_mandir}/*/archive*
185 %{_mandir}/*/libarchive*
186 %{_libdir}/libarchive.so
187 %{_libdir}/pkgconfig/libarchive.pc
190 %{!?_licensedir:%global license %%doc}
197 %{!?_licensedir:%global license %%doc}
201 %{_mandir}/*/bsdcpio*
204 %{!?_licensedir:%global license %%doc}
213 * Thu Mar 28 2019 Pavel Raiskup <praiskup@redhat.com> - 3.3.3-7
214 - simplify libtool hacks