[kde-doc-english] Using rpmbuild to build rpms from tar.gz files
Steven Linehan
srjl673 at msn.com
Mon May 17 19:57:18 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-doc-english/attachments/20100517/6f607b59/attachment.htm
More information about the kde-doc-english
mailing list