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
2 answers

rpm -i installs over installed version of the same software

I created a rpm based on the following spec Name : MyProg Summary : A program I wrote Version : 4.3.6.6797 Release : 1 rpmbuild creates a file called MyProg-4.3.6.6797-1.x86_64 and I installed it on my machine using rpm -i However after…
eramm
  • 191
  • 16
0
votes
1 answer

howto embed RPM version number in a build product

The RPM spec file is supposed to include a Version: keyword, e.g Version: 1.0.8. This version is used to name the RPM file that is generated when the RPM is built. Is there a "canonical" way to use this to embed this bit of information into a file…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
0
votes
1 answer

RPM spec file attribute

I have a set of files and directories which are to be installed with the rpm spec package Please advise whether the below is correct to set the user as "ABC" to all the files and directories under deploy %attr(0755,ABC,users)…
Sathy
  • 303
  • 2
  • 8
  • 18
0
votes
1 answer

Configur a spec file for rpm build and installation for a java project

I was to create a RPM file for a java based project. So what I have is an Enterprise archive and some configuration file. My task is to write a spec file to build the rpm and to share so that end user can install it into the system. At installation,…
0
votes
1 answer

Using RPM install files to make decisions in the preinstall

Is it possible to access/utilize install files in an RPM from within the preinstall section. My rpm package contains files separated by type of destination host that I would like to pull variables from and make decisions on during the preinstall.…
0
votes
1 answer

How to write spec file so rpm will move files from cwd when installing

I am distributing my RHEL6 rpm from a windows server. I have some information in a configuration file (such as the name and address of the server) that I bundle into a tgz with the rpm. I then have a specific place I want to put the configuration…
Coop
  • 189
  • 1
  • 15
0
votes
1 answer

rpmbuild "Optional dependency" without require

I would like to build a RPM Package for a website. in the %post section of my spec file I would like to check if the apache webserver is installed. If so, the config should be copied to /etc/httpd/conf.d/ If no Apache is installed, the config should…
0xAffe
  • 1,156
  • 1
  • 13
  • 29
0
votes
1 answer

rpmbuild :error: Could not generate output filename for package myApp: unknown tag

I'm trying to build rpm and getting error : rpmbuild :error: Could not generate output filename for package myApp: unknown tag I tried to add a client name to a name of the rpm file . Before I inserted changes everything worked fine . What I made…
Toren
  • 6,648
  • 12
  • 41
  • 62
0
votes
1 answer

Yum does not resolve dependencies after a rpm -ivh installation

I use AWS EC2 instances. I wanted to setup a package versioned at 5.4.0 but the latest that yum search all --enablerepo epel offered was 5.0.0. I hence did wget and configure && make && make install on v5.4.0 which was available on the web.…
erbdex
  • 1,899
  • 3
  • 22
  • 40
0
votes
1 answer

RPM spec file cannot detect provide packages

I'm trying to edit a spec file which always fails when I try to install it on other computer using RPM. I'm using CentOS. Here is the error. error: Failed dependencies: perl(ActsUtil) is needed by my_program perl(ParseBishop) is needed by…
Mohd Fikrie
  • 197
  • 4
  • 21
0
votes
1 answer

Requiring either openjdk6 or openjdk7 in RPM spec

I am building an RPM which right now marks openjdk-6 as requirement; I would like to add support for openjdk-7 as well; but I am not sure how would I modify the spec file to look for either openjdk6 or openjdk7 as requirement. I read about the…
vpram86
  • 5,860
  • 4
  • 28
  • 40
0
votes
1 answer

RPM package to allow different sets of files to be installed

I would like to build an RPM that allows the installer to select which components of the software are installed. More specifically we have 5 EAR files that are in the RPM I would like to let the installer specify an option when installing to select…
Yadrif
  • 169
  • 2
  • 11
0
votes
2 answers

How to replace rrpmrc file functionality in rpm 5.1.6

In my project I use --rcfile option for rpmbuild settings ... however with new rpm version (5.1.6) this option is not available ... how can I replace the rpmrc file with the new version .. Any doc for help ?
tuban
  • 4,775
  • 3
  • 16
  • 14
0
votes
1 answer

how to make an update rpm which dose nothing but run a shell command?

i build a rpm called rsv-1.0, it will automatically install a rsv.cfg file to /etc when you install rsv-1.0.rpm the package only contain one file etc/rsc.cfg what if i want to do a change in the file rsv.cfg for a updated rpm say rsv-2.0.rpm i…
user2124498
  • 121
  • 1
  • 5
0
votes
1 answer

rpm can't find configure no such file

I have a problem with my spec file. When I run it with rpmbuild it says it can't find ./configure no such file or directory. Here is a part of the code of my spec file. Can someone help me? ... BuildRequires: gd-devel > 1.8, mailx, libjpeg-devel,…