]> git.pld-linux.org Git - packages/libzip.git/blob - libzip.spec
up date php patch from fedora; rel 2
[packages/libzip.git] / libzip.spec
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
3 Name:           libzip
4 Version:        0.10.1
5 Release:        2
6 License:        BSD
7 Group:          Libraries
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)
19
20 %description
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.
25
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.
31
32 %package devel
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
38
39 %description devel
40 Header files for libzip library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libzip.
44
45 %package static
46 Summary:        Static libzip library
47 Summary(pl.UTF-8):      Statyczna biblioteka libzip
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static libzip library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka libzip.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 %{__libtoolize}
63 %{__aclocal}
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzip.la
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
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*
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libzip.so
98 %{_includedir}/zip.h
99 %{_includedir}/zipconf.h
100 %{_pkgconfigdir}/libzip.pc
101 %{_mandir}/man3/libzip.3*
102 %{_mandir}/man3/zip_*.3*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/libzip.a
This page took 0.080521 seconds and 4 git commands to generate.