update to 1.2.11

rebuilt with --enable-static=no for libminizip [release 1.2.11-1mamba;Sat Jun 17 2017]
This commit is contained in:
Silvan Calarco 2024-01-06 06:15:42 +01:00
parent 17caaa98a9
commit bd6ee41981

View File

@ -1,6 +1,6 @@
Name: libz Name: libz
Version: 1.2.8 Version: 1.2.11
Release: 2mamba Release: 1mamba
Summary: The zlib compression and decompression library Summary: The zlib compression and decompression library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -36,17 +36,29 @@ The zlib compression library provides in-memory compression and decompression fu
This version of the library supports only one compression method (deflation), but other algorithms may be added later, which will have the same stream interface. This version of the library supports only one compression method (deflation), but other algorithms may be added later, which will have the same stream interface.
The zlib library is used by many different system programs. The zlib library is used by many different system programs.
This package contains static libraries and header files need for development. This package contains static libraries and header files needed for development.
%package -n minizip %package -n libminizip
Summary: Minizip manipulates files from a .zip archive Summary: Minizip manipulates files from a .zip archive
Group: System/Libraries Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: minizip
Obsoletes: minizip
%description -n libminizip
Minizip manipulates files from a .zip archive.
%package -n libminizip-devel
Summary: Static libraries and headers for libminizip
Group: Development/Libraries
Requires: libminizip = %{?epoch:%epoch:}%{version}-%{release}
Provides: minizip-devel
Obsoletes: minizip-devel Obsoletes: minizip-devel
%description -n minizip %description -n libminizip-devel
Minizip manipulates files from a .zip archive. Minizip manipulates files from a .zip archive.
This package contains static libraries and header files needed for development.
%ifarch x86_64_disabled %ifarch x86_64_disabled
%package -n lib32-libz %package -n lib32-libz
Summary: The zlib compression and decompression library (32 bit) Summary: The zlib compression and decompression library (32 bit)
@ -73,14 +85,14 @@ This package contains static libraries and header files need for development.
%prep %prep
%setup -q -n zlib-%{version} %setup -q -n zlib-%{version}
%patch0 -p1 -b .missing_zutil_header #%patch0 -p1 -b .missing_zutil_header
%patch1 -p1 -b .atools #%patch1 -p1 -b .atools
#%patch2 -p1 -b .g #%patch2 -p1 -b .g
mkdir contrib/minizip/m4 #mkdir contrib/minizip/m4
cp test/minigzip.c contrib/minizip #cp test/minigzip.c contrib/minizip
iconv -f windows-1252 -t utf-8 <ChangeLog >ChangeLog.tmp #iconv -f windows-1252 -t utf-8 <ChangeLog >ChangeLog.tmp
mv ChangeLog.tmp ChangeLog #mv ChangeLog.tmp ChangeLog
%build %build
CC=%{_target_platform}-gcc \ CC=%{_target_platform}-gcc \
@ -90,14 +102,13 @@ CXXLAGS="%{optflags}" \
%make %make
( cd contrib/minizip
cd contrib/minizip cp Makefile Makefile.orig
# autoreconf --install cp ../README.contrib readme.txt
# % configure \ autoreconf --install
# CPPFLAGS="-I%{_builddir}/zlib-%{version}" \ %configure --enable-static=no
# LDFLAGS="-L%{_builddir}/zlib-%{version}" %make CC=%{_host}-gcc
%make CC=%{_host}-gcc cd ../..
)
%if "%{_target_cpu}" == "%{_build_cpu}" %if "%{_target_cpu}" == "%{_build_cpu}"
%make test %make test
@ -112,10 +123,11 @@ mv %{buildroot}%{_libdir}/libz.so.* %{buildroot}/%{_lib}
ln -sf ../../%{_lib}/libz.so.%{version} %{buildroot}%{_libdir}/libz.so ln -sf ../../%{_lib}/libz.so.%{version} %{buildroot}%{_libdir}/libz.so
cd contrib/minizip cd contrib/minizip
install -D -m0755 minizip %{buildroot}%{_bindir}/minizip %makeinstall
install -D -m0755 miniunz %{buildroot}%{_bindir}/miniunz #install -D -m0755 minizip %{buildroot}%{_bindir}/minizip
install -d -m0755 %{buildroot}%{_includedir}/minizip #install -D -m0755 miniunz %{buildroot}%{_bindir}/miniunz
cp *.h %{buildroot}%{_includedir}/minizip/ #install -d -m0755 %{buildroot}%{_includedir}/minizip
#cp *.h %{buildroot}%{_includedir}/minizip/
cd ../.. cd ../..
#%ifarch x86_64_disabled #%ifarch x86_64_disabled
@ -145,18 +157,26 @@ cd ../..
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/*.h %{_includedir}/*.h
%dir %{_includedir}/minizip
%{_includedir}/minizip/*.h
%{_libdir}/libz.a %{_libdir}/libz.a
%{_libdir}/libz.so %{_libdir}/libz.so
%{_libdir}/pkgconfig/zlib.pc %{_libdir}/pkgconfig/zlib.pc
%{_mandir}/man3/zlib.* %{_mandir}/man3/zlib.*
%doc ChangeLog FAQ README %doc ChangeLog FAQ README
%files -n minizip %files -n libminizip
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/minizip %{_libdir}/libminizip.so.*
%{_bindir}/miniunz
#%{_bindir}/minizip
#%{_bindir}/miniunz
%files -n libminizip-devel
%defattr(-,root,root)
%dir %{_includedir}/minizip
%{_includedir}/minizip/*.h
%{_libdir}/libminizip.la
%{_libdir}/libminizip.so
%{_libdir}/pkgconfig/minizip.pc
%doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt %doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
#%ifarch x86_64_disabled #%ifarch x86_64_disabled
@ -172,6 +192,10 @@ cd ../..
#%endif #%endif
%changelog %changelog
* Sat Jun 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.11-1mamba
- update to 1.2.11
- rebuilt with --enable-static=no for libminizip
* Sun Dec 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.8-2mamba * Sun Dec 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.8-2mamba
- install minizip headers for chromium - install minizip headers for chromium