Rpmbuild from tar file
Improve this answer. Aaron D. Marasco Aaron D. Marasco 5, 3 3 gold badges 23 23 silver badges 38 38 bronze badges. This answer should be accepted. Is does what OP requests: build from an alternate source root in the tarfile.
Corresponds with ftp. Name: source Version: 1. This is doing things 3X harder when you could just do the right thing as noted in my answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. I've been asked to create an RPM in order to expedite the installation of this agent. Basically, the manual process is to explode the tarball and then run the installation script and then the tarball and directory created from exploding the tarball are to be removed.
The best way to create rpm from a source available in tar. If you look from GSS perspective, there is very limited scope for rpmbuilding, but in upstream Fedora, very good documentation is available. This can give you few guidelines on how to create rpm package using source by writing a spec file. Even though the link Red Hat gave is very thorough, you might find it also easy to have a simple example on how to create an rpm, which I personally use this link for:.
Holy crap! I feel like I need an advanced degree. Only a spec file needs to exist in the archive for it to work. It is likely a relic of another time, when RPMs were not maintained by a distribution, but software maintainers would try and have their source packages install using RPM.
This feature of RPM is made more and more obsolete with the success of large RPM-based distributions with a large and vibrant posse of packagers. The rpmbuild in its tarball mode will find a spec file, even if its not in the top-directory of the package. Most software packages simply need to be built from their source archive and don't need any additional files.
However, it's not uncommon for packages to need to be specially configured by RPM on some systems by including particular files. On this chance, the included RPM spec file will name other source files or patch files besides the tarball Source1 , Source2 , Patch0 , Patch1 and so on. A SPEC file has the file extension. Build dependencies are the software required to compile the program we want to create an RPM package and build dependencies are the libraries needed for the program to run correctly.
In these macro sections, different instructions can be defined. In this example, I have created a test-application. Once the SPEC file has been created, build the rpm package with the rpmbuild command. To install the created RPM file, run the following command. In this article, you have learned about how to create RPM packages using tarball.
0コメント