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 [rpmbuild]

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

0
votes
1answer
19 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
44 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
16 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
0answers
10 views

How download release using Fedora COPR from github.com?

I try download release application using Fedora COPR from github.com. SPEC file: https://raw.githubusercontent.com/patsevanton/aerokube-cm-rpm/master/aerokube-cm-rpm.spec Version: 1.5.7 Source0: ...
0
votes
0answers
19 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....
3
votes
1answer
251 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 ...
1
vote
0answers
20 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
22 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
2answers
2k views

Building from SRPMs on CentOS 6.5

I'm trying to compile Awesome on CentOS 6.5 using rpmbuild. I found SRPMs for Fedora Core and am trying to rebuild them on my CentOS install but am running into dependency issues. Basically, while I'...
1
vote
1answer
959 views

rpmbuild different path for sysconfdir

I am building rpm for opensips and i want to install this package in /opt/opensips path instead of default system path I have define following in my SPEC file %define _prefix /opt/opensips %...
0
votes
1answer
981 views

Multiple prefix tags in rpm spec file

I have an rpm that builds two packages. I tried to add separate Prefix tags in the preamble each of the packages. However, as there is one prep section, I am not able to address the prefix each of ...
0
votes
1answer
58 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 (...
0
votes
1answer
869 views

Make spec file OS-version-specific

The subpackage "yum-plugin-post-transaction-action" from yum-utils appeared with RHEL6. Now I have an heterogeneous infrastructure, and I needed this yum plugin for RHEL/Centos 5. So I made a spec ...
1
vote
1answer
170 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....
0
votes
0answers
165 views

How to build a RPM package?

I need to build a RPM package to install in Citrix XenServer. (centos 5). The package maintainer didn't update the RPMs. I downloaded and installed Centos 5 and the rpm-build, gcc, etc packages. I ...
0
votes
1answer
66 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
238 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
52 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
212 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
1answer
66 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 ...
0
votes
1answer
54 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 ...
2
votes
1answer
733 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
0answers
230 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 ...
1
vote
2answers
1k views

How to refer to any files or scripts packaged inside RPM from %pre %post scriptlets

I am building an RPM package that packages the various files that includes properties files, config files, scripts, JARs etc. Now when writing the %pre, %post, %preun and %postun scritptlets, I need ...
0
votes
1answer
252 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
485 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
108 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
25 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 --...
0
votes
1answer
346 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 ...
0
votes
1answer
1k views

How to use rpmbuild to build a rpm package from binary tarball?

Resources on Internet are all about how to build a rpm files from source code. But I have already got compiled binary tarball of software. But I don't want to directly extract it to / , because it ...
3
votes
1answer
141 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....
0
votes
1answer
329 views

How do i create a complete new rpm including all dependencies - Ansible disconnected package

I need to install Ansible on my node and the node doesn't have internet connection. So i had to download all the dependencies and installed the same. Now i would like to create a complete package ...
1
vote
1answer
4k views

Upgrading kernel 2.6.18 to 2.6.32 on CentOS 5.10

I've been looking on Google for 4 hours and I can't find a solution to my problem. I have a computer running CentOS 5.10 using Kernel 2.6.18-371.9.1.el5 and I would like to upgrade my kernel to 2.6....
1
vote
2answers
3k views

How to get spec file path within rpm spec file

The spec file is present inside the source directory. The specfile build section looks like %build cd ~/path/sources make If the spec file path can be detected then the hardcoding of the ~/path/...
1
vote
1answer
2k views

How do I skip specific tests when building an rpm?

I am building an RPM of git version 2.13.0. The build has gone ok but one of the tests are failing: Config variable ${LIB_HTTPD_SVN} is not defined Config variable ${LIB_HTTPD_SVN_PATH} is not ...
1
vote
1answer
2k 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
583 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 ...
1
vote
2answers
941 views

how to extract the instructions provided by the rpm spec file

I have reviewed several related questions - the closest being: Extract the spec file out of an RPM -- AND I must add I would have phrased my question the same way. However, it seems the .spec file is ...
0
votes
0answers
774 views

Not able to install rpm-build

I am using zypper to install rpm-build but I am getting issues: zypper install rpm-build Loading repository data... Reading installed packages... Resolving package dependencies... The following 4 ...
0
votes
1answer
495 views

RPM Package Naming Convention/Limitations

I created an rpm with the following name - product-name-subname-1.0.0.3.65-1 but having issues listing it using yum from a remote server. Repository is properly configured because I created the ...
1
vote
1answer
576 views

What does Requires: Python(package) do for RHEL spec files?

I'm packaging some Python packages currently without RPMs, and some of those depend on others that I'm packaging. While packaging I noticed a format where people do: Require: python(pkg-name), but I'...
1
vote
0answers
2k views

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.8ntGMt (%install)

I'm getting an error that I'm not sure how to debug. Any thoughts on the matter? Here are the contents of the shorewall.spec file %global mainver 5.0.4 %global baseurl http://www.shorewall.net/pub/...
0
votes
1answer
440 views

what does the following rpm “%prep” step do?

Assuming Source0: %{gnu_download_url}/coreutils/coreutils-%{version}.tar.gz Source1: mk7distro.tar.bz2 Patch0: hostutils.patch.bz2 Can someone tell me what does the following ...
0
votes
0answers
451 views

Failing to build nvidia kmod : mockbuild does not exist

I'm trying to build nvidia drivers on fedora 23 (installed on a qubes virtual machine if that matters) and as you'll be able to see in a second I'm confronted with a major problem that prevents me ...
2
votes
3answers
2k views

How to install packages for old version of Fedora?

I'm using a Fedora 13 VM, and I need to install some old rpms, but only have the source rpm files. I know that I can use rpmbuild --rebuild to build the binaries, but for whatever reason, rpm-build ...
0
votes
1answer
514 views

How to avoid undesirable dependancies in rpm package?

I am making a package for RHEL7. When I try to install the package, I get # yum localinstall mypackage-0.0-1.el7.rpm (...) --> Running transaction check ---> Package webmin-GPI-init.noarch ...
0
votes
1answer
487 views

RPM %install section

So, I am somewhat puzzled by the rpmbuild process. I'm now maintaining a slew of scripts previously created and while most work, there are enough differences between them that finding a consistent ...
1
vote
0answers
519 views

Trying to build (a)kmod package for acpi_call on Fedora, cannot be installed

I want to package a simple kernel module, acpi_call, for Fedora. For this I have followed the kmods2 instructions on RPM Fusion and got the following SPEC file: # Copyright © 2016 Martin Ueding <...
1
vote
1answer
231 views

Enable SCL python27 so other RPMs can see it

Trying to create an RPM that uses Python 2.7 on a RHEL 6 machine. I'm using SCL to enable Python2.7 and building the RPM with it fine. However, when I try to install that RPM on a different system ...
1
vote
1answer
610 views

How to modify default install directory for rpmbuild command?

On Suse Linux Enterprise Server 11, I use rpmbuild to install a source rpm: linux-a21w:/usr/src/packages/SPECS # rpmbuild -v -bi zlib.spec By default, it installs into /var/tmp/zlib-1.2.7-build ...