Questions tagged [rpm-spec]
This tag is for RPM spec files, the source file for building RPM packages using rpmbuild.
83 questions
3 votes
1 answer
279 views
Do RPM spec's for %changelog change when the upstream source is updated?
Let's say your spec file is synced to upstream v1.0.0 and that changes to v2.0.0, what should the changelog entry say that rebuilds the package from the latest upstream source? From the docs The last ...
1 vote
1 answer
361 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}/...
1 vote
1 answer
101 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 ...
1 vote
1 answer
433 views
Package installation failure and rollback options
I'm trying to understand how the creation of packages (rpm, deb, dpkg) work and what the architecture supports and doesn't. Right now I struggle figuring out what happens when the installation or ...
1 vote
1 answer
190 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 ...
0 votes
1 answer
390 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 ...
0 votes
1 answer
466 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 ...
0 votes
1 answer
567 views
Which UID/GID is free for new package
After reading https://unix.stackexchange.com/a/222376/246754 How rpm ensure that no uid/gid clash with each other ? What I am looking is similar to https://github.com/NixOS/nixpkgs/blob/...