]>
Commit | Line | Data |
---|---|---|
5737c303 MB |
1 | Summary: C library for manipulating POSIX tar files |
2 | Summary(pl.UTF-8): Biblioteka C do manipulacji plikami tar zgodnymi z POSIX | |
3 | Name: libtar | |
4 | Version: 1.2.11 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Libraries | |
8 | Source0: ftp://ftp.feep.net/pub/software/libtar/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 604238e8734ce6e25347a58c4f1a1d7e | |
10 | Patch0: %{name}-shared.patch | |
b969f2f6 | 11 | Patch1: %{name}-fix-memleak.patch |
5737c303 MB |
12 | URL: http://www.feep.net/libtar/ |
13 | BuildRequires: autoconf | |
14 | BuildRequires: libtool | |
15 | BuildRequires: zlib-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | C library for manipulating POSIX tar files. It handles adding and | |
20 | extracting files from a tar archive. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Biblioteka C do manipulacji plikami tar zgodnymi z POSIX. Umożliwia | |
24 | dodawanie oraz odzyskiwanie plików z archiwum tar. | |
25 | ||
26 | %package devel | |
27 | Summary: Header files for libtar library | |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtar | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Header files for libtar library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki libtar. | |
37 | ||
38 | %package static | |
39 | Summary: Static libtar library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka libtar | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static libtar library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka libtar. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | %patch0 -p1 | |
b969f2f6 | 53 | %patch1 -p1 |
5737c303 MB |
54 | |
55 | %build | |
56 | # ugly, but working solution | |
57 | cat %{_aclocaldir}/libtool.m4 >> autoconf/aclocal.m4 | |
58 | cat %{_aclocaldir}/ltoptions.m4 >> autoconf/aclocal.m4 | |
59 | cat %{_aclocaldir}/ltversion.m4 >> autoconf/aclocal.m4 | |
60 | cat %{_aclocaldir}/ltsugar.m4 >> autoconf/aclocal.m4 | |
61 | cp %{_datadir}/libtool/config/config.{sub,guess} autoconf | |
62 | %{__libtoolize} | |
63 | %{__autoconf} -I autoconf | |
64 | %configure | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc COPYRIGHT ChangeLog ChangeLog-1.0.x README TODO | |
82 | %attr(755,root,root) %{_bindir}/libtar | |
83 | %attr(755,root,root) %{_libdir}/libtar.so.*.*.* | |
84 | %attr(755,root,root) %ghost %{_libdir}/libtar.so.0 | |
85 | ||
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_libdir}/libtar.so | |
89 | %{_libdir}/libtar.la | |
90 | %{_includedir}/*.h | |
91 | %{_mandir}/man3/*.3* | |
92 | ||
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | %{_libdir}/libtar.a |