Why is topdir set to its default value when rpmbuild called from tcl?

I have a tcl script which 'exec' rpmbuild. When doing so, the 'topdir' used by rpmbuild is wrong. I have a .rpmmacros file in my home directory and if I call manually rpmbuild, it works fine, ie....

Several groups in RPM package

Is it possible for single rpm package to belong to several groups? In spec file you can set package group: Group: System Environment/Base What I need is to be able to set several groups for this...

Packaging symlinks via rpmbuild?

Is it possible to make rpmbuild to preserve symlinks on packaging? The current behavior is to create copies of files, which I would like to avoid.

How can I rebuild rpm package exclude some dependencies?

Have next kind of question. Wanna to rebuild garbage collector (gc-7.1-10.el6.src.rpm) and exclude ld-linux.so.2, ld-linux.so.2(GLIBC_2.3) & libpthread.so.0(GLIBC_2.3.2) dependencies. How can I...

Retrieving current architecture for RPM

I'm automating RPM package building with rpmbuild. The files end up in the architecture subdirectory under RPMS. Question - how do I retrieve, from a shell script, the architecture name of the...

Automatically install build dependencies prior to building an RPM package

I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this...

rpmbuild Installed (but unpackaged) files source

I'm trying to build an RPM from binaries on a REDHAT 6 system. I have all the files included in the %files section (find /path/to/fake/install -type f >> specfile) When I run rpmbuild -bb specfile...

If condition inside the %Files section on a SPEC file

I'm kinda a new to writing spec files and building RPM's. Currently I have one RPM that is supposed to deploy some files in 1 of 2 possible directories that will vary with the OS. How can I,...

How to pass user defined parameters to rpmbuild to fill variables

is it possible to pass parameters to rpmbuild to fill user defined variables that are called inside the spec file? Example: The user defined variable %{foobar} which is called in the .spec file...

Getting error while building rpm - File not found by glob:

I am building rpm on RHEL-6/64 bit server. # rpmbuild -bb extras/rpm/neatx.spec RPM build errors: File not found by glob:...

recvmmsg() with timeout = 0 is equivalent to nonblocking recvmsg()?

I am on CentOS 6.5 with kernel version kernel-2.6.32-431.el6. I was trying to find the implementation of recvmmsg(), and hopefully, I am not looking at the wrong source...

RPM file not generated using maven rpm plugin

I am trying to create .rpm file of my maven project on my windows machine. I followed the steps given in the below link to achieve...

How to produce platform-specific and platform-independent RPM subpackages from one .spec?

I have dunno.spec file with the following structure: Name: dunno Version: 1.0 ... BuildArch: x86_64 %description ... %package common Summary: ...

OpenCV findContours() complains if used with black-white image

I want to perform edge detection with the following code. However I get an error because of the image color depth. This error in my eyes, makes no sense, as I convert the image properly to a...

Which command fails to build with custom infodir

I have this rpm: which-2.20-12.fc23.src.rpm and I am trying to compile it with two different ways (one with gcc and one with llvm). What I do is: export CC=clang export CXX=clang++ rpmbuild...

How to include post install script in python setuptools

import os from setuptools import setup from distutils.command.install import install as _install def _post_install(dir): from subprocess import call call([sys.executable,...

RHEL5 - Install davfs from srpm - error with neon 0.30.0

I'm using an old RHEL5 system and trying to install davfs from source. I don't have the option of upgrading the entire system to a newer version, so I am stuck with what I have. This is what I...

rpmbuild: how to skip generation of "debuginfo" packages (without change SPEC file ; neither .rpmmacros)

We need to (re)generated third party packages on EL7 but we don't want to change SPEC file as suggested (%define debug_package %{nil}...

ImageMagick-7.0.1-3.x86_64.rpm installation on Red Hat Enterprise Linux Server release 6.7

Trying to install ImageMagick 7.0.1-3 on Redhat 6.7 : $sudo rpm -ivh ImageMagick-7.0.1-3.x86_64.rpm error: Failed dependencies: ImageMagick-libs = 7.0.1-3 is needed by...

SyntaxError with Jest and React and importing CSS files

I am trying to get my first Jest Test to pass with React and Babel. I am getting the following error: SyntaxError:...

rpm provides shared object that is also required by a provided executable

Preface: Auto dependencies (AutoReqProv) is ON As the title says, we have a shared object that is provided by the RPM package we have built, so it is placed in the %files section of the spec file....

Per-Component value for CPACK_PACKAGING_INSTALL_PREFIX with RPM Generator

I am trying to set a per-component value for CPACK_PACKAGING_INSTALL_PREFIX when using the RPM generator, but I'm not having any success. The CMake documentation for...

RPM overwrite file if it was not modified

I have an RPM and the SPEC file. My application has a file (myfile.txt), which is installed in /mypath. So, when my RPM is installed we have /mypath/myfile.txt in the server. The file...

rpmbuild skip "checking for unpackaged file(s) /usr/lib/rpm/check-files"

While building kernel rpm packagerpmbuild does it's slow "Checking for unpackaged file(s)" check: $ make -j$(nproc) binrpm-pkg ... Checking for unpackaged file(s): /usr/lib/rpm/check-files...

Docker: what does runc:[2:INIT] mean?

Recently we have upgraded our Linux kernel of web server from 3.12.57-60.35 to 3.12.62-60.62.1. After the upgrade, all docker containers can't be well started. Each time when I try to start my...

How to use cmake pack redhat-style rpm, which is major and "-devel"?

I have tried to use cmake to pack redhat style rpms. Classical RedHat-style rpms are consist of 2 rpm, one is package-version.rpm and another is package-devel-version.rpm. But I failed. For...

electron-forge make won't build

An unhandled rejection has occurred inside Forge: Error: Cannot make for rpm, the following external binaries need to be installed: rpmbuild at MakerRpm.ensureExternalBinariesExist...

How to create a RPM which install python dependencies?

I have a python application that has flask dependency. All I need is to create an RPM out of this application and with this RPM I should be able to install the dependencies to another...

Jenkins Pipeline breaks on brp-mangle-shebangs?

Since Fedora32 (so Fedora 33 too) my libreoffice RPM Build wont run anymore. It seems to break when /usr/lib/rpm/redhat/brp-mangle-shebangs is called by jenkins. I modified brp-mangle-shebangs to...

Building rpm - File not found by glob:

I want to generate an rpm package (Redhat) ,I get an error when i launched the command : rpmbuild -ba librabbitmq.spec Processing files: librabbitmq1-0.10.0-0.x86_64 error: File not found by...