1 |
%define lib_major 1 |
%define lib_major 1 |
2 |
%define lib_name %mklibname %{name}%{lib_major} |
%define lib_name %mklibname %{name}%{lib_major} |
3 |
%define devel_name %mklibname %{name} -d |
%define devel_name %mklibname %{name} -d |
4 |
|
# for uClibc-zlib |
5 |
|
%define uClib_name %mklibname uClibc-%{name}%{lib_major} |
6 |
|
%define uClib_devel_name %mklibname uClibc-%{name} -d |
7 |
|
|
8 |
%define build_biarch 0 |
%define build_biarch 0 |
9 |
# Enable bi-arch build on ppc64, sparc64 and x86-64 |
# Enable bi-arch build on ppc64, sparc64 and x86-64 |
20 |
Summary: The zlib compression and decompression library |
Summary: The zlib compression and decompression library |
21 |
Name: zlib |
Name: zlib |
22 |
Version: 1.2.5 |
Version: 1.2.5 |
23 |
Release: %mkrel 3 |
Release: %mkrel 5 |
24 |
Group: System/Libraries |
Group: System/Libraries |
25 |
License: BSD |
License: BSD |
26 |
URL: http://www.gzip.org/zlib/ |
URL: http://www.gzip.org/zlib/ |
49 |
Obsoletes: libz, libz1, %{name} |
Obsoletes: libz, libz1, %{name} |
50 |
Obsoletes: %{name}%{lib_major} < 1.2.5 |
Obsoletes: %{name}%{lib_major} < 1.2.5 |
51 |
Provides: libz = %{version}-%{release} libz1 = %{version}-%{release} %{name} = %{version}-%{release} |
Provides: libz = %{version}-%{release} libz1 = %{version}-%{release} %{name} = %{version}-%{release} |
|
%if %{with uclibc} |
|
|
Provides: uClibc-zlib = %{version}-%{release} uClibc-zlib1 = %{version}-%{release} |
|
|
Obsoletes: uClibc-zlib <= %{version}-%{release} uClibc-zlib1 <= %{version}-%{release} |
|
|
%endif |
|
52 |
|
|
53 |
%description -n %{lib_name} |
%description -n %{lib_name} |
54 |
The zlib compression library provides in-memory compression and |
The zlib compression library provides in-memory compression and |
65 |
Obsoletes: libz1-devel libz-devel zlib-devel zlib1-devel |
Obsoletes: libz1-devel libz-devel zlib-devel zlib1-devel |
66 |
Obsoletes: %{name}%{lib_major}-devel < 1.2.5 |
Obsoletes: %{name}%{lib_major}-devel < 1.2.5 |
67 |
Provides: libz-devel = %{version}-%{release} lib%{name}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release} |
Provides: libz-devel = %{version}-%{release} lib%{name}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release} |
|
%if %{with uclibc} |
|
|
Provides: uClibc-zlib-devel = %{version}-%{release} uClibc-zlib1-devel = %{version}-%{release} |
|
|
Obsoletes: uClibc-zlib-devel <= %{version}-%{release} uClibc-zlib1-devel <= %{version}-%{release} |
|
|
%endif |
|
68 |
|
|
69 |
%description -n %{devel_name} |
%description -n %{devel_name} |
70 |
The zlib-devel package contains the header files and libraries needed |
The zlib-devel package contains the header files and libraries needed |
74 |
Install the zlib-devel package if you want to develop applications that |
Install the zlib-devel package if you want to develop applications that |
75 |
will use the zlib library. |
will use the zlib library. |
76 |
|
|
77 |
|
%if %{with uclibc} |
78 |
|
%package -n %{uClib_name} |
79 |
|
Summary: The uClibc-zlib compression and decompression library |
80 |
|
Group: System/Libraries |
81 |
|
Conflicts: %{lib_name} < 1.2.5-4 |
82 |
|
Requires: %{lib_name} = %{version}-%{release} |
83 |
|
Provides: uClibc-zlib = %{version}-%{release} uClibc-zlib1 = %{version}-%{release} |
84 |
|
Obsoletes: uClibc-zlib <= %{version}-%{release} uClibc-zlib1 <= %{version}-%{release} |
85 |
|
|
86 |
|
%description -n %{uClib_name} |
87 |
|
The uClibc-zlib compression library provides in-memory compression and |
88 |
|
decompression functions, including integrity checks of the uncompressed |
89 |
|
data. This version of the library supports only one compression method |
90 |
|
(deflation), but other algorithms may be added later, which will have |
91 |
|
the same stream interface. The zlib library is used by many different |
92 |
|
system programs. |
93 |
|
|
94 |
|
%package -n %{uClib_devel_name} |
95 |
|
Summary: Header files and libraries for developing apps which will use uClibc-zlib |
96 |
|
Group: Development/C |
97 |
|
Conflicts: %{devel_name} < 1.2.5-4 |
98 |
|
Requires: %{devel_name} = %{version}-%{release} |
99 |
|
Requires: %{uClib_name} = %{version}-%{release} |
100 |
|
Provides: uClibc-zlib-devel = %{version}-%{release} uClibc-zlib1-devel = %{version}-%{release} |
101 |
|
Obsoletes: uClibc-zlib-devel <= %{version}-%{release} uClibc-zlib1-devel <= %{version}-%{release} |
102 |
|
|
103 |
|
%description -n %{uClib_devel_name} |
104 |
|
The uClibc-zlib-devel package contains the header files and libraries |
105 |
|
needed to develop programs that use the zlib compression and decompression |
106 |
|
library. |
107 |
|
|
108 |
|
Install the uClibc-zlib-devel package if you want to develop applications that |
109 |
|
will use the uClibc-zlib library. |
110 |
|
%endif # with uclibc |
111 |
|
|
112 |
%prep |
%prep |
113 |
%setup -q |
%setup -q |
114 |
%patch1 -p1 -b .multibuild~ |
%patch1 -p1 -b .multibuild |
115 |
%patch2 -p1 -b .lfs |
%patch2 -p1 -b .lfs |
116 |
|
|
117 |
%build |
%build |
200 |
%doc README |
%doc README |
201 |
/%{_lib}/libz.so.%{lib_major}* |
/%{_lib}/libz.so.%{lib_major}* |
202 |
%{_libdir}/libz.so.%{lib_major}* |
%{_libdir}/libz.so.%{lib_major}* |
|
%if %{with uclibc} |
|
|
%{uclibc_root}%{_libdir}/libz.so.%{lib_major}* |
|
|
%endif |
|
203 |
%if %{build_biarch} |
%if %{build_biarch} |
204 |
/lib/libz.so.* |
/lib/libz.so.* |
205 |
%{_prefix}/lib/libz.so.%{lib_major}* |
%{_prefix}/lib/libz.so.%{lib_major}* |
211 |
%{_libdir}/*.a |
%{_libdir}/*.a |
212 |
%{_libdir}/*.so |
%{_libdir}/*.so |
213 |
%{_libdir}/pkgconfig/zlib.pc |
%{_libdir}/pkgconfig/zlib.pc |
|
%if %{with uclibc} |
|
|
%{uclibc_root}%{_libdir}/libz.so |
|
|
%endif |
|
214 |
%if %{build_biarch} |
%if %{build_biarch} |
215 |
%{_prefix}/lib/*.a |
%{_prefix}/lib/*.a |
216 |
%{_prefix}/lib/*.so |
%{_prefix}/lib/*.so |
220 |
%if %{with dietlibc} |
%if %{with dietlibc} |
221 |
%{_prefix}/lib/dietlibc/lib-%{_arch}/libz.a |
%{_prefix}/lib/dietlibc/lib-%{_arch}/libz.a |
222 |
%endif |
%endif |
|
%if %{with uclibc} |
|
|
%{uclibc_root}%{_libdir}/libz.a |
|
|
%endif |
|
223 |
|
|
224 |
|
%if %{with uclibc} |
225 |
|
%files -n %{uClib_name} |
226 |
|
%{uclibc_root}%{_libdir}/libz.so.%{lib_major}* |
227 |
|
|
228 |
|
%files -n %{uClib_devel_name} |
229 |
|
%{uclibc_root}%{_libdir}/libz.so |
230 |
|
%{uclibc_root}%{_libdir}/libz.a |
231 |
|
%endif # with uclibc |