1 |
%define major 1 |
2 |
%define libname %mklibname zip %{major} |
3 |
%define develname %mklibname zip -d |
4 |
|
5 |
Summary: A C library for reading, creating, and modifying zip archives |
6 |
Name: libzip |
7 |
Version: 0.9.3 |
8 |
Release: %mkrel 3 |
9 |
Group: System/Libraries |
10 |
License: BSD |
11 |
URL: http://www.nih.at/libzip/ |
12 |
Source0: http://www.nih.at/libzip/%{name}-%{version}.tar.gz |
13 |
BuildRequires: libtool |
14 |
BuildRequires: zlib-devel |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
|
17 |
%description |
18 |
libzip is a C library for reading, creating, and modifying zip archives. Files |
19 |
can be added from data buffers, files, or compressed data copied directly from |
20 |
other zip archives. Changes made without closing the archive can be reverted. |
21 |
The API is documented by man pages. |
22 |
|
23 |
%package -n %{libname} |
24 |
Summary: A C library for reading, creating, and modifying zip archives |
25 |
Group: System/Libraries |
26 |
|
27 |
%description -n %{libname} |
28 |
libzip is a C library for reading, creating, and modifying zip archives. Files |
29 |
can be added from data buffers, files, or compressed data copied directly from |
30 |
other zip archives. Changes made without closing the archive can be reverted. |
31 |
The API is documented by man pages. |
32 |
|
33 |
%package -n %{develname} |
34 |
Summary: Static library and header files for the %{name} library |
35 |
Group: Development/C |
36 |
Requires: %{name} = %{version} |
37 |
Requires: %{libname} = %{version} |
38 |
Provides: %{name}-devel = %{version} |
39 |
Provides: lib%{name}-devel = %{version} |
40 |
Obsoletes: %{mklibname zip 1}-devel |
41 |
|
42 |
%description -n %{develname} |
43 |
libzip is a C library for reading, creating, and modifying zip archives. Files |
44 |
can be added from data buffers, files, or compressed data copied directly from |
45 |
other zip archives. Changes made without closing the archive can be reverted. |
46 |
The API is documented by man pages. |
47 |
|
48 |
This package contains the static %{name} library and its header files. |
49 |
|
50 |
%prep |
51 |
|
52 |
%setup -q -n %{name}-%{version} |
53 |
|
54 |
%build |
55 |
#export WANT_AUTOCONF_2_5=1 |
56 |
#rm -f configure |
57 |
#libtoolize --copy --force; aclocal-1.7; autoconf --force; autoheader; automake-1.7 --foreign |
58 |
|
59 |
%configure2_5x |
60 |
|
61 |
%make |
62 |
|
63 |
%check |
64 |
make check |
65 |
|
66 |
%install |
67 |
rm -rf %{buildroot} |
68 |
|
69 |
%makeinstall_std |
70 |
|
71 |
%clean |
72 |
rm -rf %{buildroot} |
73 |
|
74 |
%files |
75 |
%defattr(-,root,root) |
76 |
%doc AUTHORS NEWS README THANKS TODO |
77 |
%{_bindir}/zipcmp |
78 |
%{_bindir}/zipmerge |
79 |
%{_bindir}/ziptorrent |
80 |
%{_mandir}/man1/zipcmp.1* |
81 |
%{_mandir}/man1/zipmerge.1* |
82 |
%{_mandir}/man1/ziptorrent.1* |
83 |
|
84 |
%files -n %{libname} |
85 |
%defattr(-,root,root) |
86 |
%doc AUTHORS NEWS README THANKS TODO |
87 |
%{_libdir}/lib*.so.%{major}* |
88 |
|
89 |
%files -n %{develname} |
90 |
%defattr(-,root,root) |
91 |
%{_includedir}/* |
92 |
%{_libdir}/*.so |
93 |
%{_libdir}/*.*a |
94 |
%{_libdir}/pkgconfig/libzip.pc |
95 |
%{_mandir}/man3/* |
96 |
|
97 |
|