[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-doc-english
Subject: [kde-doc-english] Using rpmbuild
From: Steve Linehan <stevel () us ! ibm ! com>
Date: 2010-05-17 18:09:16
Message-ID: OFE43BF53A.467953A7-ON85257726.005EECB8-85257726.0063BD00 () us ! ibm ! com
[Download RAW message or body]
This is a multipart message in MIME format.
This is a multipart message in MIME format.
--=_alternative 0063BCFC85257726_=
Content-Type: text/plain; charset="US-ASCII"
Refer to
http://kwave.sourceforge.net/doc/en/building_rpm_from_targz.html....CAN
YOU HELP ME?
There is something missing in this procedure: I am not building kwave,
but this is a prototype - I wish to build rpms of a variety of tar.gz
files that are needed to install gnumeric.
1. Go to your RPM "topdir". This normally is /usr/src/redhat for the
redhat distribution or /usr/src/packages if you have the SuSE
distribution.
%cd /usr/src/redhat
2. Put the tar.gz archive into the SOURCES subdirectory (you have to
replace "somewhere" with the real directory where the files are, of
course).
%cp /somewhere/kwave-XXX.tar.gzSOURCES
3. Extract the spec file from the archives and put it into the SPEC
subdirectory.
%tar -xOzf SOURCES/kwave-XXX.tar.gz\*.spec>SPECS/kwave.spec
4. Let rpm do the compile job and generate the rpm of Kwave. If you
only want to make a binary package, you can specify -bb instead of -ba, or
just -bs to build only a source package.
%rpmbuild -bb SPECS/kwave.spec
5. If everything was ok, you can install the binary rpm of Kwave, it will
be in the BUILD directory. If you already have a version of Kwave
installed, please remove it first or use the parameter -U instead of -i
for upgrading instead of installing.
%rpm -ivh BUILD/[arch]/kwave-XXX.[arch].rpm
The "arch" string should be specified earlier I think
and the arch string does not exist as a dir under BUILD. These
steps created /usr/src/redhat/RPMS/noarch/intltool-0.37.1-1.noarch.rpm
What's Missing??
Steve Linehan
--=_alternative 0063BCFC85257726_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Refer to </font><a \
href=http://kwave.sourceforge.net/doc/en/building_rpm_from_targz.html....CAN><font \
size=2 face="sans-serif">http://kwave.sourceforge.net/doc/en/building_rpm_from_targz.html....CAN</font></a><font \
size=2 face="sans-serif"> YOU HELP ME?</font>
<br>
<br><font size=2 face="sans-serif">There is something missing in this procedure:
I am not building kwave, but this is a prototype - I wish to build
rpms of a variety of tar.gz files that are needed to install gnumeric.</font>
<div>
<br>
<br><font size=2 face="sans-serif">1. </font><font \
size=3>Go to your RPM "topdir". This normally is </font><tt><font \
size=3>/usr/src/redhat</font></tt><font size=3> for the redhat distribution or \
</font><tt><font size=3>/usr/src/packages</font></tt><font size=3> if you have the \
SuSE distribution. </font> <br><tt><font size=3>%</font></tt><tt><font size=3 \
color=#0060a0><b>cd
/usr/src/</b></font></tt><tt><font size=3 \
color=#008250><b><i>redhat</i></b></font></tt> <br>
<br><font size=2 face="sans-serif">2. </font><font size=3>Put the
tar.gz archive into the SOURCES subdirectory (you have to replace \
"somewhere" with the real directory where the files are, of course). \
</font> <br><tt><font size=3>%</font></tt><tt><font size=3 color=#0060a0><b>cp
</b></font></tt><tt><font size=3 \
color=#008250><b><i>/somewhere/kwave-XXX.tar.gz</i></b></font></tt><tt><font size=3 \
color=#0060a0><b>SOURCES</b></font></tt><tt><font size=3><br> </font></tt>
<br><font size=2 face="sans-serif">3. </font><font \
size=3>Extract the spec file from the archives and put it into the SPEC subdirectory.
</font>
<br><tt><font size=3>%</font></tt><tt><font size=3 color=#0060a0><b>tar
-xOzf \
SOURCES/</b></font></tt><tt><font size=3 \
color=#008250><b><i>kwave-XXX.tar.gz</i></b></font></tt><tt><font size=3 \
color=#0060a0><b>\*.spec>SPECS/kwave.spec</b></font></tt><tt><font size=3><br> \
</font></tt> <br><font size=2 face="sans-serif">4. \
</font><font size=3>Let rpm do the compile job and generate the rpm of Kwave. \
If you only want to make a binary package, you can specify </font><tt><font \
size=3>-bb</font></tt><font size=3> instead of </font><tt><font \
size=3>-ba</font></tt><font size=3>, or just </font><tt><font \
size=3>-bs</font></tt><font size=3> to build only a source package. </font>
<br><tt><font size=3>%</font></tt><tt><font size=3 color=#0060a0><b>rpmbuild
-bb \
SPECS/kwave.spec</b></font></tt> <br>
<br>
<br><font size=2 face="sans-serif">5.</font><font size=3> If everything
was ok, you can install the binary rpm of Kwave, it will be in the BUILD
directory. If you already have a version of Kwave installed, please remove
it first or use the parameter </font><tt><font size=3>-U</font></tt><font size=3>
instead of </font><tt><font size=3>-i</font></tt><font size=3> for upgrading
instead of installing. </font>
<br><tt><font size=3>%</font></tt><tt><font size=3 color=#0060a0><b>rpm
-ivh \
BUILD/</b></font></tt><tt><font size=3 \
color=#008250><b><i>[arch]/kwave-XXX.[arch].rpm</i></b></font></tt> <br>
<br><tt><font size=3 color=#008250><b><i>The "arch" string should
be specified earlier I think</i></b></font></tt>
<br><tt><font size=3 color=#008250><b><i>and the arch string does not exist
as a dir under BUILD. These </i></b></font></tt>
<br><tt><font size=3 color=#008250><b><i>steps created \
/usr/src/redhat/RPMS/noarch/intltool-0.37.1-1.noarch.rpm</i></b></font></tt> <br>
<br><tt><font size=3 color=#008250><b><i>What's Missing??</i></b></font></tt>
<br>
<br><tt><font size=3 color=#008250><b><i>Steve Linehan</i></b></font></tt>
<br></div>
--=_alternative 0063BCFC85257726_=--
_______________________________________________
kde-doc-english mailing list
kde-doc-english@kde.org
https://mail.kde.org/mailman/listinfo/kde-doc-english
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic