Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
10 views

Bette way of loading 3rd party modules into NGINX? Build Customized NGINX or Load at the run time?

I noticed there are two ways to load 3rd party dynamic modules into NGINX. (1) Build NGINX with that modules: https://github.com/ajdruff/nginx-naxsi-rpm/blob/master/how-to-build-your-own-nginx-rpm....
6
votes
1answer
233 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
31 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
0answers
71 views

rpmbuild gives File not found error when build an RPM from source

I am trying to build an RPM for this software collection: https://epics.anl.gov/download/base/base-3.15.5.tar.gz . When you extract the archive it may seems a normal source code, but it only requires ...
0
votes
1answer
183 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
120 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
45 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
68 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
162 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
353 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 ...
0
votes
0answers
40 views

rpmbuild is searching files in %{_buildrootdir}/“package name” and there is nothing there

I need to put the kernel headers in a non standard location, and I want to do it automatically with yum, so I downloaded the rpm corresponding to the current headers in the latest version of CentOS, ...
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
4k 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
411 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
57 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
408 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
218 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
202 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
35 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 ...