[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-doc-english
Subject:    [kde-doc-english] Using rpmbuild to build rpms from  tar.gz files
From:       Steven Linehan <srjl673 () msn ! com>
Date:       2010-05-17 17:57:18
Message-ID: COL106-W22D5BB6E95DF7827E01620F0E00 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 
To whoever answer this:
 
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
 		 	   		  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<FONT face=Helv size=2><FONT face=Helv size=2>
<P dir=ltr>&nbsp;</P>
<P dir=ltr>To whoever answer this:</P>
<P dir=ltr>&nbsp;</P><FONT face=Helv size=2><FONT face=Helv size=2>
Refer to http://kwave.sourceforge.net/doc/en/building_rpm_from_targz.html....CAN YOU \
HELP ME?<BR></FONT></FONT> <P dir=ltr>&nbsp;</P>
<P dir=ltr>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.</P> <P dir=ltr align=justify></P>
<DIR>
<DIR>
<P dir=ltr align=justify>1. </FONT></FONT><FONT size=3><FONT face="Tms Rmn">Go to \
your RPM "topdir". This normally is </FONT><FONT \
face=Courier>/usr/src/redhat</FONT><FONT face="Tms Rmn"> for the redhat distribution \
or </FONT><FONT face=Courier>/usr/src/packages</FONT><FONT face="Tms Rmn"> if you \
have the SuSE distribution. </P></FONT></FONT><FONT face=Courier> <P dir=ltr \
align=justify>%</FONT><B><FONT face=Courier color=#0060a0><FONT face=Courier \
color=#0060a0>cd /usr/src/</FONT></FONT><I><FONT face=Courier color=#008250><FONT \
face=Courier color=#008250>redhat</P> <P dir=ltr \
align=justify></P></B></I></FONT></FONT><FONT face=Helv size=2><FONT face=Helv \
size=2> <P dir=ltr align=justify>2. </FONT></FONT><FONT face="Tms Rmn"><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></P></FONT><FONT face=Courier> <P dir=ltr align=justify>%</FONT><B><FONT \
face=Courier color=#0060a0><FONT face=Courier color=#0060a0>cp </FONT></FONT><I><FONT \
face=Courier color=#008250><FONT face=Courier \
color=#008250>/somewhere/kwave-XXX.tar.gz</I></FONT></FONT><FONT face=Courier \
color=#0060a0><FONT face=Courier color=#0060a0>SOURCES</B></FONT></FONT><FONT \
face=Courier><BR></P></FONT><FONT face=Helv size=2><FONT face=Helv size=2> <P dir=ltr \
align=justify>3. </FONT></FONT><FONT face="Tms Rmn"><FONT size=3>Extract the spec \
file from the archives and put it into the SPEC subdirectory. </FONT></P></FONT><FONT \
face=Courier> <P dir=ltr align=justify>%</FONT><B><FONT face=Courier \
color=#0060a0><FONT face=Courier color=#0060a0>tar -xOzf \
SOURCES/</FONT></FONT><I><FONT face=Courier color=#008250><FONT face=Courier \
color=#008250>kwave-XXX.tar.gz</I></FONT></FONT><FONT face=Courier \
color=#0060a0><FONT face=Courier \
color=#0060a0>\*.spec&gt;SPECS/kwave.spec</B></FONT></FONT><FONT \
face=Courier><BR></P></FONT><FONT face=Helv size=2><FONT face=Helv size=2> <P dir=ltr \
align=justify>4. </FONT></FONT><FONT size=3><FONT face="Tms Rmn">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><FONT face=Courier>-bb</FONT><FONT face="Tms Rmn"> instead of \
</FONT><FONT face=Courier>-ba</FONT><FONT face="Tms Rmn">, or just </FONT><FONT \
face=Courier>-bs</FONT><FONT face="Tms Rmn"> to build only a source package. \
</P></FONT></FONT><FONT face=Courier> <P dir=ltr align=justify>%</FONT><B><FONT \
face=Courier color=#0060a0><FONT face=Courier color=#0060a0>rpmbuild -bb \
SPECS/kwave.spec</P> <P dir=ltr align=justify></P>
<P dir=ltr align=justify>&nbsp;</P></B></FONT></FONT><FONT face=Helv size=2><FONT \
face=Helv size=2> <P dir=ltr align=justify>5.</FONT></FONT><FONT size=3><FONT \
face="Tms Rmn"> 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><FONT face=Courier>-U</FONT><FONT \
face="Tms Rmn"> instead of </FONT><FONT face=Courier>-i</FONT><FONT face="Tms Rmn"> \
for upgrading instead of installing. </P></FONT></FONT><FONT face=Courier> <P dir=ltr \
align=justify>%</FONT><B><FONT face=Courier color=#0060a0><FONT face=Courier \
color=#0060a0>rpm -ivh BUILD/</FONT></FONT><I><FONT face=Courier color=#008250><FONT \
face=Courier color=#008250>[arch]/kwave-XXX.[arch].rpm</P> <P dir=ltr \
align=justify></P> <P dir=ltr align=justify>The "arch" string should be specified \
earlier I think</P> <P dir=ltr align=justify>and the arch string does not exist as a \
dir under BUILD. These </P> <P dir=ltr align=justify>steps created \
/usr/src/redhat/RPMS/noarch/intltool-0.37.1-1.noarch.rpm</P> <P dir=ltr \
align=justify></P> <P dir=ltr align=justify>What's Missing??</P>
<P dir=ltr align=justify></P></DIR></DIR>
Steve Linehan<BR></B></I></FONT></FONT> 		 	   		  </body>
</html>



_______________________________________________
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