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
308 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 ...
0 votes
1 answer
893 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 ...
1 vote
1 answer
394 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}/...
2 votes
1 answer
132 views
How do you establish a relationship on a library such that a breaking change in the library forces an update on all dependencies?
Let's say I have two packages and a library, all at version 1. PackageFoo version 1. PackageBar version 1. LibBaz version 1. Now, PackageFoo requires LibBaz PackageBar requires LibBaz However, let'...
1 vote
1 answer
119 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 ...
4 votes
2 answers
631 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 %...
1 vote
1 answer
463 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 ...
2 votes
1 answer
172 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:...
1 vote
1 answer
212 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 ...
3 votes
0 answers
344 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 ...
0 votes
1 answer
403 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 ...
1 vote
1 answer
247 views
Could not execute mockbuild: Could not download sources
When writing a .spec file for Fedora, I ran into a problem. I can't seem to be able to do fedpkg mockbuild at all. No matter what source I use, HTTPS or local, I keep running into this error: Failed ...
0 votes
1 answer
480 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 ...
2 votes
1 answer
307 views
Correct way to modify config files in an upstream RPM?
What's the right way to create an RPM that modifies the %config(noreplace) files installed by another RPM? Specific instance of the general question: We want to modify the repository definitions ...
0 votes
1 answer
603 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/...