Questions tagged [rpmbuild]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
32 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
53 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
27 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
2answers
57 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 ...
0
votes
0answers
9 views

redefine optflags or pcre-config

I have a script that creates a spec file with the line: %define WITH_CC_OPT $(echo %{optflags} $(pcre-config --cflags)) I want to change the definition of the WITH_CC_OPT by changing %{optflags} ...
0
votes
0answers
44 views

Why is rpmbuild failing to build a noarch package?

I am trying to build an RPM of perl-Net-SNMP-XS for RHEL 7 (as I can't find a prebuilt RPM anywhere) I followed this https://www.cyberciti.biz/faq/build-perl-module-rpm-file-with-cpanspec-on-rhel-...
1
vote
1answer
125 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
26 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,...
3
votes
0answers
51 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
31 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
55 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
186 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
79 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
53 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
21 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
77 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
99 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
326 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
250 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
376 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
287 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
261 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
330 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
197 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
305 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
133 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 ...
2
votes
2answers
1k 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
116 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
442 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
702 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
171 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
29 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
659 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
176 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
3k 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 ...
1
vote
1answer
3k 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 ...
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 ...
0
votes
1answer
469 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
1answer
872 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 ...
2
votes
2answers
1k 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
1k 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
559 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
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
535 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 ...
2
votes
2answers
943 views

How to avoid undesirable dependencies 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 ...
1
vote
0answers
656 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
269 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
225 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
3k views

Can I build centos 7 (el7) rpm package on centos 6 (el6) server?

There are some documents teaching me on how to build rpm by myself in centos with rpm-build or mock. I am fine to build them for el6 rpm package. My question is, can I build a rpm package for centos ...