From b05be2647f6d7a32c14504d09ba7cd3978685ba3fd28a5718c39cc0339ce6194 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 12 Jan 2008 02:49:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=5 --- zlib.changes | 7 +++++++ zlib.spec | 27 ++++++++++++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/zlib.changes b/zlib.changes index 813fbc9..3650fef 100644 --- a/zlib.changes +++ b/zlib.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 12 03:41:39 CET 2008 - crrodriguez@suse.de + +- fix library-without-ldconfig-* errors +- do not delete buildroot on install section +- run make test in the check section. + ------------------------------------------------------------------- Thu May 3 11:41:41 CEST 2007 - rguenther@suse.de diff --git a/zlib.spec b/zlib.spec index 4f8e510..91cfc2b 100644 --- a/zlib.spec +++ b/zlib.spec @@ -1,7 +1,7 @@ # # spec file for package zlib (Version 1.2.3) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 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. # @@ -15,16 +15,16 @@ License: Other uncritical OpenSource License Group: System/Libraries Provides: libz Obsoletes: libz -Autoreqprov: on +AutoReqProv: on Version: 1.2.3 -Release: 50 +Release: 87 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/ +Url: http://www.zlib.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -41,11 +41,11 @@ Authors: Michael Mauldin %package devel -Summary: Include Files and Libraries mandatory for Development. +Summary: Include Files and Libraries mandatory for Development Group: Development/Languages/C and C++ Provides: libz:/usr/include/zlib.h -Requires: zlib = %{version} -Autoreqprov: on +Requires: zlib = %{version} glibc-devel +AutoReqProv: on %description devel This package contains all necessary include files and libraries needed @@ -64,10 +64,11 @@ libraries. %build CFLAGS="$RPM_OPT_FLAGS" ./configure --shared make + +%check make test %install -rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{%_lib,/usr/%_lib} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3 mkdir -p $RPM_BUILD_ROOT/usr/include @@ -84,7 +85,11 @@ install -m 644 zlib.3 $RPM_BUILD_ROOT/%{_mandir}/man3 install -m 644 zutil.h $RPM_BUILD_ROOT/usr/include %clean -rm -rf %RPM_BUILD_ROOT +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %defattr(-,root,root) @@ -102,6 +107,10 @@ rm -rf %RPM_BUILD_ROOT /usr/%{_lib}/libz.a %changelog +* Sat Jan 12 2008 - crrodriguez@suse.de +- fix library-without-ldconfig-* errors +- do not delete buildroot on install section +- run make test in the check section. * Thu May 03 2007 - rguenther@suse.de - move documentation files to zlib-devel package * Wed Jan 31 2007 - ro@suse.de