Questions tagged [rpmbuild]
The rpmbuild tag has no usage guidance.
46
questions
0
votes
1
answer
25
views
Bitwise OR in %define macros
While editing a spec file I came across the following line:
%define _udevdir %(pkg-config --variable udev_dir udev | %{_prefix}/lib/udev)
I'm not familiar with the rpmbuild syntax, but I assume its ...
0
votes
0
answers
333
views
Build Apache rpm from tar ball on Rocky Linux 8.5
im trying to build apache rpms from source tarball
OS is Rocky Linux 8.5 with all the prerequisites
Im running :
rpmbuild -tb -sign httpd-2.4.53.tar.bz2
and the error i get :
error: Installed (but ...
0
votes
1
answer
1k
views
rpmbuild complains about dependencies that are there
Trying to build my own monit RPM package on SLES12 SP5 using rpmbuild, I got some error that confuses me:
> rpmbuild -ba -r ~/rpmbuild GNU/RPM/monit.spec
error: Failed build dependencies:
...
0
votes
1
answer
2k
views
beginner RPM about %install and rpmbuild -bb
I am a bit confused about the install step of building a binary RPM.
I think that the install step is designed to be run when the user installs the binary package, the .rpm.
I am trying to package a ...
0
votes
1
answer
79
views
creating rpm for two different hardware systems on Mageia
I am trying to build rpm that will be installed in two different hardware devices.
For each hardware , there are different files and commands that need to be done, I want the rpm to auto-detect the hw ...
2
votes
1
answer
3k
views
Is it possible to install RPM build on Debian?
I have a Docker-based Debian Sid build environment for Go. The build script of an is configured to build both .deb and .rpm.
The rpm build process of a component I wish to build requires though the ...
0
votes
1
answer
372
views
RPM failing to install on RHEL
I am trying to install an RPM package on RHEL7.
I am getting the following error;
Fri Aug 30 05:36:55 UTC 2019--> Start Installing downloaded package...
file /etc/rc.d from install of abc....
0
votes
1
answer
75
views
RPM Spec file diagnostics
I'm writing a spec file and getting slightly unexpected results when I install the rpm. I'd like to see what the install process thinks it's doing.
Contrived example, suppose I have:
%install
...
0
votes
1
answer
98
views
How to build Kazoo RPM files from source code?
I am experimenting with kazoo and wanted to install it from source code. I am able to generate a deployable release but i am not able to build rpm from it. I heard that spec file is needed to build ...
0
votes
1
answer
58
views
Why is the binary (jaeger) from the archive copied incorrectly when building rpm?
Trying to pack jaeger-all-in-one in rpm
source code here:
https://github.com/patsevanton/jaeger-all-in-one-rpm
rpm is created - but the copied binary is of a different size.
37M Nov 28 11:14 /root/...
1
vote
1
answer
2k
views
yum transaction error when trying to install RPM built from RPM spec file
I use a meta package to manage software and common dependencies across several lab systems, and until today, this has worked great. However, after a recent build every RPM spec file directive to copy ...
2
votes
2
answers
712
views
My own rpm doesn't execute %install sequence
I built for the first time a RPM package. This RPM is a packaged front-end app, and the install only needs to move the app files and do a nginx restart. This is my spec file:
Name: my-...
3
votes
1
answer
935
views
What is the last part of rpm package release field?
Example 1:
using yum info vim-enhanced I get this:
Name : vim-enhanced
Arch : x86_64
Epoch : 2
Version : 7.4.629
Release : 5.el6_8.1
Size : 2.2 M
Repo : ...
-1
votes
1
answer
171
views
Is extracting files on %post when installing an RPM a good practice?
I'm creating an RPM to distribute a conda environment and I came up with this solution:
I was able to do it. Here's my .spec file from a Stackexchange answer.
Summarizing: I use the install phase ...
2
votes
0
answers
350
views
RPM spec patch application fails
I have a spec file, which compiles fine without the patch:
build@SLES11SP4-185:~/rpmbuild/SPECS> cat testSoftware.spec
#
# This file and all modifications and additions to the pristine
# package ...