I've had this problem before, and it's defeated me. I've downloaded the (obsolete maximum-rpm) and perused the relevant section to no avail. The problem is that in some cases, rpm can't find the files it's supposed to package. I'd heard good reports of gpart, a magic partition table fixer upper. The only source rpm I could find was aSuSE srpm, so I downloaded ftp://sunsite.unc.edu/pub/Linux/distributions/suse/suse/zq1/gpart.spm (I am a bit doubtful about putting binary rpms from another distro on my RHL system. Prdence said, "Source seems sensible," so that's what I got. Despite seemingly endless stuffing around, here's how it dies: Executing: %install + umask 022 ++ mkdir -p /tmp/gpart ++ echo /tmp/gpart + cd /tmp/gpart + cd gpart-0.1b + rm -rf /tmp/Bgpart + make install prefix=/tmp/Bgpart/usr make prefix=/tmp/Bgpart/usr -C src install make[1]: Entering directory `/tmp/gpart/gpart-0.1b/src' install -d /tmp/Bgpart/usr/bin install -s gpart /tmp/Bgpart/usr/bin make[1]: Leaving directory `/tmp/gpart/gpart-0.1b/src' make prefix=/tmp/Bgpart/usr -C man install make[1]: Entering directory `/tmp/gpart/gpart-0.1b/man' install -d /tmp/Bgpart/usr/man install -d /tmp/Bgpart/usr/man/man8 install -m 0444 gpart.8 /tmp/Bgpart/usr/man/man8 make[1]: Leaving directory `/tmp/gpart/gpart-0.1b/man' + exit 0 Processing files: gpart File not found: /usr/bin/gpart File not found: /usr/man/man8/gpart.8 Executing: %doc + umask 022 ++ mkdir -p /tmp/gpart ++ echo /tmp/gpart + cd /tmp/gpart + cd gpart-0.1b + DOCDIR=/tmp/Bgpart/usr/doc/gpart-0.1b + export DOCDIR + rm -rf /tmp/Bgpart/usr/doc/gpart-0.1b + /bin/mkdir -p /tmp/Bgpart/usr/doc/gpart-0.1b + cp -pr COPYING /tmp/Bgpart/usr/doc/gpart-0.1b + cp -pr INSTALL /tmp/Bgpart/usr/doc/gpart-0.1b + cp -pr LSM /tmp/Bgpart/usr/doc/gpart-0.1b + cp -pr README /tmp/Bgpart/usr/doc/gpart-0.1b + exit 0 File not found: /usr/doc/gpart-0.1b Provides: gpart [summer@possum summer]$ I'm attaching the full spec file, but here's the bit I think most relevant: %files %defattr(-,root,root) /usr/bin/gpart /usr/man/man8/gpart.8 %doc COPYING %doc INSTALL %doc LSM %doc README Now, I have almost countless rpms here that build properly. I can't for the life of me see what the material difference is. Any ideas?
# # spec file for package gpart (Version 0.1b) # # Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. # # please send bugfixes or comments to [EMAIL PROTECTED] # Vendor: SuSE GmbH, Nuernberg, Germany Distribution: SuSE Linux 6.2 (i386) Name: gpart Release: 36 Copyright: 1999 Michail Brzitwa Group: unsorted Provides: gpart Autoreqprov: on Packager: [EMAIL PROTECTED] Version: 0.1b Summary: Tool that can guess a lost partition table Source: gpart-0.1b.tar.gz Patch: gpart-0.1b.dif %description gpart is a small tool which tries to guess what partitions are on a PC type harddisk in case the primary partition table was damaged. gpart supports, among others, partitions formatted as ext2, FAT 12/16/32, NTFS and HPFS. Please read the file /usr/doc/packages/gpart/README and the gpart manpage before using gpart. Authors: -------- [EMAIL PROTECTED] %prep %setup -n gpart-0.1b %patch %build #./configure mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/doc/%{Name}-%{Version} make prefix=${RPM_BUILD_ROOT}/usr find ${RPM_BUILD_ROOT} -type f -ls %install rm -rf $RPM_BUILD_ROOT make install prefix=${RPM_BUILD_ROOT}/usr #Check %files %defattr(-,root,root) /usr/bin/gpart /usr/man/man8/gpart.8 %doc COPYING %doc INSTALL %doc LSM %doc README
Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index.