qtparted rpmbuild problem
John Thompson
john at os2.dhs.org
Wed May 5 18:39:46 UTC 2004
I'm attempting to build a binary rpm from the qtparted-0.4.4 sources. A
.spec file is included in the tarball, so I used "rpmbuild -ba
/usr/src/SPECS/qtparted.spec" to build the package. It appears to
compile properly, but fails during the rpm packaging:
+ strip /var/tmp/qtparted-root/sbin/qtparted
+ cd /var/tmp/qtparted-root
+ find . -type d
+ sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,'
+ find . -type f
+ sed 's,^\.,\%attr(-\,root\,root) ,'
+ find . -type l
+ sed 's,^\.,\%attr(-\,root\,root) ,'
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/qtparted-0.4.4
0 blocks
find: /var/tmp/qtparted-root/usr/lib/debug: No such file or directory
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
Processing files: qtparted-0.4.4-1
error: File not found:
/var/tmp/qtparted-root/usr/share/man/man1/qtparted.1
Processing files: qtparted-debuginfo-0.4.4-1
RPM build errors:
File not found: /var/tmp/qtparted-root/usr/share/man/man1/qtparted.1
Sure enough, /var/tmp/qtparted-root/usr/share/man/man1/qtparted.1 does not
exist, but /var/tmp/qtparted-root/usr/share/man/man1/qtparted.1.gz does
exist. How the blazes can I edit the .spec file to include qtparted.1.gz
instead of qtparted.1? I see no reference to either in the .spec file,
but AFAICT the failure occurs somewhere in the %install section:
[...]
%build
%configure --prefix=%{prefix} --sbindir=%{sbindir} --disable-mt --disable-reiserfs
make
%install
rm -rf "$RPM_BUILD_ROOT"
make DESTDIR="$RPM_BUILD_ROOT" install
strip "${RPM_BUILD_ROOT}%{sbindir}"/qtparted
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f ../file.list.%{name}
%changelog
[...]
How do I fix this?
--
-John (john at os2.dhs.org)
More information about the fedora-list
mailing list