I have dunno.spec file with the following structure:
Name: dunno
Version: 1.0
...
BuildArch: x86_64
%description
...
%package common
Summary: Shared files
BuildArch: …
I am building a series of rpms from a single source and want to only build the subpackages; i.e. I don't want an empty main package created, only the subpackages.
How do I do this? is it an rpmbuild switch or something I put in to the spec…
I am trying to build and sign an RPM.
I created my .rpmmacro file in the location I am building /path/to/macrodir/
Then I am using --define with _topdir referring to /path/to/macrodir/
If I build the RPM without giving --sign; its working…
I'm trying to create an RPM in Fedora 15 that will install my software, but in order for my software to work correctly once installed, I also need to edit other (configuration) files on the system, add users/groups, etc. Performing some of these…
I am looking for a way to exit rpm install if some condition is false. I have added a small script in the %pre section that exits install if my condition fails.
The problem I am facing is I see that the %pre scriptlet is executed, and rpm install…
We have a product that is distributed via RPMs. We create both SUSE SLES10 SP1 RPMs and RedHat 5.5 RPMs. There are differences between the two, things will not work correctly (often mysteriosly) if you install a SUSE RPM on a RedHat machine and vice…
I'm trying to create an rpm from local source. Is it possible to do compilation in a similar to what pdebuild does - just copy the local directory as the source and operate on that copy? Every time I do rpmbuild -ba ... it tries to unpack some…
I am trying a sample rpm package with single file.
In my source folder I have python_test_rpm.tar.gz which contains only one python script file. But, the file is not a valid python script.
All I want to do is package this and deploy it in a…
I'm trying to set up a maven project on OSX and use the rpm-maven-plugin to build it as an RPM package. However, even the simplest configuration of the plugin seems to fail. The error I get is Bad exit status from…
i want to check the rpm i have created is install or update by user(client)
like
rpm -ivh abc.rpm
or
rpm -Uvh abc.rpm
is their any %command in spec file to get info regarding this command.
my requirement is if i have a rpm named abc-0.1-2.rpm…
When reading some rpmbuild spec files, I come across some of the conditional macros which puzzle me.
example1
%if 0%{?rhel} > 7
blah blah
%endif
# I understand the above block tries to check if the
# red hat enterprise linux version is above 7,…
I am running on a CentOS 5.7 system.
I downloaded a source package and a .spec file from someone else. I am trying to build a RPM from the source using a vanilla command like:
% rpmbuild -ba ~/rpmbuild/SPECS/foo.spec
...
Configuration…
I want to add the SHA256 digests for header and payload to my RPM packages.
currently, it is building with sha1 digest.
below is the output for
rpm --checksig --verbose pkg_name.rpm
Header SHA1 digest: OK
MD5 digest: OK
Environment -…
CentOS Linux release 7.6.1810 (Core)
g++ (GCC) 6.5.0
libasan3-6.3.1-3.1.el6.x86_64
I'm using AddressSanitizer to detect memory error. Unlike the common case, I need to build a rpm package rather than compile source code and run it directly. I have…