Questions tagged [rpmbuild]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
41 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 ...
2
votes
0answers
893 views

How to corrupt rpmdb?

Yes, You read it right i actually want to corrupt RPMDB for testing purpose. I tried Googling it but all i got was to, how to rebuild it. So at last i tried rpm --rebuilddb and killed the process ...
1
vote
0answers
24 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
0answers
42 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
128 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 ...
1
vote
0answers
252 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
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/...
1
vote
0answers
581 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
255 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
2answers
220 views

Build an RPM for a specific minor version of RH

I need an RPM built for a specific minor version of RH, so that it only installs on that minor version (ex RHEL 6.4) and not on other minor versions like RHEL 6.6. Also when rpm/yum installs this pkg ...
1
vote
1answer
678 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 ...
1
vote
0answers
832 views

Have Makefile create rpm spec file

I have a makefile to build my program then a makefile to build my rpm package in addition to an rpm spec file to create the rpm. Right now the spec file is manually maintained. However for future ...
1
vote
0answers
59 views

Error while building libxcrypt

I am building the libxcrypt package on my OBS and I am getting the following error: [ 37s] crypt_util.c:268:1: error: type defaults to 'int' in type name [-Werror=implicit-int] [ 37s] crypt_util....
1
vote
1answer
999 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
19 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 ...
0
votes
0answers
5 views

What solutions are available for setting up a build server to mirror changes from a sourceforge SVN?

I'm teaching myself how to build RPMs and create YUM/dnf repositories. One of related the projects I'm working on includes packaging DOS games into a deployable RPM on a private repository. Currently,...
0
votes
1answer
62 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
59 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
0answers
13 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
1answer
56 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....
0
votes
1answer
139 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
115 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
2answers
593 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
135 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
392 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 ...
0
votes
0answers
958 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
0answers
494 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 ...
0
votes
1answer
652 views

How to install RHEL source code RPM in non-default directory?

The RHEL source code RPM package is installed in ~/rpmbuild by default. I want use --prefix option to change the installed directory: [root@nan nan]# rpm -ivvh --prefix=/home/nan kernel-3.10.0-290....
0
votes
1answer
556 views

RPM installation %post macro works on terminal but not on GUI

I have created my own .rpm file. The installation works prefect on the command line but doesn't work properly when i am doing it from the GUI. The only thing that doesn't work from the GUI is the %...
0
votes
0answers
171 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
1k 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 ...