Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rpm-spec]

This tag is for RPM spec files, the source file for building RPM packages using rpmbuild.

0
votes
1answer
53 views

How do I set a RPM package to require Java 8 or higher, whose dependencies can be satisfied by Java 11

I'm trying to package an RPM that requires any Java version above Java 8. The RPM works fine if there's no Java installed, or if JRE/JDK for 8 is installed. HOWEVER if I install OpenJDK 11, when I ...
0
votes
1answer
8 views

RPM spec file: How to link Requires version to BuildRequires version used at build time?

Suppose I have this in my spec file: BuildRequires: foo-devel Where I don't care which version of foo is used. And in %package bar Summary: Group: Requires: foo = %{foo_devel_version} %...
1
vote
1answer
34 views

CentOS 7 - problem encountered with the set up of spec file during creation of RPM package

I'm aiming to translate a Debian package to an RPM package to install it on a CentOS Linux 7 (Red Hat). I used alien to accomplish it: alien --to-rpm --scripts --keep-version --generate debian_pkg.deb....
6
votes
1answer
262 views

Where I can find original CentOS RPM Spec files?

Recently CentOS upgraded from 7.5 to 7.6 and now one of the packages upgraded to a newer version I'm not ready to use yet. I'm planning instead to build and support an older version of this package. ...
2
votes
0answers
75 views

How to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?

What I Want To Do I'm trying to build an RPM package of my app that could be installed in different Fedora distros, which have different default Python 3 versions (i.e. Fedora 28 has python3.6, and ...
0
votes
1answer
205 views

Custom options during RPM install with rpmbuild

I would like to use custom options during RPM install. I use rpmbuild to craft the RPM so I have the SPEC file. Can I define my own option that I can use in the SPEC file (e.g. rpm -i --r_password=...
1
vote
0answers
172 views

how to build compiled rpm of gcc 8.2

I am trying to make an rpm of gcc 8.2 for centos 7. Honestly I am trying my best to understand how to use rpmbuild and .spec file, but it's too hard for me to understand. I tried packaging my hello ...
1
vote
0answers
24 views

Should application directory names include version numbers? [closed]

I have an application which is expected to have occasional updates. For my sins, its a .Net Core app running on Centos as a systemd service. The service is expected be available running more or less ...
1
vote
1answer
53 views

Cannot build RPM packages from SRPM using mock

I've successfully built the SRPM and after that step I'm trying to build the RPM from the SRPM. Following is the directory from where I am building the RPM. THe Source RPM are in the following ...
1
vote
0answers
83 views

Package shell script as RPM

I would like to package a shell script to be installed via an RPM. This is my code repo, and this is my build at COPR. SPEC file For reference here's my SPEC file: Name: {{{ git_name }}} ...
0
votes
0answers
192 views

Spec file to exit install if files already exist

In an RPM spec file where (e.g., %pre) would I check to see if a file(s) exists already? Ideally, I would like to check for the files before the source is decompressed during the rpm install, and if ...
0
votes
2answers
392 views

rpm mock - complex rpm building

Lets say I want to make an RPM which delivers an Apache Webserver with its own OpenSSL: /mydir/apache_postfix1 /mydir/openssl_postfix1 Since Apache mod_ssl requires a real OpenSSL installation I ...
1
vote
1answer
1k views

How do you use rpmbuild to make an rpm package when there are file not found or permission errors?

I am trying to create an RPM file for the wget utility. Both of my attempts (with sudo and without sudo) to use the rpmbuild comman fail to create an .rpm file. I run a "sudo rpmbuild" command to ...
0
votes
1answer
5k views

RPM install file conflict from previous install

I am getting install failure due to file conflicts. I am facing this issue only on Red Hat Linux 7. Same spec file works on Ubuntu and other Linux distributions. I tried putting echo on %pre, %post, %...
0
votes
1answer
469 views

rpm --upgrade of the same package gives file conflicts

I have installed my custom package containing a bunch of files. Running rpm --upgrade a second time gives a lot of errors: File ABC from install of mypackage-1.0-0.i386 conflicts with file from ...
0
votes
1answer
59 views

Why won't yum install the later release of an RPM when my custom RPM Requires that?

I created an RPM that has Requires: ruby193-rubygem-passenger-native = 3.0.21-4.el6op yum deplist myrpm says that myrpm requires that release and it's satisfied by that rpm which is in my ...
0
votes
1answer
468 views

Defining macros for authoring RPM files that require Python 3

The python-devel RPM installs a macro definition file: /etc/rpm/macros.python2 However, after installing python36u-devel from the IUS repository I do not have a Python 3 flavor of this file ...
3
votes
3answers
236 views

What does “-14” mean in a dump of RPM macros

It's possible to dump the available / defined macros when authoring a RPM spec file by using: rpm --showrc or rpm --eval %dump or including the %dump builtin macro in the spec file itself and ...
1
vote
1answer
220 views

spec file: I want to use my tar

On aix(and on unix usually..) the tar command doesn't play good with some archives created with gnu tar. I want to use my tar gnu on AIX on .spec file I put this line %define tar /opt/freeware/bin/...
0
votes
1answer
36 views

How to test whether the present build platform is Scientific Linux from within an RPM spec file?

I would like to test if the present build platform is Scientific Linux from within a spec file. But I want this test to only return true if and only if the platform is Scientific Linux, so even the ...