From 2fa54f1c7aa08d2c6e0b357a35c7e22d3ca302e0 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Wed, 18 Jul 2001 09:12:05 +0000 Subject: [PATCH] RPM spec update and time.h cleanups (from RedHat latest rpm) --- dump.spec | 13 +++++++++---- dump/itime.c | 4 ++-- dump/main.c | 4 ++-- dump/optr.c | 3 ++- dump/tape.c | 3 ++- dump/unctime.c | 3 ++- 6 files changed, 19 insertions(+), 11 deletions(-) diff --git a/dump.spec b/dump.spec index 6603fd7..50645ac 100644 --- a/dump.spec +++ b/dump.spec @@ -2,7 +2,7 @@ # XXX --enable-kerberos needs krcmd %define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" --enable-readline --enable-largefile --enable-qfa -Summary: Programs for backing up and restoring filesystems. +Summary: Programs for backing up and restoring ext2/ext3 filesystems. Name: dump Version: 0.4b22 Release: 1 @@ -10,7 +10,7 @@ License: BSD Group: Applications/Archiving Source: http://download.sourceforge.net/dump/dump-%{version}.tar.gz Requires: rmt -BuildRequires: e2fsprogs-devel +BuildPrereq: e2fsprogs-devel, libtermcap-devel, readline-devel BuildRoot: %{_tmppath}/%{name}-root %description @@ -58,7 +58,11 @@ This packages contains statically linked versions of dump and restore. %build %configure %{myoptions} --enable-static -make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" +%ifarch alpha +RPM_OPT_FLAGS="" +%endif +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ + -Wmissing-prototypes -Wno-char-subscripts" mv dump/dump dump/dump.static mv restore/restore restore/restore.static @@ -67,7 +71,8 @@ make distclean %configure %{myoptions} --enable-rmt -make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ + -Wmissing-prototypes -Wno-char-subscripts" %install rm -rf %{buildroot} diff --git a/dump/itime.c b/dump/itime.c index cc92bb5..41eb78a 100644 --- a/dump/itime.c +++ b/dump/itime.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: itime.c,v 1.19 2001/06/18 10:58:28 stelian Exp $"; + "$Id: itime.c,v 1.20 2001/07/18 09:12:05 stelian Exp $"; #endif /* not lint */ #include @@ -55,6 +55,7 @@ static const char rcsid[] = #include #include +#include #ifdef __linux__ #ifdef HAVE_EXT2FS_EXT2_FS_H #include @@ -62,7 +63,6 @@ static const char rcsid[] = #include #endif #include -#include #include #include #include diff --git a/dump/main.c b/dump/main.c index ae9ffce..15d00f3 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.49 2001/06/18 10:58:28 stelian Exp $"; + "$Id: main.c,v 1.50 2001/07/18 09:12:05 stelian Exp $"; #endif /* not lint */ #include @@ -58,6 +58,7 @@ static const char rcsid[] = #include #include +#include #ifdef __linux__ #ifdef HAVE_EXT2FS_EXT2_FS_H #include @@ -65,7 +66,6 @@ static const char rcsid[] = #include #endif #include -#include #include #include #elif defined sunos diff --git a/dump/optr.c b/dump/optr.c index 88ff63d..d1cdf1d 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -41,13 +41,14 @@ #ifndef lint static const char rcsid[] = - "$Id: optr.c,v 1.24 2001/06/18 11:07:45 stelian Exp $"; + "$Id: optr.c,v 1.25 2001/07/18 09:12:05 stelian Exp $"; #endif /* not lint */ #include #include #include #include +#include #include #include diff --git a/dump/tape.c b/dump/tape.c index f846221..25d7c50 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.47 2001/06/18 10:58:28 stelian Exp $"; + "$Id: tape.c,v 1.48 2001/07/18 09:12:05 stelian Exp $"; #endif /* not lint */ #include @@ -62,6 +62,7 @@ int write(), read(); #ifdef __linux__ #include +#include #include #endif #include diff --git a/dump/unctime.c b/dump/unctime.c index c03bb65..d617544 100644 --- a/dump/unctime.c +++ b/dump/unctime.c @@ -41,10 +41,11 @@ #ifndef lint static const char rcsid[] = - "$Id: unctime.c,v 1.11 2001/06/18 10:58:28 stelian Exp $"; + "$Id: unctime.c,v 1.12 2001/07/18 09:12:05 stelian Exp $"; #endif /* not lint */ #include +#include #include #ifdef __STDC__ #include -- 2.39.5