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

Check if installation folder of rpm exists on target machine then create another folder

I have a rpm spec file which produces a rpm named cdplayer-1.10.x86_64.rpm. The rpm on target machines (rpm -ivh cdplayer-1.10.x86_64.rpm --nodeps)creates a directory "/opt/cd-player/" and put all files in it. What I need is when user runs rpm…
Manish
  • 1,999
  • 2
  • 15
  • 26
0
votes
0 answers

How to prevent rpm.spec %post code from running in parallel?

In the rpm.spec file that is used to guide the installation of an RPM, if the %post section is executed AFTER the package is installed (as stated here: http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html#S4-RPM-INSIDE-POST-SCRIPT), does that mean…
the_marcelo_r
  • 1,847
  • 22
  • 35
0
votes
0 answers

Copy files in RPM spec files using micro %install

I have problem with RPM spec file. I need to copy huge number of files located under tar.gz file: %install mkdir -p ${buildroot}/opt/agent install -m 0755 -d $RPM_BUILD_ROOT/opt/agent install -m 0777 * $RPM_BUILD_ROOT/opt/agent The question is how…
user1285928
  • 1,328
  • 29
  • 98
  • 147
0
votes
1 answer

Cannot create RPM package

I'm trying to create RPM spec file. Unfortunately I can't find how to fix this issue. I created the rpm build directories using the command rpmdev-setuptree and I created simple spec file. I placed the source file under…
user1285928
  • 1,328
  • 29
  • 98
  • 147
0
votes
2 answers

Marking files as config files in CPack

When creating RPM packages: How do I tell CPack to treat a file as config file so it won't get overridden when updating the RPM? The %config directive is used in rpm-spec for that case. Is there something like this in CPack?
Volker
  • 97
  • 4
0
votes
1 answer

how can I edit RPM spec file before uninstall

Description of the question: I made a rpm package which delete all the files on the uninstall. I want to make a rpm package which can handle the upgrade option also (-U) So I implement rpm spec file in such a way (on the basis of $1 value), but…
Deepak
  • 83
  • 1
  • 7
0
votes
0 answers

setup.py is not getting packed in rpm

I am trying to create a rpm using setup.py bdist_rpm. Python version is 2.6.6 My project structure looks like ncm - __init__.py - some_thing.py ... ... setup.py setup.cfg setup.py looks like: from setuptools import setup,…
0
votes
2 answers

Python distutils - Change Path RPM Installs To

I have Python 2.7.5 and am using distutils (python setup.py bdist_rpm) to create the following RPM... me@hostname:/tmp/dist$ rpm -qpil myApp-2.0.146-1.noarch.rpm Name : myApp Version : 2.0.146 Release : 1 Architecture: noarch Install…
user1801810
  • 614
  • 1
  • 11
  • 29
0
votes
0 answers

rpm -rf not giving package name

I am creating a symlink under %install section of RPM spec file. %install (cd $RPM_BUILD_ROOT/boot && ln -s -f abc xyz) after installing the package, when I try to perform rpm -qf xyz it says: /path/xyz is not owned by any package. I want to make…
Ameya
  • 25
  • 3
0
votes
1 answer

Buildrequiring a subpackage by another subpackage?

I'm trying to build an RPM of Google's protobuf, including the protobuf-python subpackage. Now, this is no problem until i want to build the python subpackage with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp python setup.py build. This requires the…
compostus
  • 1,178
  • 10
  • 13
0
votes
1 answer

how can I create an RPM from a subdir?

I have a subdir my_sw that has an image of what I want to install: my_sw/ usr/ bin/ foo man/ man1/ foo.1 and so on. I imagine there must be a simple way to create a spec file and use rpmbuild to package this up as…
GaryO
  • 5,873
  • 1
  • 36
  • 61
0
votes
2 answers

Creating an RPM which should get install if one dependency is satisfied out of two

I want to create an rpm listing two dependencies. And RPM should be able to install if either of the dependency is satisfied. What should be mentioned in its spec file.. Any suggestions/help will be appreciated.
0
votes
1 answer

How to Require node.js in a RPM Specfile?

While building an RPM package, how can I use Requires or some similar tag to specify node.js version 0.10.28 or greater as a prerequisite? It's not in the default repositories, and it's possible the user has built it from source. I've looked around…
zrneely
  • 1,802
  • 3
  • 17
  • 26
0
votes
1 answer

how can pass buildroot to build.xml file from spec file

*can anyone help , passing argument as build-root or dynamic directory using ant command in spec file *mentioning ant install target in build.xml
ramakrishna
  • 1
  • 1
  • 2
0
votes
0 answers

Forking a rpm into two

I need to fork a rpm into two rpm because of being two separate products. Formerly both product were using "reporter.rpm". Now, they will use "reporter-product1.rpm" and "reporter-product2.rpm", respectively. These rpm's will be required by a base…
seaquest
  • 311
  • 3
  • 9