1 # $LastChangedRevision$, $LastChangedDate$
2 Summary: Library to create and read several different archive formats
3 Summary(pl): Biblioteka do tworzenia i odczytu ró¿nych formatów archiwów
9 Source0: http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz
10 Patch: %{name}-0123457890.patch
11 URL: http://people.freebsd.org/~kientzle/libarchive/
16 BuildRequires: gcc-c++
18 BuildRequires: zlib-devel
20 BuildRoot: %{_tmppath}/%{name}-%{version}-build
23 Libarchive is a programming library that can create and read several
24 different streaming archive formats, including most popular TAR
25 variants and several CPIO formats. It can also write SHAR archives.
28 Libarchive jest bibliotek± s³u¿ac± to tworzenia i odczytu wielu
29 ró¿nych strumieniowych formatów archiwów, w³±czaj±c w to popularne
30 odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi tak¿e
31 zapisywaæ archiwa SHAR.
34 Summary: Header files for libarchive library
35 Summary(pl): Pliki nag³ówkowe biblioteki libarchive
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for libarchive library.
42 %description devel -l pl
43 Pliki nag³ówkowe biblioteki libarchive.
46 Summary: Static libarchive library
47 Summary(pl): Statyczna biblioteka libarchive
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static libarchive library.
54 %description static -l pl
55 Statyczna biblioteka libarchive.
58 Summary: bsdtar - tar(1) implementation based on libarchive
59 Summary(pl): bsdtar - implementacja programu tar(1) oparta na libarchive
60 Group: Applications/Archiving
61 Requires: %{name} = %{version}-%{release}
63 %description -n bsdtar
64 bsdtar - tar(1) implementation based on libarchive.
66 %description -n bsdtar -l pl
67 bsdtar - implementacja programu tar(1), oparta na libarchive.
74 # Specify paths to avoid use of vacpp
75 # -maix64 - required to use large files with aix-5.3
76 # -static - required for interoperability without copying libraries
77 # -D_BSD - required to include definition of makedev
78 # -X64 - required to assemble 64-bit COFF files
80 PATH=/opt/freeware/libexec:/opt/freeware/bin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:. \
81 CPATH=/opt/freeware/include:/usr/local/include \
82 LIBPATH=/opt/freeware/lib:/usr/local/lib:/usr/share/lib \
83 LD_LIBRARY_PATH=/opt/freeware/lib:/usr/local/lib:/usr/share/lib \
84 CFLAGS="$RPM_OPT_FLAGS -maix64 -static -D_BSD" \
85 CXXFLAGS="$RPM_OPT_FLAGS -maix64 -static -D_BSD" \
89 --libexecdir=%{_libexecdir} \
91 --infodir=%{_infodir} \
94 | tee %{buildroot}/config.log
95 make | tee %{buildroot}/make.log
98 [ "%buildroot" != "/" ] && [ -d %buildroot ] && rm -rf %buildroot;
99 make DESTDIR=%buildroot install
100 # original install builds, but does install bsdtar
101 cp .libs/%{name}.a %{buildroot}%{_libdir}
102 cp bsdtar %{buildroot}%{_bindir}
103 cp tar/bsdtar.1 %{buildroot}%{_mandir}/man1
109 %defattr(644,root,root,755)
110 %{_libdir}/libarchive.a
113 %defattr(644,root,root,755)
114 %{_libdir}/libarchive.la
116 %doc %{_mandir}/man3/*
117 %doc %{_mandir}/man5/*
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/bsdtar
122 %doc %{_mandir}/man1/bsdtar.1*
124 %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
126 * %{date} PLD Team <feedback@pld-linux.org>
127 All persons listed below can be reached at <cvs_login>@pld-linux.org
129 $Log: libarchive.spec,v $
130 Release 1aix53 2006/12/12 rm1023@dcx.com
132 - added libarchive-0123457890.patch for "0123457890" error
133 - replaced libarchive-1.3.1.tar.gz with libarchive-2.0a3.tar.gz
134 - removed obsolete -CVE-2006-5680.patch and -man_progname.patch
136 Revision 1.6 2006/11/15 10:41:28 qboosh
137 - BR: acl-devel,attr-devel
140 Revision 1.5 2006/11/08 22:22:25 twittner
142 - added BR: e2fsprogs-devel
143 - added -CVE-2006-5680.patch against entering an infinite
144 loop in corrupt archives
145 - added bsdtar package (bsdtar is included now in libarchive
147 - rel. 0.1 for testing
149 Revision 1.4 2005/12/15 18:26:36 twittner
151 - removed -shared.patch (no longer needed)
153 Revision 1.3 2005/10/05 17:00:12 arekm
156 Revision 1.2 2005/07/27 20:17:21 qboosh
159 Revision 1.1 2005/07/27 08:36:03 adamg