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