]> git.pld-linux.org Git - packages/libzip.git/blob - libzip.spec
Update to 1.2.0 (note: new soname)
[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:        1.2.0
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://www.nih.at/libzip/%{name}-%{version}.tar.xz
9 # Source0-md5:  2a9b316d16218f1b7562d5a5e0fcbd79
10 URL:            http://www.nih.at/libzip/
11 BuildRequires:  autoconf >= 2.60
12 BuildRequires:  automake
13 BuildRequires:  libtool >= 2:2
14 BuildRequires:  tar >= 1:1.22
15 BuildRequires:  xz
16 BuildRequires:  zlib-devel >= 1.1.2
17 Requires:       zlib >= 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
60 %build
61 %{__libtoolize}
62 %{__aclocal}
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzip.la
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README.md NEWS.md THANKS LICENSE AUTHORS
85 %attr(755,root,root) %{_bindir}/zipcmp
86 %attr(755,root,root) %{_bindir}/zipmerge
87 %attr(755,root,root) %{_bindir}/ziptool
88 %attr(755,root,root) %{_libdir}/libzip.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libzip.so.5
90 %{_mandir}/man1/zipcmp.1*
91 %{_mandir}/man1/zipmerge.1*
92 %{_mandir}/man1/ziptool.1*
93
94 %files devel
95 %defattr(644,root,root,755)
96 %doc API-CHANGES TODO.md
97 %attr(755,root,root) %{_libdir}/libzip.so
98 %dir %{_libdir}/libzip
99 %{_libdir}/libzip/include
100 %{_includedir}/zip.h
101 %{_pkgconfigdir}/libzip.pc
102 %{_mandir}/man3/ZIP_SOURCE_GET_ARGS.3*
103 %{_mandir}/man3/libzip.3*
104 %{_mandir}/man3/zip_*.3*
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libzip.a
This page took 0.035879 seconds and 4 git commands to generate.