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
6
votes
3 answers

How to produce platform-specific and platform-independent RPM subpackages from one .spec?

I have dunno.spec file with the following structure: Name: dunno Version: 1.0 ... BuildArch: x86_64 %description ... %package common Summary: Shared files BuildArch: …
dma_k
  • 10,431
  • 16
  • 76
  • 128
6
votes
4 answers

How do I make rpmbuild only build subpackages?

I am building a series of rpms from a single source and want to only build the subpackages; i.e. I don't want an empty main package created, only the subpackages. How do I do this? is it an rpmbuild switch or something I put in to the spec…
Phil
  • 1,809
  • 1
  • 12
  • 7
6
votes
3 answers

Error trying to sign RPM

I am trying to build and sign an RPM. I created my .rpmmacro file in the location I am building /path/to/macrodir/ Then I am using --define with _topdir referring to /path/to/macrodir/ If I build the RPM without giving --sign; its working…
vpram86
  • 5,860
  • 4
  • 28
  • 40
6
votes
2 answers

Create an RPM that can also manipulate files and add users

I'm trying to create an RPM in Fedora 15 that will install my software, but in order for my software to work correctly once installed, I also need to edit other (configuration) files on the system, add users/groups, etc. Performing some of these…
flash
  • 63
  • 1
  • 3
5
votes
2 answers

How to exit rpm install in case of an error

I am looking for a way to exit rpm install if some condition is false. I have added a small script in the %pre section that exits install if my condition fails. The problem I am facing is I see that the %pre scriptlet is executed, and rpm install…
Fanatic23
  • 3,378
  • 2
  • 28
  • 51
5
votes
3 answers

How to prevent a SUSE RPM from installing on a RedHat system

We have a product that is distributed via RPMs. We create both SUSE SLES10 SP1 RPMs and RedHat 5.5 RPMs. There are differences between the two, things will not work correctly (often mysteriosly) if you install a SUSE RPM on a RedHat machine and vice…
John Rocha
  • 1,656
  • 3
  • 19
  • 30
5
votes
2 answers

Creating RPM from current directory

I'm trying to create an rpm from local source. Is it possible to do compilation in a similar to what pdebuild does - just copy the local directory as the source and operate on that copy? Every time I do rpmbuild -ba ... it tries to unpack some…
viraptor
  • 33,322
  • 10
  • 107
  • 191
5
votes
1 answer

build rpm without compiling the source file

I am trying a sample rpm package with single file. In my source folder I have python_test_rpm.tar.gz which contains only one python script file. But, the file is not a valid python script. All I want to do is package this and deploy it in a…
baskar
  • 53
  • 1
  • 5
5
votes
1 answer

RPMbuild with executable files

I am trying to build a RPM (rpmbuild -bb spec file). When installing rpm some of executable tcl files are corrupted and all files having same size.
5
votes
0 answers

rpm-maven-plugin and OS X

I'm trying to set up a maven project on OSX and use the rpm-maven-plugin to build it as an RPM package. However, even the simplest configuration of the plugin seems to fail. The error I get is Bad exit status from…
NilsH
  • 13,705
  • 4
  • 41
  • 59
5
votes
2 answers

RPM Build Spec file i want to check rpm is being install or update

i want to check the rpm i have created is install or update by user(client) like rpm -ivh abc.rpm or rpm -Uvh abc.rpm is their any %command in spec file to get info regarding this command. my requirement is if i have a rpm named abc-0.1-2.rpm…
meet patel
  • 181
  • 1
  • 2
  • 17
4
votes
1 answer

what is the '0' meaning in rpm conditional macros

When reading some rpmbuild spec files, I come across some of the conditional macros which puzzle me. example1 %if 0%{?rhel} > 7 blah blah %endif # I understand the above block tries to check if the # red hat enterprise linux version is above 7,…
Xin Cheng
  • 1,432
  • 10
  • 17
4
votes
2 answers

rpmbuild: How can I use rpmbuild tell autoconf or configure to disable a flag?

I am running on a CentOS 5.7 system. I downloaded a source package and a .spec file from someone else. I am trying to build a RPM from the source using a vanilla command like: % rpmbuild -ba ~/rpmbuild/SPECS/foo.spec ... Configuration…
Stefan Lasiewski
  • 17,380
  • 5
  • 28
  • 35
4
votes
1 answer

Add SHA256 Digests to RPM Packages

I want to add the SHA256 digests for header and payload to my RPM packages. currently, it is building with sha1 digest. below is the output for rpm --checksig --verbose pkg_name.rpm Header SHA1 digest: OK MD5 digest: OK Environment -…
4
votes
1 answer

AddressSanitizer: No matching source file lines in the report after separating debuginfo

CentOS Linux release 7.6.1810 (Core) g++ (GCC) 6.5.0 libasan3-6.3.1-3.1.el6.x86_64 I'm using AddressSanitizer to detect memory error. Unlike the common case, I need to build a rpm package rather than compile source code and run it directly. I have…
Matt
  • 41
  • 1