Questions tagged [rpm-spec]

The rpm spec file contains the information required by RPM to build a package.

The spec file is at the heart of RPM's packaging building process. Similar in concept to a , it contains information required by RPM to build the package, as well as instructions telling RPM how to build it. The spec file also dictates exactly what files are a part of the package, and where they should be installed.

(From the max-rpm book)

This tag is closely related to and . You should research those tags to see if a similar question exists.

578 questions
-1
votes
1 answer

rpm build directory creation during runtime

will the rpmbuild command create the topdir or rpmdir or any required rpm build directories if it does not exist. Currently my spec file points the _topdir as pwd if i want the topdir to be changed to pwd/test and if test does not exist will the…
novice
  • 11
  • 4
-1
votes
1 answer

RPM %files absolute path issue

I am relatively new to creating RPM packages. I am using Fedora 19 OS , I am not able to make RPM pick %files from absolute path. Please advice on the same Name: SampleRpm Version: 1 License: none Release: 5.6 buildroot: /root/rpmbuild prefix:…
siva
  • 63
  • 1
  • 16
-1
votes
1 answer

Where can I find documentation of RPM macro expansion?

I'm working with some RPM spec files and .rpmmacros which are failing with a newer version or build of RPM than they were intended to be used with, and I'm trying to make sense of them, but I can't find any good documentation on how RPM expands…
R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711
-2
votes
1 answer

How can I use for statement inside 'RPM spec file'?

I tested below is working well on shell. I'd like to update this on spec file. Get filename of all filenames existing inside some folder for filename in testfolder/*.txt; do filename =${filename %.txt} done
N.hwang
  • 207
  • 3
  • 13
-2
votes
2 answers

Is it possible to write our own rpm -e option?

I have created a rpm build which will extract files as part of rpm installation then run custom scripts to install the package. But when i do rpm -e option it will remove only the rpm extracted files which is not good enough. How can i write rpm…
-2
votes
2 answers

Create RPM from pre-built binary with no source code

I'm trying to create an rpm package for Hashicorp Vault. I can download the Vault binary as a zip file from the website, but clueless about how to get that binary packed as an rpm. I tried fpm but I guess I can't use that for packaging pre-built…
-3
votes
1 answer

Bad exit status from /var/tmp/rpm-tmp.a5Y4NP (%build)

I am trying to build a simple source rpm package for nginx (nginx-1.11.4-1.el6.ngx.src.rpm). But i am not able to build as its giving me errors. I have already followed these two threads.. Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build) and…
gingerNinja
  • 411
  • 1
  • 4
  • 12
-5
votes
1 answer

What is the intended use of each directive (%build, %install, %clean, etc.) in an RPM spec file?

Recently I upgraded to a new version of RPM (4.8.0) and the build process for my application broke horribly, due to a change in behavior of the %install directive. Based on some web trawling I did, I found out that the first thing the %install…
John Gordon
  • 29,573
  • 7
  • 33
  • 58
1 2 3
38
39