Questions tagged [specfile]
28 questions
1
vote
1 answer
How to update crontab for a non-root user on Solaris non-interactively?
I would like to update crontab entries for a non-root user for an application which gets installed as OpenPKG RPM package.
Currently I have this in the %post section of my .spec file:
#
# Set up the 'app' user's crontab.
# Marker lines are used to…

hfs
- 835
- 1
- 10
- 10
1
vote
0 answers
Mock build system error: sh: ruby: command not found
I am trying to build a RPM using the mock build system. However, the shell in the mock environment cannot seem to find the ruby command. I run in to a build error:
sh: ruby: command not found
I can see that ruby is installed in the mock environment…

Andy Shinn
- 4,211
- 8
- 40
- 55
1
vote
1 answer
RPM Spec files: Set %config files from a list of files
Example snippet of a SPEC file:
...
%install
unzip $RPM_SOURCE_DIR/APPLICATION-%{version}.zip -d %{buildroot}/
find %{buildroot} -type f ! -name "*.conf" | awk -F %{buildroot} '{print $2}' > filelist.txt
find %{buildroot} -type f -name "*.conf"…

gspoosi
- 131
- 4
0
votes
1 answer
Get a rpm subpackage to be installed with an update
As part of my internship task, I've to deploy OpenVPN clients on around 60-70 client devices that run CentOS (which reside on private networks and cannot be accessed directly). I'm quite new to package management. I've updated the already existing…

Akhil
- 101
- 1
0
votes
3 answers
Can I run for loop over %files directive in the .spec file?
I am writing a spec file which creates multiple packages. Can I use a for loop over %files directive with different names, like this:
for name in {package1, package2, package3} ; do
%files -n $name
%attr(644, root, root)…

TomTom
- 141
- 1
- 4
0
votes
0 answers
RPM .spec file and versioning
I have a .spec file in the /root/rpmbuild/SPECS directory and I have a Version file in the /root/rpmbuild/SOURCES directory. The Version file contain a version number similar as 1.4.5, how can I take it into the .spec file Version: tag?
We are…

PumpkinSeed
- 345
- 2
- 5
- 12
0
votes
1 answer
How should I provide a replacement for a package in yum?
I'm writing a spec file to replace a yum package with one from our own repository. The new package will be a drop-in replacement for the original.
I thought the best way to do it would be to give the spec file an identical Conflicts and Provides…

Score_Under
- 293
- 3
- 7
0
votes
0 answers
Is the lmdb-devel package necessary for installing the cfengine on RHEL v.7 via an RPM .spec file?
I have a problem when I try to build from my spec file. I run this:
rpmbuild -ba newpackage.spec
I see a great deal of output. It ends with these lines:
configure: error: Cannot find Lightning MDB
error: Bad exit status from…

Propulsion
- 158
- 2
- 9
0
votes
1 answer
rpm package conflicts with itself in yum
I prepared custom package platform-6-1.2.3-1.x86_64.
I want it to be conflicting with every OTHER plat-6 package installed in the system.
Files of the package are not conflicting with the others plat-6 packages.
So I filled in spec file with:
Name:…

mighq
- 355
- 1
- 3
- 11
0
votes
1 answer
In an RPM spec file, when a file isn't found, how to find out which %files line is at fault?
I'm working with a very macro-heavy RPM spec file, and when building it's producing an error I can't seem to track down:
File not found: /var/tmp/pkgnamehere/mockbuild/usr/com/pgsql
(I've replaced the full package buildroot path with "pkgnamehere"…

Craig Ringer
- 11,083
- 9
- 40
- 61
0
votes
1 answer
Building debuginfo RPM at alternate prefix
I have an RPM that I'm building to install at an alternate root via
%define _prefix /home/other/root
This works fine for the binary package.
The -debuginfo package, however, still lists all of its files as being in /usr/lib/debug and /usr/src/debug…

daxelrod
- 143
- 3
0
votes
1 answer
Make yum not installing dependancies if main package failed
I have 3 packages corepkg, corepkg-optB and corepkg-optC. corepkg-optC depends on corepkg-optB, corepkg-optB depends on corepkg.
I've created a repo of these 3 packages. When I run yum install corepkg-optC, and corepkg failed, yum installs…

locobastos
- 15
- 1
- 1
- 8
0
votes
0 answers
Proper way to package a NodeJS application with rpmbuild
I have created my first rpm package for a NodeJS app which is ran as a systemd service.
Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version dependent so it could create some other issues?) I…

HomeIsWhereThePcIs
- 144
- 1
- 2
- 9