/[packages]/cauldron/libzip/current/SPECS/libzip.spec
ViewVC logotype

Contents of /cauldron/libzip/current/SPECS/libzip.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 360464 - (show annotations) (download)
Sat Jan 12 20:10:15 2013 UTC (11 years, 3 months ago) by cjw
File size: 2710 byte(s)
- patch4: fix tests with automake 1.13

1 %define major 2
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.10.1
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.bz2
13 Patch0: libzip-0.10-fix_pkgconfig.patch
14 Patch1: libzip-0.10_rc1-fix_headers.patch
15 Patch2: libzip-0.10-php.patch
16 Patch3: libzip-0.10.1-long-crc.patch
17 Patch4: libzip-0.10.1-automake-1.13.patch
18 BuildRequires: libtool
19 BuildRequires: zlib-devel
20
21 %description
22 libzip is a C library for reading, creating, and modifying zip archives. Files
23 can be added from data buffers, files, or compressed data copied directly from
24 other zip archives. Changes made without closing the archive can be reverted.
25 The API is documented by man pages.
26
27 %package -n %{libname}
28 Summary: A C library for reading, creating, and modifying zip archives
29 Group: System/Libraries
30
31 %description -n %{libname}
32 libzip is a C library for reading, creating, and modifying zip archives. Files
33 can be added from data buffers, files, or compressed data copied directly from
34 other zip archives. Changes made without closing the archive can be reverted.
35 The API is documented by man pages.
36
37 %package -n %{develname}
38 Summary: Static library and header files for the %{name} library
39 Group: Development/C
40 Requires: %{name} = %{version}
41 Requires: %{libname} = %{version}
42 Provides: %{name}-devel = %{version}
43 Provides: lib%{name}-devel = %{version}
44 Obsoletes: %{mklibname zip 1}-devel
45
46 %description -n %{develname}
47 libzip is a C library for reading, creating, and modifying zip archives. Files
48 can be added from data buffers, files, or compressed data copied directly from
49 other zip archives. Changes made without closing the archive can be reverted.
50 The API is documented by man pages.
51
52 This package contains the static %{name} library and its header files.
53
54 %prep
55 %setup -q -n %{name}-%{version}
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59 %patch3 -p1
60 %patch4 -p1 -b .automake-1_13
61
62 # fix test return state
63 sed -i -e 's:19/2:19/0:' regress/open_nonarchive.test
64
65 %build
66 autoreconf -fi
67 %configure2_5x --disable-static
68 %make
69
70 %check
71 make check
72
73 %install
74 rm -rf %{buildroot}
75
76 %makeinstall_std
77
78 rm -f %{buildroot}%{_libdir}/*.la
79
80
81 %files
82 %doc AUTHORS NEWS README THANKS TODO
83 %{_bindir}/zipcmp
84 %{_bindir}/zipmerge
85 %{_bindir}/ziptorrent
86 %{_mandir}/man1/zipcmp.1*
87 %{_mandir}/man1/zipmerge.1*
88 %{_mandir}/man1/ziptorrent.1*
89
90 %files -n %{libname}
91 %doc AUTHORS NEWS README THANKS TODO
92 %{_libdir}/lib*.so.%{major}*
93
94 %files -n %{develname}
95 %{_includedir}/*
96 %{_libdir}/*.so
97 %{_libdir}/pkgconfig/libzip.pc
98 %{_mandir}/man3/*

  ViewVC Help
Powered by ViewVC 1.1.30