]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libarchive.1aix53.spec
Update vendor/libarchive/dist to git 614110e76d9dbb9ed3e159a71cbd75fa3b23efe3
[FreeBSD/FreeBSD.git] / contrib / libarchive.1aix53.spec
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
4 Name:           libarchive
5 Version:        2.0a3
6 Release:        1aix53
7 License:        BSD
8 Group:          Libraries
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/
12 Requires:       glibc
13 Requires:       zlib
14 Requires:       bzip2
15 BuildRequires:  gcc
16 BuildRequires:  gcc-c++
17 BuildRequires:  gawk
18 BuildRequires:  zlib-devel
19 BuildRequires:  bzip2
20 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
21
22 %description
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.
26
27 %description -l pl
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.
32
33 %package devel
34 Summary:        Header files for libarchive library
35 Summary(pl):    Pliki nag³ówkowe biblioteki libarchive
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for libarchive library.
41
42 %description devel -l pl
43 Pliki nag³ówkowe biblioteki libarchive.
44
45 %package static
46 Summary:        Static libarchive library
47 Summary(pl):    Statyczna biblioteka libarchive
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static libarchive library.
53
54 %description static -l pl
55 Statyczna biblioteka libarchive.
56
57 %package -n bsdtar
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}
62
63 %description -n bsdtar
64 bsdtar - tar(1) implementation based on libarchive.
65
66 %description -n bsdtar -l pl
67 bsdtar - implementacja programu tar(1), oparta na libarchive.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72
73 %build
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
79 mkdir -p %{buildroot}
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" \
86 AR="ar -X64" \
87 ./configure \
88 --prefix=%{_prefix} \
89 --libexecdir=%{_libexecdir} \
90 --mandir=%{_mandir} \
91 --infodir=%{_infodir} \
92 --enable-shared=yes \
93 --enable-static=yes \
94 | tee %{buildroot}/config.log
95 make | tee %{buildroot}/make.log
96
97 %install
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
104
105 %clean
106 rm -fr %buildroot
107
108 %files
109 %defattr(644,root,root,755)
110 %{_libdir}/libarchive.a
111
112 %files devel
113 %defattr(644,root,root,755)
114 %{_libdir}/libarchive.la
115 %{_includedir}/*.h
116 %doc %{_mandir}/man3/*
117 %doc %{_mandir}/man5/*
118
119 %files -n bsdtar
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/bsdtar
122 %doc %{_mandir}/man1/bsdtar.1*
123
124 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
125 %changelog
126 * %{date} PLD Team <feedback@pld-linux.org>
127 All persons listed below can be reached at <cvs_login>@pld-linux.org
128
129 $Log: libarchive.spec,v $
130 Release 1aix53  2006/12/12 rm1023@dcx.com
131 - tweak for aix-5.3
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
135
136 Revision 1.6  2006/11/15 10:41:28  qboosh
137 - BR: acl-devel,attr-devel
138 - devel deps
139
140 Revision 1.5  2006/11/08 22:22:25  twittner
141 - up to 1.3.1
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
146 sources)
147 - rel. 0.1 for testing
148
149 Revision 1.4  2005/12/15 18:26:36  twittner
150 - up to 1.2.37
151 - removed -shared.patch (no longer needed)
152
153 Revision 1.3  2005/10/05 17:00:12  arekm
154 - up to 1.02.034
155
156 Revision 1.2  2005/07/27 20:17:21  qboosh
157 - typo
158
159 Revision 1.1  2005/07/27 08:36:03  adamg
160 - new