Questions tagged [rpmbuild]

This tag is for questions about rpmbuild, a tool for building RPM packages.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Copy file with rpm in %pretrans

How can I get a .tgz file from rpmbuild's SOURCES directory within the %pretrans section to a target system using a RPM and extract it there? I would have to do it in the %pretrans section because the ...
0
votes
0answers
9 views

how can I add extra repo to mock environment?

for example I do mock -r epel-8-x86_64 --install http://repo.okay.com.mx/centos/8/x86_64/release/okay-release-1-3.el8.noarch.rpm But it does not work. I cannot find yum.repo.d/okay.repo in /var/lib/...
0
votes
1answer
22 views

Same RPM for multiples CentOS major versions

I've created a little bash script and build it into a RPM package. This little bash script works very well on CentOS 5, CentOS 6 and CentOS 7 (and probably on CentOS 8, not checked) My question is: Do ...
1
vote
0answers
20 views

what the `--build-in-place` actually mean in rpmbuild?

I checkout a git repo of https://github.com/rpmfusion/buildsys-build-rpmfusion.git First I thought use rpmbuild -bs --build-in-place buildsys-build-rpmfusion.spec can avoid copy source to ~/rpmbuild/...
1
vote
1answer
40 views

Fedora 33 RPM package provides its own libraries won't install says “nothing provides”

This should be watching ice melt simple, but it is not. I'm on Fedora 33 and creating an RPM for the Diamond text editor. I've got the Debian stuff all done and works great. Diamond uses the ...
2
votes
2answers
100 views

Tell yum where a local shared library dependency is

