I need to specify common attributes for one of the major directories in the package, and special permission for some of it subdirs. e.g.
%files
%attr(-, myuser, mygroup) /opt/myapp
%attr(750, myuser, mygroup) /opt/myapp/bin # no exec permission to…
I have an RPM Spec file, building on rhel7 with rpmbuild, where I would like to define the Version with a script.
I read here http://www.techrepublic.com/article/rpmproc-spec-file/ , That I can do this:
%define version 1.2
Version: %{version}
And…
I have two boxes that I'm using to build a source rpm. One of them runs:
/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/name-of-package
which adds three name.debug files to the RPM_BUID_ROOT.
the other build box does not run…
We need to (re)generated third party packages on EL7 but we don't want to change SPEC file as suggested (%define debug_package %{nil} https://www.redhat.com/archives/shrike-list/2003-April/msg00069.html) and neither changing the ~/.rpmmacros file as…
Background.
$ rpmbuild --version
RPM version 4.3.3
I am working on a spec file that needs to process a list of files in multiple scriptlets. DRY (don't repeat youself) has me defining the list once as a macro which is expanded into the various…
I've been trying to find out what's the easiest way to set a fixed filename during rpm creation. Can it be set somewhere in .spec file or as rpmbuild parameter? The default name depends on version and release number. Name of my rpm has to be always…
I have to build a rpm package for some drivers. I need to build the rpm from a .tar.gz archive. The tar ball also contains the .spec file. I have set up my rpmbuild environment as described here:…
I am getting the following in my build log:
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CgE2Qn
+ umask 022
+ cd /export/home/svn_checkouts/*snip*/Output/release/bin/packaging/BUILD
+ /bin/rm -rf…
If I have this line in the %files:
%attr(0555, myuser, myuser) /opt/myapp/lib/my.jar
Then my.jar will have myuser as owner, but directory /opt/myapp/lib will be owner by root.
I don't want to write
%attr(0555, myuser, myuser) /opt/myapp/lib/
as I…
The default behavior of rpmbuild seems to be to scan every file in the buildroot for #! lines and add those interpreters as hard requirements. Is it possible to disable this? I've run into a situation where people are committing scripts with…
I am having a weird RPM issue, I am new to it so bear with me... I have the spec file created and when I run to do the build I get an error:
/var/tmp/rpm-tmp.ajKra4: line 36: cd: hero-01: No such file or directory
error: Bad exit status from…
I would like to use 'chkconfig --del NetworkManager' command in the %install section of a rpm spec file. If I include this command the rpm is building fine but when I install that rpm, it looks that the command does not get executed. After…
I've got a build generated with a pyinstaller.
I need to create .rpm package which will put the executable into the /usr/bin/ and create a systemd service which will run that executable.
I found this…