1 Summary: C library for reading, creating, and modifying zip archives
2 Summary(pl.UTF-8): Biblioteka C do odczytu, zapisu i modyfikacji archiwów zip
8 Source0: http://www.nih.at/libzip/%{name}-%{version}.tar.bz2
9 # Source0-md5: d3e933ae049204badccf605f20aaecde
10 Patch0: %{name}-fix_headers.patch
11 # https://bugs.php.net/bug.php?id=39388
12 Patch1: %{name}-0.10-php-changes.patch
13 URL: http://www.nih.at/libzip/
14 BuildRequires: autoconf >= 2.57
15 BuildRequires: automake
16 BuildRequires: libtool
17 BuildRequires: zlib-devel >= 1.1.2
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 libzip is a C library for reading, creating, and modifying zip
22 archives. Files can be added from data buffers, files or compressed
23 data copied directly from other zip archives. Changes made without
24 closing the archive can be reverted.
26 %description -l pl.UTF-8
27 libzip jest biblioteką C do odczytu, zapisu i modyfikacji archiwów
28 zip. Pliki mogą być dodawane z buforów, plików lub skompresowanych
29 danych kopiowanych bezpośrednio z innych archiwów zip. Wykonane zmiany
30 mogą zostać cofnięte przed zamknięciem archiwum.
33 Summary: Header files for libzip library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libzip
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: zlib-devel >= 1.1.2
40 Header files for libzip library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libzip.
46 Summary: Static libzip library
47 Summary(pl.UTF-8): Statyczna biblioteka libzip
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static libzip library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka libzip.
71 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzip.la
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc AUTHORS LICENSE NEWS README THANKS TODO
86 %attr(755,root,root) %{_bindir}/zipcmp
87 %attr(755,root,root) %{_bindir}/zipmerge
88 %attr(755,root,root) %{_bindir}/ziptorrent
89 %attr(755,root,root) %{_libdir}/libzip.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/libzip.so.2
91 %{_mandir}/man1/zipcmp.1*
92 %{_mandir}/man1/zipmerge.1*
93 %{_mandir}/man1/ziptorrent.1*
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libzip.so
99 %{_includedir}/zipconf.h
100 %{_pkgconfigdir}/libzip.pc
101 %{_mandir}/man3/libzip.3*
102 %{_mandir}/man3/zip_*.3*
105 %defattr(644,root,root,755)