[bt-devel] Bibletime RPM for Red Hat 8
Steven P. Ulrick
bt-devel@crosswire.org
Mon, 12 May 2003 04:33:02 -0500
Hello, Everyone :)
I apologize if you have already received the below quoted e-mail, but I
am sending it again as I haven't received a response to this, or the
other email I sent on this subject. I checked the archives for May, and
all my messages about my desire to build Bibletime RPM's for Red Hat 8
are there, so I assume that for some odd reason that you did not receive
them.
______________________________________________________________________
Hello, Everyone :)
I just successfully made an RPM for Red Hat 8 of the current CVS of
Bibletime. I uploaded it to the following location:
http://www.faith4miracle.org/bibletime-1.4pre-1.i386.rpm
PLEASE NOTE: I incorrectly named it "1.4pre" Please disregard this :)
I made it from a .spec file that I've had success with when building
RPMS for the Krename project. I had absolutely no success with the spec
file from Bibletime. Please check out the spec file I used at the
following location:
http://www.faith4miracle.org/bibletime.spec
I uninstalled my previous installation of Bibletime, and reinstalled
using the exact same RPM that I uploaded to the above mentioned
location, and everything seems to work fine, right down to the new icons
(the ones James made) that I included in the source code, and the
documentation seems to work as well.
This is only an experiment :) Please check out the spec file I used and
reccomend all changes that are needed, or send me a file that I can use
that will suit our purposes better :) Here is a quote from an email I
sent the list a few weeks ago that I never got a response on, that shows
the error message (with a few appropriate comments that I added) that I
got when I tried to build from what I thought was a suitibly edited
Mandrake spec file:
> Hello, Everyone :)
> I'm just practicing on making RPM's for the next release of Bibletime
> by trying to make one out of the CVS build.
> When I run rpmbuild -ba bibletime.spec, I get the following error:
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,g-w,o-w .
> + tar jxvf '%{SOURCE2}'
> tar (child): %{SOURCE2}: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
> error: Bad exit status from /var/tmp/rpm-tmp.51181 (%prep)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.51181 (%prep)
>
>
> If I comment out the entire section of the spec file that was being
> performed when the error occured, like in the following quote:
>
> %setup -q
> #tar jxvf %{SOURCE2}
> #if [ %{ostype} = "Mandrake" ] ; then
> # %if %build_menus
> # #Icons for Mandrake menu system
> # tar jxvf %{SOURCE1}
> # %endif
> # export KDEDIR=/usr QTDIR=/usr/lib/qt3
> #elif [ %{ostype} = "SuSE" ] ; then
> # export KDEDIR=/opt/kde3 QTDIR=/usr/lib/qt3
> #else
> # echo "Using $KDEDIR as KDE directory";
> # echo "Using $QTDIR as QT directory";
> # echo "If the directories are not correct please set them using
> # \"export KDEDIR=<KDE directory> QTDIR=<QT directory>\"" sleep 5
> #fi
>
>
> things flow along smoothly for quite some time, until the build
> crashes with the following error:
>
>
> + cat
> + /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: bibletime-1.3-1
> error: File must begin with "/": @RPM_PREFIX@/share/config/bt-printing
> error: File must begin with "/": @RPM_PREFIX@/bin/bibletime
> error: File must begin with "/":
> @RPM_PREFIX@/share/applnk/Applications/*
> error: File must begin with "/": @RPM_PREFIX@/share/apps/bibletime/*
> error: File must begin with "/": @RPM_PREFIX@/share/icons/*
>
>
> RPM build errors:
> File must begin with "/": @RPM_PREFIX@/share/config/bt-printing
> File must begin with "/": @RPM_PREFIX@/bin/bibletime
> File must begin with "/": @RPM_PREFIX@/share/applnk/Applications/*
> File must begin with "/": @RPM_PREFIX@/share/apps/bibletime/*
> File must begin with "/": @RPM_PREFIX@/share/icons/*
>
> As this was just an experiment, I just ran "make distclean" on my CVS
> copy of Bibletime, renamed my Bibletime CVS directory from "bibletime"
> to "bibletime-1.3", did "tar -cf bibletime-1.3.tar", and then did
> "bzip2 bibletime-1.3.tar" I copied the spec file to
> "/usr/src/redhat/SPECS", and copied the source to
> "/usr/src/redhat/SOURCES" and then ran"rpmbuild -ba bibletime.spec"
> from the directory with the spec file in it.
Have a Great Day, everyone :)
Steven P. Ulrick