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
3
votes
1 answer

%defattr behaviour change between rpm 4.7.2 and 4.9.1?

Is it permissible to use %defattr multiple times in spec file? Under Ubuntu 10 (rpm version 4.7.1), the following definition would result in 777 permissions applied to /var/log/testdir2. %files %defattr(-,root,root,-) %dir…
Glenn
  • 8,932
  • 2
  • 41
  • 54
3
votes
1 answer

How to use %debug_package while using rpmbuild?

Linux version 2.6.18-131.el5 gcc version 4.1.2 RPM version 4.4.2.3 I use the following command to build packages: $ sudo rpmbuild -ba xxx.spec I thought that the debuginfo package should be built by default, but only get the xxx.src.rpm and…
user2372226
3
votes
4 answers

How do I enforce RPM requires order

I have spent all day trying various things and made no progress whatsoever. I am compiling an rpm package for my application (MyApp.rpm), for RHEL6 64-bit, which requires a third party, 32-bit driver package called aksusbd.rpm. Now, aksusbd.rpm in…
Ali
  • 1,462
  • 2
  • 17
  • 32
3
votes
1 answer

source/spec files for jdk 1.7

I have the rpm from Oracle's site, but I want to make some configuration changes and repackage the rpm. I don't see a source or spec file listed on their site and I don't want to have to build this whole thing out on my own...anyone have any…
user1172482
  • 289
  • 1
  • 4
  • 10
3
votes
1 answer

rpmbuilder creates only source rpm not binary rpm

I am trying to create a rpm package for a library I wrote in Qt. Here is my spec file: Name: blabla Version: 1.3.2 Release: 0.1 License: GPL Summary: my awsome lib Url: http://me.home.mrz.net Group: …
mrz
  • 1,802
  • 2
  • 21
  • 32
3
votes
2 answers

Simple spec file for creating RPM package

I have a binary Java run.jar file, a bash script run.sh which executes run.jar via java -jar. In my environment (~/rpmbuild/), where do I have to put those two files? Where do I have to put the source file? (I guess I should compress the source as…
user1521536
3
votes
1 answer

How do I add a launcher to a panel during rpm install in Red Hat Enterprise Linux?

Does anyone know how to put a launcher in the panel for an application during an rpm install? For example next to the firefox launcher. I'm guessing it might involve moving the .desktop file into a directory during %post in the spec file? The rpm…
jmhduck
  • 33
  • 3
2
votes
1 answer

How to detect rpm post scriptlet failure

How to detect if the rpm package installation's post install section code failed ? I've got bunch of rpm packages and want to find the packages that have failed in post install section. Post install means, the bash script in post section of spec…
deimus
  • 9,565
  • 12
  • 63
  • 107
2
votes
1 answer

rpm update: what happens to modified files

What happens at rpm -U .. if any file of the package being updated has been modified? Is it left updated with a new one, or the new (modified) file is kept with new extension?
Mark
  • 6,052
  • 8
  • 61
  • 129
2
votes
0 answers

create RPM with python script and protoc-generated modules

I have python script which also imports protoc-generated modules (protobuf and grpc). I would like to package this in rpm. Previously I used to write a spec file defining rpm, its contents, compile/link flags (if building from c/c++ sources),…
Mark
  • 6,052
  • 8
  • 61
  • 129
2
votes
1 answer

Rpmbuild asks for extra dependencies

I am trying to build an RPM on Centos 7. I am making a wildfly application into RPM using below SPEC file. Name: wildfly Version: 16.0.0.Final Release: 1%{?dist} Summary: WildFly Application Server Group: …
2
votes
1 answer

RPM spec file condition based on availability of a dependency

I want to create a cross-distribution RPM spec file for an application that bundles a certain library. The application uses this bundled library by default, but also provides a build-time option for using the version of the library installed in the…
Psychonaut
  • 859
  • 8
  • 22
2
votes
1 answer

MariaDB connector OBC Build- Driver manager was not found

I am trying to build the RPM from the source https://downloads.mariadb.org/connector-odbc/3.0.8/ on SUSE Linux following mariadb homepage https://mariadb.com/kb/en/building-mariadb-connectorodbc-from-source/#building-mariadb-connectorodbc However,…
adi1992
  • 75
  • 11
2
votes
1 answer

Building rpm - File not found by glob:

I want to generate an rpm package (Redhat) ,I get an error when i launched the command : rpmbuild -ba librabbitmq.spec Processing files: librabbitmq1-0.10.0-0.x86_64 error: File not found by…
Electrob
  • 49
  • 7
2
votes
2 answers

RPM Build error: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration

I have been trying to build a rpm using rpmbuild but I keep getting the following error- error: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration. Environment Details- rpmbuild --version …
nayasa
  • 31
  • 8