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

OR dependencies in RPM?

Can I produce an RPM package where several dependencies are listed in a choose-one-from-those manner? Reason why I'm asking, my app needs a scalable Mincho-style Japanese font, and it looks like different flavors of RPM-based Linux provide different…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
2
votes
2 answers

rpmbuild install dependency

I'm new to rpmbuild + spec files and I tried the following tutorial to build the "hello world" example. Manage to get it working, but I wanted to learn how dependencies/requires works. Therefore, I tried to duplicate another "hello world 2" example…
user1004413
  • 2,509
  • 6
  • 23
  • 33
2
votes
2 answers

rpm un-installs with warning unlink messages

I have created a spec file which can install/upgrade/uninstall a package .But , on uninstallation , it uninstalls the package with warnings warning: erase unlink of /var/hudson/master/plugins/publish-over-cifs/help/global/username.html failed:…
devops
  • 1,121
  • 5
  • 20
  • 50
2
votes
1 answer

Creating RPM spec file from compiled binary files

Environment is AIX 7.0 RPM Version 3.0.5 . I am very new to Unix world, Please be patient with my ignorance. We have 3 different types of files to be packaged as RPM. • Source/binary/*.bainaryfiles (around 160 of them) • …
2
votes
1 answer

Maven RPM Plugin does not generate the scriptlets specified

I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter) The pom.xml excerpt is:
Yaneeve
  • 4,751
  • 10
  • 49
  • 87
2
votes
3 answers

rpm reinstall does not reinstall config files?

I have an rpm with a file marked as config file in the %files section: %files %config /path/to/file.conf now suppose I edit this file on-disk. I wish to repair this and redo a clean install of the package; thus restoring the config file to its…
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
2
votes
2 answers

How do I download github source code in my spec file

I have been trying to create an rpm using a spec file. I want to use github code with that. I am providing Source0: as http://github.com/some_project.tat.gz, but it's downloading that, it's looking for tat.gz in /root/rpmbuild/SOURCES. I want my…
Pensu
  • 3,263
  • 10
  • 46
  • 71
2
votes
1 answer

RPM %files section: how to handle special characters in filenames?

How do I handle filenames that contain special characters within an rpm's %files section? I'm building an RPM but I have a few filenames that contain special characters. I'm not the developer so I do not control the filenames checked into the…
devteam
  • 21
  • 2
2
votes
0 answers

How can I run my application on linux with rpm-maven-plugin?

I would like to use rpm-maven-plugin to package my maven project to rpm file. After maven install (mvn clean install) the rpm is created in target/rpm/rpm-build/RPMS/noarch/. How can I start the application? If I try to install rpm with yum…
cSteusloff
  • 2,487
  • 7
  • 30
  • 51
2
votes
1 answer

RPM spec file not executing two triggers within the same package

I have a little requirement where I need to execute two triggers at the same time (on same package) but unfortunately RPM spec file executing only one trigger (whichever comes first) at a time. Can anybody tell me how to execute the following two…
phanI KY
  • 111
  • 2
  • 10
2
votes
1 answer

How to call function with arguments in rpm spec file?

I'm building an rpm to install a component on my machines, but I would like to check if certain python libraries are already installed so as not to reinstall them unnecessarily. So, in the %post section of my spec file, I'm doing this: function…
Tino
  • 304
  • 4
  • 14
2
votes
1 answer

How to perform an operation in post section of rpm spec only when reinstalling the rpm

I have a use case where I want to execute a particular command in the post section of rpm spec only when same version of rpm is already installed. Rpm will be invoked with following option: rpm -Uvh --replacefiles --replacepkgs…
Aneesh
  • 158
  • 6
2
votes
1 answer

How to define a variable in RPM specs?

How to define a variable in RPM specs? I have 14 folders to create in the RPM and I am creating by following command: mkdir -p /opt/{Folder,Names,Are,Pretty,Cumbersome} My plan is to declare a array variable for all the folders.
Balasekhar Nelli
  • 1,177
  • 4
  • 18
  • 30
2
votes
0 answers

Mockbuild and PHP include path

Autoloaded a file with a path. include-path is set on the composer.json. The include-path is appended to the app path instead of adding another path to the list. post-install-cmd is set to trigger the vendor/bin/phpunit. It fails stating that…
2
votes
2 answers

How to install two different versions of same rpm and make them work parallely

Currently I am trying to install a rpm secured_soft_2.0.0.rpm and i am unable to install it as we already have secured_soft_1.3.0 installed. Requirement is that we need to have both the versions installed. Complexities : These package inturn…
user2256825
  • 594
  • 6
  • 22