I want to run ShellCheck on scripts embedded within a spec file that will run where the RPM is deployed. I have .spec snippets like,
%setup -q
cat > ./example.sh << EOF
#!/bin/sh
echo "example"
EOF
As well as hooks,
%post
#!/bin/sh
echo…
I am modifying gnome-shell-3.8.xx.rpm package. I have created several patches for rpm and they are working fine.
Now I want to add new source file in rpm but I am not able to find how to do it?
For patches I have followed below approach:
Download…
I am packaging an internal product which has dependencies on dozens of second level libraries. Ideally, these libraries would be created and managed as independent packages themselves, but our legacy build system makes this difficult.
Instead, we…
I've prepared a build box following this instructions, I've search around and did a hello world rpm build, but still not sure what's the best way to go about packaging a bunch of js files (nodejs app). I'd like to :
deploy the files to a…
It seems that the RPM logic is quite different from what I know already and I am having some issues understanding the "RPM logic". For my work, I have to create a documentation on "How-to create a RPM package on Red Hat 5".
I'm used to Debian and…
In %post, I am running few tests that will validate the rpm installation.
But If tests got failed or post script failed, How can I revert the rpm installation ?
I am working with RPM package manager for about a month now. Currently I want to use rpm -U to upgrade already existing content from previous RPM execution but I need to know the rpm package location on the file system.
The only way I can think of…
I have been reading about creating an RPM for Python 2.6.4. In this page: http://docs.python.org/distutils/builtdist.html it says you can create an RPM of the current Python using python setup.py bdist_rpm. The question's I have are:
Do you have to…
I am building rpm on RHEL-6/64 bit server.
# rpmbuild -bb extras/rpm/neatx.spec
RPM build errors:
File not found by glob: /root/rpmbuild/BUILDROOT/neatx-0.1-1.el6.x86_64/usr/lib/python2.6/site-packages/neatx/*
I do see the same…
i have the source-code of an application that supports adding python plugins. i have written a python script and want to build a custom rpm that by-default includes my script. So that i do not have to additionally add it after the rpm…
I'm trying to use the same CentOS instance to get me to build packages for both versions 5 and 6. Until now everything was working OK, but I think an update in the building instance (6) now includes some dependencies that seems they're not available…
How can I conditionally include a file in an .rpm based on a define _foobar being set or not? The define _foobar would contain the absolute path inside the build root. The file is there.
According to the documentation, I expected the following to…
For me making a tar.gz archive is excess, because i export source code from svn. Perhaps it is possible to make rpm archive without automatic unpacking of archive? (Perhaps it is possible just to copy files from source folder to build or something…
I looked around but none of the answers to this same error message worked in my simple package... I am building the rpm using rpmbuild on Redhat ES 6 and no matter what I have done in my spec file I get the same results. Thank you in advance for…
Currently I'm trying to change an spec file extracted from a nagios rpm package to create my own spec file. When trying to build to rpm I'm getting the following error:
make[1]: Entering directory
/home/mockbuild/rpmbuild/BUILD/nagios-1/base'…