diff -Nru rpm-4.1/lib/rpmrc.c rpm-4.1.new/lib/rpmrc.c
--- rpm-4.1/lib/rpmrc.c Tue Aug 20 16:53:44 2002
+++ rpm-4.1.new/lib/rpmrc.c Tue Mar 11 18:41:48 2003
-@@ -1756,27 +1756,40 @@
+@@ -1756,27 +1756,39 @@
/* Expand ~/ to $HOME/ */
fn[0] = '\0';
if (r[0] == '~' && r[1] == '/') {
+ strncat(fn, "/", sizeof(fn) - strlen(fn));
+ r+=2;
+
-+ if (r[0] == '.') r++;
+ } else {
+ if (home == NULL) {
/* XXX Only /usr/lib/rpm/rpmrc must exist in default rcfiles list */
diff -Nru rpm-4.1/rpmio/macro.c rpm-4.1.new/rpmio/macro.c
--- rpm-4.1/rpmio/macro.c Tue Sep 17 14:58:23 2002
+++ rpm-4.1.new/rpmio/macro.c Tue Mar 11 18:21:59 2003
-@@ -1614,15 +1614,23 @@
+@@ -1614,15 +1614,22 @@
buf[0] = '\0';
if (mfile[0] == '~' && mfile[1] == '/') {
char *home;
+
+ if (etc_dir) {
+ mfile += 2;
-+ if (mfile[0] == '.') mfile++;
+ strncpy(buf, etc_dir, sizeof(buf));
+ strncat(buf, "/", sizeof(buf) - strlen(buf));
+ } else {
--- /dev/null
+--- rpm-4.3/rpmio/rpmio.h.orig 2003-05-10 17:20:20.000000000 +0200
++++ rpm-4.3/rpmio/rpmio.h 2003-06-19 23:08:44.000000000 +0200
+@@ -501,7 +501,7 @@
+ int fdClose( /*@only@*/ void * cookie)
+ /*@globals errno, fileSystem, systemState, internalState @*/
+ /*@modifies *cookie, errno, fileSystem, systemState, internalState @*/;
+-#define fdCLose(_fd) fdio->close(_fd)
++#define fdClose(_fd) fdio->close(_fd)
+
+ /**
+ */
# unchanged
%pyrequires_eq() Requires: %1 >= %py_ver %1 < %(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
-+%specflags ""
-+%specflags_ia32 ""
-+%specflags_i386 ""
-+%specflags_i486 ""
-+%specflags_i586 ""
-+%specflags_i686 ""
-+%specflags_athlon ""
-+%specflags_ia64 ""
-+%specflags_x86_64 ""
-+%specflags_alpha ""
-+%specflags_alphaev5 ""
-+%specflags_alphaev56 ""
-+%specflags_alphapca56 ""
-+%specflags_alphaev6 ""
-+%specflags_alphaev67 ""
-+%specflags_sparc ""
-+%specflags_sparcv9 ""
-+%specflags_sparc64 ""
-+%specflags_m68k ""
-+%specflags_ppc ""
-+%specflags_ppciseries ""
-+%specflags_ppcpseries ""
-+%specflags_ppc64 ""
-+%specflags_parisc ""
-+%specflags_hppa1_0 ""
-+%specflags_hppa1_1 ""
-+%specflags_hppa1_1 ""
-+%specflags_hppa2_0 ""
-+%specflags_mips ""
-+%specflags_mipsel ""
-+%specflags_armv3l ""
-+%specflags_armv4b ""
-+%specflags_armv4l ""
-+%specflags_atarist ""
-+%specflags_atariste ""
-+%specflags_ataritt ""
-+%specflags_falcon ""
-+%specflags_atariclone ""
-+%specflags_milan ""
-+%specflags_hades ""
-+%specflags_s390 ""
-+%specflags_s390x ""
++%specflags %{nil}
++%specflags_ia32 %{nil}
++%specflags_i386 %{nil}
++%specflags_i486 %{nil}
++%specflags_i586 %{nil}
++%specflags_i686 %{nil}
++%specflags_athlon %{nil}
++%specflags_ia64 %{nil}
++%specflags_x86_64 %{nil}
++%specflags_alpha %{nil}
++%specflags_alphaev5 %{nil}
++%specflags_alphaev56 %{nil}
++%specflags_alphapca56 %{nil}
++%specflags_alphaev6 %{nil}
++%specflags_alphaev67 %{nil}
++%specflags_sparc %{nil}
++%specflags_sparcv9 %{nil}
++%specflags_sparc64 %{nil}
++%specflags_m68k %{nil}
++%specflags_ppc %{nil}
++%specflags_ppciseries %{nil}
++%specflags_ppcpseries %{nil}
++%specflags_ppc64 %{nil}
++%specflags_parisc %{nil}
++%specflags_hppa1_0 %{nil}
++%specflags_hppa1_1 %{nil}
++%specflags_hppa1_1 %{nil}
++%specflags_hppa2_0 %{nil}
++%specflags_mips %{nil}
++%specflags_mipsel %{nil}
++%specflags_armv3l %{nil}
++%specflags_armv4b %{nil}
++%specflags_armv4l %{nil}
++%specflags_atarist %{nil}
++%specflags_atariste %{nil}
++%specflags_ataritt %{nil}
++%specflags_falcon %{nil}
++%specflags_atariclone %{nil}
++%specflags_milan %{nil}
++%specflags_hades %{nil}
++%specflags_s390 %{nil}
++%specflags_s390x %{nil}
Name: rpm
%define ver 4.3
Version: %{ver}
-%define rel 0.%{snap}.9
+%define rel 0.%{snap}.10
Release: %{rel}
License: GPL
Group: Base
Patch28: %{name}-python-beecrypt.patch
Patch29: %{name}-man-typos.patch
Patch30: %{name}-man-pl.patch
+Patch31: %{name}-fdClose-typo.patch
URL: http://www.rpm.org/
Icon: rpm.gif
BuildRequires: autoconf >= 2.52
%patch28 -p1
%patch29 -p1
%patch30 -p1
+%patch31 -p1
cd scripts;
mv -f perl.req perl.req.in