Questions tagged [rpmbuild]
46 questions
30
votes
4 answers
RPM build error: empty %files file debugfiles.list
Problem and environment
Korora 23 (Fedora 23)rpmbuild --version RPM version 4.13.0-rc1
I am trying to make a local package of freefilesync for myself. The site offers an openSUSE version which I'm trying to package for Fedora.
My spec file.
The…
bgStack15
- 2,314
12
votes
1 answer
Is it possible to modify/rebuild an rpm without the srpm?
I have an rpm for which I need to change the preinstal scriptlet for testing.
However, I do not have the SRPM from which is was built.
Is it possible to change the scriptlet and/or rebuild the rpm without having the SRPM?
If so, how?
I've tried…
warren
- 10,322
7
votes
1 answer
Why do I get Files Listed Twice when building my RPM?
My understanding is that if I specify the %dir directive under the %files list, RPM will not list any files under that directory. Doing this can allow you to set specific permissions for the directory in question (or user, group etc). However I…
user983022
- 171
4
votes
2 answers
How do I prevent rpmbuild form injecting requirements into RPM package?
I'm creating an RPM package from native Python 2.5 one. Out corporate policy is to use python2.4 by default, so I'm adding a string
Requires: python25
to a .spec file. When I look at created RPM file though, i see the following dependencies:
rpm…
Basilevs
- 2,904
3
votes
1 answer
How to create an RPM package which on installing just copies files to specific folders?
I want to create an RPM package consisting of certain files which needs to be copied to different locations upon installation of the RPM.
Please help me out with the spec file
Thejdeep
- 41
3
votes
1 answer
What is the last part of rpm package release field?
Example 1:
using yum info vim-enhanced I get this:
Name : vim-enhanced
Arch : x86_64
Epoch : 2
Version : 7.4.629
Release : 5.el6_8.1
Size : 2.2 M
Repo : installed
Example 2:
yum info kernel
Installed…
Sajuuk
- 521
2
votes
1 answer
How does RPM determine newer package
I have taken the Apache httpd 2.2.3 SRPM and extracted the .spec file. From this I've replaced 2.2.3 with 2.2.14 and removed the Serial tag from the specfile (as rpmbuild complained about the Serial tag - I presume this has been deprecated).…
PP.
- 2,885
2
votes
2 answers
Upgrading Node.JS from tarball of binares when yum-installed version already exists
On CentOS 6.3 64-bit, I've installed Node.JS version 0.6.18 using yum.
I have an application that requires Node.JS v0.8.x. The currently stable version of Node.JS available is 0.8.7, which is perfect. Unfortunately, the site that hosts the RPMs…
Brad
- 6,629
2
votes
2 answers
yum/RPM depend on generic package (like "provides" in other package managers)
I'm trying to figure out how to make a package of mine depend on anything that provides "java", but I'm not sure what to even look up. Apparently "yum provides" is a command for finding out which package contains a particular file, and "yum info"…
Brendan Long
- 1,808
2
votes
1 answer
Is it possible to install RPM build on Debian?
I have a Docker-based Debian Sid build environment for Go. The build script of an is configured to build both .deb and .rpm.
The rpm build process of a component I wish to build requires though the tool rpmbuild.
Is it possible to install rpmbuild…
J. Doe
- 481
2
votes
2 answers
My own rpm doesn't execute %install sequence
I built for the first time a RPM package. This RPM is a packaged front-end app, and the install only needs to move the app files and do a nginx restart. This is my spec file:
Name: my-portal-app
Version: 2.1
Release: …
Kalamarico
- 153
2
votes
0 answers
RPM spec patch application fails
I have a spec file, which compiles fine without the patch:
build@SLES11SP4-185:~/rpmbuild/SPECS> cat testSoftware.spec
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#…
RajSanpui
- 551
1
vote
1 answer
how to make rpmbuild automatically generate require >= and not =
I rpmbuild a package and afterwards I find that it requires python(abi) = 2.5 . I don't want to use
AutoReqProv: no
to suppress generation of requirements completely, I just want to make it require python(abi) >= as I think this makes more…
user322908
- 819
1
vote
2 answers
How do I turn off the perl-specific parts of find-requires when building an RPM?
rpmbuild will scan Perl modules to find Perl dependencies, but it doesn't understand optional modules and its generated Perl module requirement list will often be wrong. How can I turn this feature off just for Perl dependencies, but leave the rest…
Schwern
- 2,196
1
vote
1 answer
Given a directory, get relative paths of all files recursively
I'm building an RPM spec file and need to list in the %files section the files to include, relative to a build root that I'll specify. I already have the assembled directory that needs to be packaged--I just need to turn this into a list of relative…
devios1
- 725