rpms/dietlibc/F-8 dietlibc.spec,1.31,1.32
Enrico Scholz (ensc)
fedora-extras-commits at redhat.com
Sat Jun 21 13:13:04 UTC 2008
Author: ensc
Update of /cvs/extras/rpms/dietlibc/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22050
Modified Files:
dietlibc.spec
Log Message:
- updated to CVS snapshot 20080212
- fixed printf regression for '%+04i' style formats
- added %%check and run a testsuite; it does not succeed now so it is
for informational purposes only...
Index: dietlibc.spec
===================================================================
RCS file: /cvs/extras/rpms/dietlibc/F-8/dietlibc.spec,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- dietlibc.spec 1 Sep 2007 13:22:12 -0000 1.31
+++ dietlibc.spec 21 Jun 2008 13:12:17 -0000 1.32
@@ -5,6 +5,8 @@
## Fedora Extras specific customization below...
##
+%global snapshot 20080212
+
%ifarch %ix86 x86_64 arm
%global do_dyn 0
%else
@@ -27,12 +29,18 @@
Summary: Small libc implementation
Name: dietlibc
Version: 0.31
-Release: %release_func 1
+Release: %release_func 1%{?snapshot:.%snapshot}
License: GPL
Group: Development/Libraries
URL: http://www.fefe.de/dietlibc/
+%if !0%{?snapshot:1}
Source0: http://www.kernel.org/pub/linux/libs/dietlibc/%name-%version.tar.bz2
Source1: http://www.fefe.de/dietlibc/%name-%version.tar.bz2.sig
+%else
+# generated by 'make cvs-sources [CVS_DATE=....]'
+Source0: %name-%version.%snapshot.tar.bz2
+%endif
+Source10: runtests-X.sh
Patch1: dietlibc-0.28-setpriority.patch
Patch10: dietlibc-0.29-scall.patch
Patch20: dietlibc-0.29-nostackprotector.patch
@@ -40,6 +48,9 @@
Patch31: dietlibc-0.31-defpath.patch
Patch32: dietlibc-0.31-stacksmash.patch
Patch33: dietlibc-0.31-stacksmash-dyn.patch
+Patch34: dietlibc-0.31.20080212-printffmt.patch
+Patch40: dietlibc-0.31-printftest.patch
+Patch41: dietlibc-0.31.20080212-teststdout.patch
BuildRoot: %_tmppath/%name-%version-%release-buildroot
%{?with_dyn:Requires: dietlibc-lib = %version-%release}
%{!?with_dyn:Obsoletes: dietlibc-lib < %version-%release}
@@ -66,13 +77,17 @@
%prep
-%setup -q
+%setup -q %{?snapshot:-n %name-%version.%snapshot}
%patch1 -p1 -b .nice
%patch10 -p1 -b .scall
%patch30 -p1 -b .longdouble
%patch31 -p1 -b .defpath
%patch32 -p1 -b .stacksmash
%patch33 -p1 -b .stacksmash-dyn
+%patch34 -p1 -b .printffmt
+
+%patch40 -p1 -b .printftest
+%patch41 -p1 -b .teststdout
%ifnarch i386 x86_64
%patch20 -p1 -b .nostackprotector
@@ -85,10 +100,14 @@
sed -i -e 's!strip !: !g' Makefile
-%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os
+%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -O0 -g3
%global basemakeflags prefix=%_libdir/dietlibc BINDIR=%_bindir MAN1DIR=%_mandir/man1 COMMENT=: CFLAGS="$RPM_OPT_FLAGS %fixcflags" PDIET=%_libdir/dietlibc
%global makeflags %basemakeflags
+for i in `find test -name 'runtests.sh'`; do
+ ln -s %SOURCE10 `dirname $i`/runtests-X.sh
+done
+
%build
make %makeflags all %{?_smp_mflags}
@@ -109,6 +128,15 @@
rm -f $RPM_BUILD_ROOT%_bindir/dnsd
+%check
+make %makeflags -C test all %{?_smp_mflags} DIET=$(echo `pwd`/bin-*/diet)
+make %makeflags -C test/inet all %{?_smp_mflags} DIET=$(echo `pwd`/bin-*/diet)
+
+cd test
+ulimit -m $[ 50*1024 ] -v $[ 100*1024 ] -d $[ 50*1024 ]
+bash ./runtests-X.sh || :
+
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -132,6 +160,12 @@
%changelog
+* Wed Feb 13 2008 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.31-1.20080212
+- updated to CVS snapshot 20080212
+- fixed printf regression for '%+04i' style formats
+- added %%check and run a testsuite; it does not succeed now so it is
+ for informational purposes only...
+
* Sat Sep 1 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.31-1
- updated to 0.31
- removed the no-stack-protector bits for i386 and x86_64 archs
More information about the fedora-extras-commits
mailing list