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