# # spec file for package dietzlib (Version 1.2.3) # # Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org # # norootforbuild Name: dietzlib BuildRequires: dietlibc License: Other License(s), see package Group: System/Libraries Autoreqprov: on Version: 1.2.3 Release: 3 Summary: Data Compression Library Source: zlib-%{version}.tar.bz2 Patch: zlib-1.2.1-make-test.patch Patch1: zlib-1.2.1-vsnprintf.patch Patch2: zlib-1.2.1-CFLAGS.dif Patch3: zlib-1.2.2-format.patch URL: http://www.zlib.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). These documents are also available in other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html. Authors: -------- Rob Hooft Michael Mauldin %prep %setup -n zlib-%version %patch -p1 %patch1 %patch2 %patch3 -p1 %build CC="diet -v gcc" \ LD="diet -v gcc" \ CFLAGS="$RPM_OPT_FLAGS" ./configure --static make make test %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/%_lib # static lib make libz.a install -m 644 libz.a $RPM_BUILD_ROOT/usr/%{_lib}/libdiet_z.a %clean rm -rf %RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/%{_lib}/libdiet_z.a %changelog -n dietzlib * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Wed Jul 27 2005 - ro@suse.de - Upgraded to 1.2.3. Security fix is now in mainline. * Wed Jul 06 2005 - meissner@suse.de - added denial of service attack fix. * Tue Jun 14 2005 - ro@suse.de - cloned from zlib / built against dietlibc - needed until dietlibc implements fortify extensions