Stack Exchange Network

Stack Exchange network consists of 174 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.

3
votes
1answer
185 views

no python on fedora 29 copr

one of my src rpm submitted to copr for build failed because there is no python; is this because something is wrong with the src rpm itself, or there is simply no python on copr machines, or I missed ...
0
votes
1answer
29 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
0answers
71 views

rpmbuild gives File not found error when build an RPM from source

I am trying to build an RPM for this software collection: https://epics.anl.gov/download/base/base-3.15.5.tar.gz . When you extract the archive it may seems a normal source code, but it only requires ...
0
votes
1answer
184 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
27 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
120 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
45 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
1answer
372 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
35 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
0answers
162 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 ...
0
votes
1answer
164 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
314 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
0answers
196 views

Zypper local repo vs rpm installation

Have a build pipeline that is rebuilding some CentOS packages from src to make them SUSE compliant. While working on it, noticed an oddity and wanted to see if anyone can explain what is going on. ...
0
votes
1answer
71 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
24 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
0answers
40 views

rpmbuild is searching files in %{_buildrootdir}/“package name” and there is nothing there

I need to put the kernel headers in a non standard location, and I want to do it automatically with yum, so I downloaded the rpm corresponding to the current headers in the latest version of CentOS, ...
0
votes
1answer
212 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 ...
2
votes
1answer
101 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
795 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
1k 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
1k 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
275 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
408 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
840 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
560 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
430 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
322 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
1answer
327 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 ...
1
vote
0answers
412 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
199 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
182 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
2k 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 ...
2
votes
1answer
306 views

Binary file got corrupted after packaging

A quick overview, what I'm doing is bundling a nodejs application using enclose.js into a single binary, then using rpmbuild to turn the whole project with config files into a single package. ...
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 ...
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 ...
3
votes
1answer
487 views

Automated RPM builds

I'm making my own personal RPM repository. So far, I've built the following packages: x264 libx264 libx264-devel x265 libx265 libx265-devel lame libmp3lame libmp3lame-devel libmfx libmfx-devel ...
1
vote
1answer
568 views

Subpackage with an empty requires section?

I have an RPM build which looks like this: Summary: LAME Ain't an MP3 Encoder. Name: lame Version: 3.99.5 Release: 1 License: LGPL Vendor: The LAME Project Packager: Naftuli Tzvi Kay <---> URL: ...
1
vote
1answer
590 views

Packaging only a certain subset of built files

I'm attempting to package libmp3lame and libmp3lame-devel much the same way that Debian packages it: they have libmp3lame as a package providing the libmp3lame.so shared library, libmp3lame-dev ...
0
votes
0answers
386 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 ...
1
vote
1answer
222 views

%pre section of my.rpm is no longer executed on RHEL 6.7

There is a .spec file to build an rpm package for our software. In the %pre section of the .spec file there is a check if a previous major version of our software is installed. If yes, the ...
0
votes
1answer
793 views

Make spec file OS-version-specific

Ok, you may read the title and thought "this is nonsense" because a spec file IS by nature OS/Arch independant, but let me explain. The subpackage "yum-plugin-post-transaction-action" from yum-utils ...
1
vote
1answer
514 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'...
0
votes
2answers
164 views

Spec rpm: I want make gmake -j3

On my .spec file I want to pass alias make=gmake -j3, using a bash script I did alias make="gmake -j3" how to do in a .spec file?
1
vote
1answer
502 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
720 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 ...
3
votes
1answer
5k views

Build RPM on Windows with Cygwin but install on Linux

I am trying to figure out an issue that I have with installing an RPM file on openSUSE which I build on Windows (using Cygwin/rpmbuild). When I try to install the RPM on Linux I get an error saying ...
1
vote
3answers
945 views

how to use rpmbuild for el5 on el6 system

Do any of you have a idea how to build a spec file using rpmbuild for a el5 system while running on el6 host? spec is a simple packaging of py script. Difference between el5 and el6 rpm should by ...
1
vote
0answers
48 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
438 views

Building RPM results in nothing generated in RPMS directory

I am building a RPM on RHEL. After following https://fedoraproject.org/wiki/How_to_create_an_RPM_package, I put my front.tar.gz in /rpmbuild/SOURCES, and make the spec file like this: Name: front ...