Skip to main content

Questions tagged [rpmbuild]

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

3 votes
2 answers
260 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
  • 143
1 vote
0 answers
16 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
19 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
  • 605
0 votes
0 answers
45 views

MariaDB 10.9.* for Fedora 39 - CPack Error

I have updated my linux-server to Fedora 39 and my MariaDB doesn't work now, because old files have been generated for MariaDB 10.9, but after update it auto-install MariaDB 10.5. What I can do in ...
Timofey Stanskov's user avatar
1 vote
0 answers
45 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
108 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,382
1 vote
1 answer
114 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
247 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
225 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,112
0 votes
1 answer
205 views

error: patch 2147483647 defined multiple times

Sorry for the cryptic title, but that's exactly what I get: bash-4.2# rpmbuild --rebuild dcmtk-3.6.7-3.fc39.src.rpm Installing dcmtk-3.6.7-3.fc39.src.rpm warning: user mockbuild does not exist - using ...
malat's user avatar
  • 3,112
0 votes
1 answer
28 views

Is it possible to install an RPM in a RPM?

Can I create an RPM which contains and puts an RPM in a directory, and install that RPM? How?
DrizzleX's user avatar
  • 125
0 votes
1 answer
408 views

Trying to build a source rpm getting: error: Architecture is not included: x86_64

When I try to build a source rpm for podman 4.5 on Alma Linux 8, I'm getting rpmbuild --rebuild ./podman-4.5.0-1.fc39.src.rpm Installing ./podman-4.5.0-1.fc39.src.rpm warning: user mockbuild does not ...
Evan Carroll's user avatar
  • 31.8k
0 votes
1 answer
260 views

How to use an alternate toolset in rpmbuild

I am trying to compile & package the latest version of Zeek (5.0.7) for rhel 7 servers. I get an error saying the "cxx17" is required. Searching the web, I found that it is contained ...
Garnet's user avatar
  • 398
0 votes
0 answers
256 views

rpmbuild giving duplicate file error message

I am trying to build a package for syslog-ng on rhel 8 and keep getting these errors: File listed twice: /usr/lib/.build-id/53/46b0c98ce522ee7f3ac31c3c1de3bf5f62c873 File listed twice: /usr/...
Garnet's user avatar
  • 398
0 votes
1 answer
355 views

SLES15 SP4 | Installation of a rpm package fails when %post scriplet fails with "/usr/lib/1sb/install _initd: No such file or directory"

I have a .spec file to install a rpm. I have the following snippet in post install (%post scriplet) %post -n %{package_name} # Enable the service at boot time %if %{?suse_version:1}0 /usr/lib/lsb/...
Abhishek Dasgupta's user avatar

15 30 50 per page
1
2 3 4 5
10