We are installing a custom rpm which we built using rpmbuild. During the install it fails with a dependency on specific file, in our case specifically libnvidia-ml.so.1: Requires: libnvidia-ml.so.1()(...
0
votes
0answers
115 views

Why is RPM not finding my package version, even though it lists it as available?

I am creating RPMs from spec files. I was installing java8 latest rev as a dependency, and it always worked fine. Today I needed to pin the java8 version down to a specific rev, but I'm getting an ...
2
votes
1answer
42 views

Build RPM subpackages without a base package

According to a RPM documentation/guide (http://ftp.rpm.org/max-rpm/ch-rpm-subpack.html) one can use subpackages to build multiple RPM packages with a single SPEC file. In the mentioned link the ...
1
vote
1answer
88 views

RPM->installing a new version of a program which has different name

I need to install a version 2.2 of a program X. In repo the default version is 2.0. I built the rpm with rpm-build and I have an rpm called X-2.2. The program from the repo is called X2.0 so package ...
0
votes
2answers
102 views

Is it possible to determine which build flags were used on a pre-built RPM package?

I have been using the Quagga dynamic routing daemon on a CentOS 6 VM. I'd like to use a feature that is only accessible if the RPM was built with the --multipath=X flag. The RPM I'm using was already ...
0
votes
1answer
29 views

How can I tell if a SRPM package will have components which will run as root?

Some packages install software which needs to run with root privileges, such as the sudo package. Others, such as vim, do not inherently need to run with root privileges. Is there a generic way to ...
0
votes
1answer
84 views

How can I reliably modify build configs and add compiler flags in C/C++ RPM files?

I need to change the build configuration of a large number of rpm files for testing purposes. I'm only speaking of C/C++ code here. I'm not necessarily looking to do automation, but I could use a hand ...
2
votes
2answers
64 views

What are some effective ways to build & run an SRPM without installing it?

I am on Fedora 31 and I do software development. I need to work with code in many source RPM packages for relatively short periods of time. For this reason, I'd like to simply build the package, but ...
0
votes
0answers
27 views

Trying to build a RPM for dahdi lead to boot fail on the destination machine

I am trying to build a rpm for Centos 7 to be able to install dahdi without the need of build tools on the destination machine. For that, I tried to create this specs file : Name: dahdi-...
0
votes
1answer
83 views

Use copr with rpmfusion-nonfree packages

I'm building a custom ffmpeg with fdk-aac-devel. This dependency is located in rpmfusing-nonfree. So copr build fails because it cannot find this package. Is there a way for me to install this ...
1
vote
0answers
24 views

rpm_build modifying sh files

When I run rpm_build, it changes the first line of sh files from #!/bin/sh to #!/usr/bin/sh - any idea what might cause this? I observe this change whether I install the rpm or extract the files ...
1
vote
1answer
43 views

How are the pkgrel, extraver, snapinfo and minorbump fields of RPM's Release tag used?

The documentation for creating RPM packages in Fedora Linux states that There are potentially four fields which comprise the structured Release: tag: package release number (<pkgrel&...
1
vote
1answer
193 views

How do you configure rpm-build on fedora 31 to use xz and NOT zstd?

I cannot use zstd for rpm-build compression because I need to install the rpm that i build on a centos 8 machine, which does not have zstd supported, and I'm unable to install anything new on that ...
0
votes
1answer
265 views

cron job setup using rpm is not working

I've below cron file SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin LOG_DIR=/var/log/myapp-services-cron MYAPP_SERVICES_DIR=/opt/myorg/apps/myapp-services * * ...
1
vote
2answers
47 views

Rpmlint “use-tmp-in-%postun” error

rpmlint output: E: use-tmp-in-%postun Spec file: %postun rm -r /var/aci /tmp/aci_tmp 2> /dev/null Also, I cant remove package How I can remove directory in /tmp after or before uninstalling ...
1
vote
2answers
732 views

Passing configure option to rpmbuild?

To build a piece of software I normally do rpmbuild -ta slurm*.tar.bz2 However I now need to configure the software with the option --with-pmix=/home/user/git/pmix/install/2.1 Is this possible ...
1
vote
1answer
47 views

Empty directories are left over after uninstallation of package on higher version of RPM on LINUX

RPM version 4.8.0: [root@sdl34815 x8664]# rpm -ivh tmfi1700-17.00.00.00.rpm Preparing... ########################################### [100%] 1:tmfi1700 ###############################...
1
vote
3answers
907 views

rpmbuild isn't using the current working directory, instead using users home?

When I use rpmbuild I get, No such file or directory. # rpmbuild -ba ./SPECS/myFoo.spec error: File /root/rpmbuild/SOURCES/myFoo.tar.gz: No such file or directory It seems to be reading from my home ...
1
vote
1answer
617 views

How can you specify ./configure args with rpmbuild?

I'm trying to build an rpm with nginx, and the nginx rtmp module. I got my nginx source tar.gz, and my rtmp tar.gz, and placed them in the SOURCES dir. I then made this spec file: Name: nginx ...
0
votes
1answer
35 views

rpmbuild, then install the rpm, then upgrade from repositories

I am a very novice administrator. Building my own production environment is my target. Which will be similar to professional ones. I wonder if it is better to install critical applications from the ...
4
votes
0answers
144 views

Is it possible to create an RPM package from an install script?

I'd like to easily create RPM packages for some random projects that do not come bundled as RPM (or whose RPMs are severely outdated). Take the Pop OS GTK theme as an example. Installing the theme ...
1
vote
0answers
44 views

Why is my rpmbuild %{dist} .fc30.fc30 instead of just .fc30?

I have a .spec file: Name: somefile Version: 1.0.0 Release: 1%{?dist} ... Which produces an RPM: somefile-1.0.0-1.fc30.fc30.noarch.rpm Why is %{dist} applying .fc30 twice? ...
1
vote
3answers
66 views

Why is the procedure for building RPMs so isolated?

I'm learning how to create RPMs for my own packages. Normally I can do everything while logged into my own account but instructions on making RPMs always seem to want you to use some other account. ...
0
votes
1answer
436 views

Centos 7 RPM Packaging - Create a desktop shortcut during installation

I am developing a cross-platform UI with .Net Core and am packaging it using RPM Package Manager. I have created the RPM file to be locally installed. The %install section of my spec file looks like ...
0
votes
1answer
108 views

`rpm -q` and `yum` break after `rpm --rebuild`

In order to repair the RPM database, I ran rpm --rebuild. Afterward, I cannot find any package using rpm -qa, and yum does not work,as the logs below show. [root@local03 ~]# yum Traceback (most ...
0
votes
1answer
116 views

rpmbuild qemu.spec without test [duplicate]

I am using qemu by compiling qemu.spec. I often run the command 'rpmbuild -ba qemu.spec' because I am changing the source frequently, but it seems to take a long time to complete because of the test ...
0
votes
1answer
97 views

Can not get correct source tar.gz in copr.fedorainfracloud.org

I try build wal-g into rpm on copr.fedorainfracloud.org Github repo https://github.com/patsevanton/wal-g-rpm Project https://copr.fedorainfracloud.org/coprs/antonpatsev/wal-g/ Log https://copr-be....
1
vote
0answers
225 views

Building custom RPM with boolean BuildsRequires and Requires

I'm trying to use boolean logic for my dependencies (https://rpm.org/user_doc/boolean_dependencies.html) in a custom spec file, but I'm running into trouble. .spec snippet BuildRequires: libxml2-...
1
vote
1answer
714 views

Configuring a MacOS-based rpmbuild to deliver platform-independent RPMs

I need to build an RPM for a Java software package on MacOS. I'm using rpmbuild from homebrew, version 4.14.2.1. The toolchain is set up correctly, and I get a valid RPM at the end. There is just one ...
0
votes
1answer
472 views

How to configure rpmbuild to forbid installing 32 bit package in 64 bit systems?

I'm packaging software in RPM and distributing it in different packages by architecture (32bit or 64bit). Some libraries of my 32bit package have binaries that cannot be executed in 64bit systems (...
1
vote
1answer
723 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....
3
votes
1answer
300 views

No Python on Fedora 29 Copr

One of my src rpms submitted to Copr for build failed because there is no Python implementation; is this because something is wrong with the src rpm itself, or there is simply no Python implementation ...
0
votes
1answer
661 views

Fedora rpm vs Redhat rpm?

We are performing a docker installation on one of our VMS. We have doubts whether Fedora rpms specifically in EPEL fedora are similar to those for RedHat 7.5. Is there any difference (rpm) docker ...
0
votes
1answer
429 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=...
0
votes
1answer
279 views

Rebuild from src.rpm using new version

This is a follow up to my previous question regarding Building QuantLib on Amazon Linux. I followed the instructions in the answer posted by MLu: Download the source RPM (QuantLib-1.4-7.el7.src.rpm) ...
1
vote
0answers
424 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 ...
2
votes
1answer
251 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 ...
3
votes
2answers
3k views

How to eliminate the warnings: mockbuild does not exist

I was building a package from SRPM on Fedora: $ rpmbuild --rebuild *.src.rpm ... warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: ...
0
votes
1answer
203 views

mock config_opts['files'] seem to be ignored

I'm trying to create a fake /etc/hosts to set the hostname in a Mock-built RPM. This is CentOS7 and the Mock/rpmbuild are not new enough to understand the new Fedora _buildhost macro. So I ...
0
votes
1answer
1k views

Whats the alternative to “exclude” command of rpm.spec file in debian package building

While building an rpm package we can use this exclude command in the spec file to exclude the particular file in certain packages. ex. %exclude foobar/bin/printjob_svr.bin How and where do we ...
0
votes
2answers
872 views

Stunnel 5.x on Centos 6.5

Im looking for an stunnel 5.x RPM for Centos 6.5 so I can get TLS1.2 support. Ive looked everywhere, but cannot find one. Ive tried downloading and compiling, as per another question on here (title: ...
0
votes
1answer
257 views

Why does rpmbuild --target i686 python.spec fail (CentOS 6)?

I downloaded the python src rpm in order to build the 32-bit version of the tkinter package. This was on a 64 bit host (latest centos 6). It looks like it failed to add -m32 in a couple cases... % ...
0
votes
1answer
34 views

Building vmware tools for i386 architecture

Trying to build vmware tools for my 32 bit Centos 7. I took source from github Trying to follow instruction with small changes: autoreconf -i ./configure --without-kernel-modules ./configure --...
1
vote
1answer
1k views

need to stop initv service before rpm removal/upgrade?

Is there a need to stop a service before performing the removal or upgrade of the service's RPM package? Normally, what the RPM package manager does when performing an upgrade is to install the new ...
3
votes
1answer
226 views

When does rpmbuild produce i386 vs. i686 packages (Centos 6)

I am working on the build system for a rather large and old industrial software. As a result of the build, it spits out around 20 rpms (built from scratch with rpmbuild, built from scratch via setup....