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
0
votes
0 answers

Linux RPM-spec does not copy packages to destination folder

I have a package, with the directories named lib, sample, api, doc under a parent directory %{name}-%{version}. I want to generate an RPM package out of these folders. This rpm package should unfold these directories under a client specified…
Manish Shukla
  • 562
  • 6
  • 18
0
votes
2 answers

Who am i -- RPM-SPEC

im just try to figure out who call root or sudo,cuz i dont want to set some things in root's home folder, when i try this in terminal its work perfect, but doesnt work for spec, what im doing wrong? terminal: [Mcfly@Mcfly ~]$ whoami=$(who am i | awk…
0
votes
1 answer

Building kernel from RPM source package

I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1)…
Shraddha
  • 2,427
  • 5
  • 17
  • 21
0
votes
1 answer

rpm build:spec file display message at client

i want to print message at client side at time of uninstall like if error then i always print and if it is simple message like rpm uninstall successfully then it is optional .client use the option -v then it print (verbose other wise not) rpm -ivh…
meet patel
  • 181
  • 1
  • 2
  • 17
0
votes
1 answer

rpmBUILD : rpmbuild display client side message or log

i have problem regarding the stderr and stdout message print on the client console for specified costume message on specified costume condition .i want to put it on spec file or where? "like for example if i have build rpm xyz.rpm when after…
meet patel
  • 181
  • 1
  • 2
  • 17
0
votes
2 answers

RPMBUILD: Is is possible to RPM configuration file portability at install time

As per my requirement is is possible that the rpm is same for all server but only one config file change as per the server environment like production,staging,testing or else. i have bundle of config file for all server but i don't want hardcode it…
meet patel
  • 181
  • 1
  • 2
  • 17
0
votes
1 answer

I'm trying to create custom RPM using SPEC file.

demo.spec Name: demo Version: 1 Release: 0 Summary: demo apss Group: Applications/Archiving License: GPLv2+ URL: http://xyz.co.in Source0: …
meet patel
  • 181
  • 1
  • 2
  • 17
0
votes
2 answers
0
votes
1 answer

how to create RPM to instal openJDK JRE, PostgreSQL in Redhat linux?

I need to create a rpm which install's JRE and PostgreSQL in Redhat linux. only thing i know is i need to create a .spec file and need to mention the instruction to do this. I could do manually by installing each rpm in the linux machine , but i…
Rajesh
  • 31
  • 1
  • 5
0
votes
1 answer

rpm spec file syntax error

I was trying to create a rpm package, my spec file looks like this: %define config_option (cat %1) %define __spec_install_post %{nil} %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress %define __prelink_undo_cmd…
Da Zhao
  • 11
  • 4
0
votes
2 answers

How to get RPM build to set installation path correctly

This is my first attempt at building an RPM and I'm finding it a bit confusing, not really getting the different variables at all yet, so would appreciate any advice on the below.. I have the following spec file: BuildRoot :…
user983597
  • 103
  • 5
0
votes
1 answer

Create wrapper rpm for other package

I am trying to create an RPM ("mine") to facilitate the installation of another RPM "other" (not maintained by me). This third-party RPM requires packages "foo" and "bar". I want my RPM to provide the packages "foo" and "bar" but with my own…
Krumelur
  • 31,081
  • 7
  • 77
  • 119
0
votes
0 answers

rpm install scripts not executing

I'm working in ClearOS5.3, with rpm 4.4 installed. I'm using rpm to distribute a module I created, however the %post script in my spec file isn't executed when I install the package. I'm using the command rpmbuild -ba mypackage.spec to build the…
-1
votes
1 answer

rpm -e did not removed installed directory

All, I created a RPM package using rpm.spec file. The package installed succesfully. When i remove the package using rpm -e it removed from RPM database But directory structure that the pkg created was not removed. Please help me to resolve this…
baluchen
  • 749
  • 3
  • 11
  • 18
-1
votes
2 answers

how to satisfy rpm user and group dependencies that already exist?

I was installing an rpm and satisfied the other needed rpm dependencies but still had a dependencie requiring a user and group entry (name=lp). I already have user and group named 'lp', so why doesn't rpm recognize them? More importantly how can I…
Astara
  • 229
  • 4
  • 9