Skip to main content

Questions tagged [rpmbuild]

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

0 votes
0 answers
37 views

Is the are a single site-packages directory for multiple versions of python3 in rpm-based distros?

I am working on creating deb/rpm packages for a little project of mine. I have already created the packages for a few rpm-based and deb-based distros. In deb distros one python file is being setup in /...
eftshift0's user avatar
  • 775
0 votes
1 answer
69 views

Strange "Directory not empty" for `rm -rf ...`command for %clean in rpmbuild of SLES15

After upgrading from SLES12 SP5 to SLES15 SP6 I noticed that the %clean phase of some RPM spec files fail for some strange reason when using rpmbuild -ba. The RPMs (SRPM, RPMs) are written correctly, ...
U. Windl's user avatar
  • 1,771
0 votes
1 answer
55 views

Building a custom Linux kernel causes VMware Tools to stop working

I am compiling kernels for CentOS 6.10 in VMware Workstation. For some reason when I compile and boot a new kernel, VMware Tools stops working, or at least the shared folders feature does, which is ...
Zhro's user avatar
  • 2,851
0 votes
1 answer
794 views

help understanding spec file "provides" syntax

I am fairly new to rpm building and i have been trying to understand the syntax of "Provides" inside a spec file without success. I have the following spec file snippet for building clamav ...
giomanda's user avatar
  • 155
0 votes
0 answers
83 views

How to build a RPM with circular dependencies?

I am trying to build mesa-7.6-0.1.fc11.src from source. $ yumdownloader --source mesa $ cd rpmbuild/SPECS $ rpmbuild -ba mesa.spec error: Failed build dependencies: freeglut-devel is needed by ...
Zhro's user avatar
  • 2,851
1 vote
1 answer
343 views

how to code spec file to install a file on system only if a file is missing

I am new to rpm building and for the past week I am trying to code a spec file to install a file on the system only if a specific files is missing. Here is a snippet %global homedir %{_var}/...
giomanda's user avatar
  • 155
1 vote
1 answer
98 views

Kernel image (vmlinuz...) on /boot has always the same date/time across different compilations. Where is it specified?

On a Fedora System, I'm often recompiling the kernel in order to add the necessary T2 patches for the kernel to benefit from the full capabilities of my MacBook Pro (and also so that the keyboard ...
Marcelo's user avatar
  • 3,971
3 votes
2 answers
595 views

giving variables a default value in a spec file

I have a spec (myspecfile.spec) file that looks similar to Name: package-%{myname} Version: %{myversion} Release: %{myrelease} License: gpl2 Summary: this is my package BuildArch: noarch %...
basil's user avatar
  • 153
1 vote
0 answers
44 views

Undefine CONFIG_BLK_CGROUP macro while building linux kernel image

I am wanted to build a custom kernel image in which macro CONFIG_BLK_CGROUP is not defined. After researching a little bit I found we can do such configurations in .config file. To be more precise I ...
mSatyam's user avatar
  • 111
0 votes
1 answer
195 views

rpmbuild - how to force /usr prefix in install phase?

I have a very small app that I intend to package in deb and rpm files. The project is here: https://github.com/eantoranz/gitmod I have moved forward locally from what I have in the repo but it's not ...
eftshift0's user avatar
  • 775
1 vote
0 answers
86 views

How to create a rpm according a exist one?

I want to create "snapd" rpm on HUAWEI's OS(openEuler OS), but I have no experience with rpmbuild. In snapd's github repository, there are many spec file for other Linux distribution like ...
cookie's user avatar
  • 11
2 votes
1 answer
160 views

rpmbuild: handle naming differences of packages in different distributions

I'm writing a RPM spec file for building my software. The software depends on Crypto++. Crypto++ is named differently on different distributions, for example, on OpenSUSE, I should write BuildRequires:...
Siyuan Ren's user avatar
  • 1,461
1 vote
1 answer
187 views

Spec file for rpmbuild to build gdb9 on ec2

I'm using aws's ec2 instance and I need to install a newer version of GDB (I can't use yum install since there is no newer version available for amazon RHEL). My workflow requires to do this process ...
danwgh's user avatar
  • 23
3 votes
0 answers
336 views

Options for managing user created files in rpm spec file

How is best to handle files in an rpm spec file that may or may not exist with these specifics: Part of the files delivered are example files under a /conf.d/ directory. The files are installed as ...
EddieSub's user avatar
0 votes
1 answer
383 views

Transition %cmake* (*.spec file) to cmake3?

I'd would like to transition an existing *.spec file from the fedora style %cmake* commands to the alternate %cmake3 based one (eg. Amazon Linux 2). What should I replace an existing %cmake_build with ...
malat's user avatar
  • 3,459

15 30 50 per page
1
2 3 4 5
10