Questions tagged [rpmbuild]

rpmbuild command used to build rpms from rpm SPEC files

rpmbuild is the command used to build rpms from a rpm SPEC file.

854 questions
-1
votes
2 answers

How to ignore compiler flags automatically added with buildrpm

I'm trying to build a package with buildrpm. My problem is that I have an intentionally vulnerable C program compiled when make is run normally as an example for the primary code (a fuzzer) to be tested on with make check. When I try to build the…
oxagast
  • 397
  • 1
  • 12
-1
votes
1 answer

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MJ4rSp (%prep)

I'm trying to use the command "fedpkg prep" but when I do I get the following error RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MJ4rSp (%prep) How do I resolve this problem? I'm a newbie to Linux.
Nicole Louise
  • 141
  • 1
  • 2
  • 9
-1
votes
1 answer

Cannot make rpm from spec file: File not found errors

I have a pre-made directory structure that I want to make an rpm from. In my spec file I specify all files from that directory structure that I want to include in the rpm, and when executing rpmbuild I set the buildroot to the (from what I can tell)…
ThaMe90
  • 4,196
  • 5
  • 39
  • 64
-1
votes
2 answers

Replace one rpm pkg with another

Need help with rpm. I need to replace (for example) pkg-number-one with pkg-number-two. Provides in spec: pkg-number. How can I do replace one installed pkg with another? Or I must change something to do this?
-1
votes
1 answer

Rpmbuild permission denied

I am trying to to build an rpm for an application I have made. I have written the spec file and made an additional bash script to copy all the required files automatically into the rpmbuild directory structure i.e…
-1
votes
1 answer

how to deal with config changes in rpm for a nodejs app

I'm Fairly new to packaging nodejs apps with rpm. The requirement is that we always merge any changes we may have in the config file without wiping out any setting that may have been changed by the sys admin. As you have guessed, config files for…
nolimit
  • 814
  • 10
  • 19
-1
votes
1 answer

if block without else shell script in %preun scriptlet

I have the following script in my spec file %preun tag: if [ $1 -eq 0 ]; then echo "Stopping blah service before uninstalling.." . /etc/init.d/blahforever stop echo "blah service stopped." fi I get "syntax error near unexpected token `fi'"…
nolimit
  • 814
  • 10
  • 19
-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
-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
1 answer

Why failed using rpmbuild --rebuild to build RPM of qmail

I am looking for alternative solution for my company's email system, so I download the rpm source file from the site http://www.qmail.org/rpms/qmail.html and use rpmbuild --rebuild to make the final rpm according to the instruction in…
Alan Wong
  • 1
  • 1
-2
votes
1 answer

Generate simple RPM on centOS

How I can generate a RPM that copy 3 files into 3 diferent folders? For example: I have: Mongo-watcher, config.properties and watcher.jar Mongo-watcher has to be placed under: /etc/init.d/ Config.properties has to be placed under:…
Lechucico
  • 1,914
  • 7
  • 27
  • 60
-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…
-2
votes
2 answers

Is it possible to compile a portable executible on Linux based on yum or rpm?

Usually one rpm depends on many other packages or libs. This is not easy for massive deployment without internet access. Since yum can automatically resolve dependencies. Is it possible to build a portable executable? So that we can copy it to…
Osiris
  • 1,007
  • 4
  • 17
  • 30
-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
1 2 3
56
57