]> git.pld-linux.org Git - packages/libarchive.git/blob - libarchive.spec
- tabs in preamble
[packages/libarchive.git] / libarchive.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs # don't build static libraries
4 #
5 Summary:        Library to create and read several different archive formats
6 Summary(pl.UTF-8):      Biblioteka do tworzenia i odczytu różnych formatów archiwów
7 Name:           libarchive
8 Version:        1.3.1
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 Source0:        http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz
13 # Source0-md5:  c618d26d680ace57fcd5f59cea3151c6
14 Patch0:         %{name}-CVE-2006-5680.patch
15 Patch1:         %{name}-man_progname.patch
16 URL:            http://people.freebsd.org/~kientzle/libarchive/
17 BuildRequires:  acl-devel
18 BuildRequires:  attr-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  bzip2-devel
22 # for <ext2fs/ext2_fs.h>
23 BuildRequires:  e2fsprogs-devel
24 BuildRequires:  libtool
25 BuildRequires:  zlib-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Libarchive is a programming library that can create and read several
30 different streaming archive formats, including most popular TAR
31 variants and several CPIO formats. It can also write SHAR archives.
32
33 %description -l pl.UTF-8
34 Libarchive jest biblioteką służacą to tworzenia i odczytu wielu
35 różnych strumieniowych formatów archiwów, włączając w to popularne
36 odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także
37 zapisywać archiwa SHAR.
38
39 %package devel
40 Summary:        Header files for libarchive library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libarchive
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       acl-devel
45 Requires:       attr-devel
46 Requires:       bzip2-devel
47 Requires:       zlib-devel
48
49 %description devel
50 Header files for libarchive library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki libarchive.
54
55 %package static
56 Summary:        Static libarchive library
57 Summary(pl.UTF-8):      Statyczna biblioteka libarchive
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static libarchive library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libarchive.
66
67 %package -n bsdtar
68 Summary:        bsdtar - tar(1) implementation based on libarchive
69 Summary(pl.UTF-8):      bsdtar - implementacja programu tar(1) oparta na libarchive
70 Group:          Applications/Archiving
71 Requires:       %{name} = %{version}-%{release}
72
73 %description -n bsdtar
74 bsdtar - tar(1) implementation based on libarchive.
75
76 %description -n bsdtar -l pl.UTF-8
77 bsdtar - implementacja programu tar(1), oparta na libarchive.
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libarchive.so.*.*.*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libarchive.so
112 %{_libdir}/libarchive.la
113 %{_includedir}/*.h
114 %{_mandir}/man3/*
115 %{_mandir}/man5/*
116
117 %if %{with static_libs}
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libarchive.a
121 %endif
122
123 %files -n bsdtar
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/bsdtar
126 %{_mandir}/man1/bsdtar.1*
This page took 0.348796 seconds and 4 git commands to generate.