Questions tagged [rpm-spec]
This tag is for RPM spec files, the source file for building RPM packages using rpmbuild.
79
questions
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
%...
1
vote
1
answer
47
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 ...
0
votes
0
answers
47
views
RPM SPEC: Restart external service only if config file was changed after package update
I have a RPM package which add config to /etc/rsyslog.d/. I don't want to restart rsyslog's service after each update because apparently rsyslog can't do graceful restart. So, I would like to restart ...
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:...
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 ...
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 ...
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 ...
1
vote
1
answer
119
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
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 ...
2
votes
1
answer
206
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
280
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/...
0
votes
0
answers
288
views
useradd --create-home not adding a home directory Rocky Linux 8 but does in CentOS 7
I have an RPM that runs a scriptlet to add a user and create a home directory.
I have used this before on CentOS 7, but now need this RPM to run it on Rocky Linux 8 so I've rebuilt the RPM (it's ...
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/...
0
votes
1
answer
476
views
On rpmbuild how to start without deleting the build content?
I'm making a rpm .spec for kernel.
If an error happen I have to correct and recompile the kernel (1 hour!)
Fast question: I want to start the build without rm -fr BUILDDIR
How to do?
Thanks
0
votes
0
answers
174
views
Conditional package dependencies
I am creating an RPM package for Red Hat Enterprise Linux. My software requires the 'redhat-lsb' package when running on RHEL 7 and 8, but does not require it on RHEL 9. Furthermore, the package isn't ...