rpmbuild Questions

1

I have a spec file to build an rpm package, in my %install section I have this: %install install -m 700 foo/bar/filesToCopy/. $RPM_BUILD_ROOT/ The filesToCopy folder is a tree exactly how the pa...
Photofluorography asked 12/11, 2015 at 8:44

8

Is there any way to extract the spec file from rpm package ( I have only RPM file ) not by rpm --scripts -qp my-great-app-1.1.2.rpm ( this syntax not get the spec file only the scripts from ...
Fecal asked 10/4, 2011 at 18:50

4

Solved

Is it possible to make rpmbuild to preserve symlinks on packaging? The current behavior is to create copies of files, which I would like to avoid.
Sanitation asked 22/9, 2011 at 21:56

4

Solved

I've been building RPMs using CMake & CPack 3.13.4 on OEL7 for several months without issue. My CMake configuration contained these lines: SET(CMAKE_SKIP_BUILD_RPATH FALSE) SET(CMAKE_BUILD_WIT...
Blus asked 14/10, 2019 at 8:29

3

Solved

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 d...
Aerostat asked 18/11, 2015 at 4:15

4

I'm working with a proprietary code base where the owner would like users to get useful stack traces but not be able to view the source code. Generating Debian dbg packages with debug symbols but n...
Pore asked 16/1, 2015 at 19:4

2

Solved

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 situat...
Danziger asked 16/5, 2013 at 22:1

5

Solved

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, myu...
Hacker asked 25/12, 2012 at 12:52

4

Solved

Is it possible for single rpm package to belong to several groups? In spec file you can set package group: Group: System Environment/Base What I need is to be able to set several groups for ...
Eugine asked 7/1, 2011 at 17:31

3

Solved

is it possible to pass parameters to rpmbuild to fill user defined variables that are called inside the spec file? Example: The user defined variable %{foobar} which is called in the .spec file (...
Heyes asked 4/2, 2014 at 17:36

2

Solved

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...
Faucher asked 2/5, 2016 at 12:58

1

I am creating my first package using RPM on ubuntu machine.But I am getting so many difficulties.I tried so many commands to install rpmdevtools using "yum" but it is giving error as There are not ...
Sandglass asked 9/12, 2019 at 11:43

3

I'm trying to build an RPM from binaries on a REDHAT 6 system. I have all the files included in the %files section (find /path/to/fake/install -type f >> specfile) When I run rpmbuild -bb spe...
Althing asked 15/11, 2012 at 16:20

3

Solved

rpmbuild can autodetect dependencies by looking up shared libraries required by binaries included in the package and, while this is a good think almost every time, there are time when it is undesir...
Healing asked 31/8, 2012 at 9:37

3

I have dunno.spec file with the following structure: Name: dunno Version: 1.0 ... BuildArch: x86_64 %description ... %package common Summary: Shared files BuildArch: noarch I suppose that after...
Micamicaela asked 9/1, 2015 at 14:29

4

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: h...
Platt asked 31/5, 2014 at 2:58

3

Solved

I'm generating an rpm file for centos but when I try to install it on a clean machine it fails with: --> Running transaction check ---> Package grass.x86_64 0:6.4.4-1.el6 will be installed...
Wesley asked 12/12, 2014 at 14:37

4

Solved

Name: My Software Version: 1.0.5 Release: 1 Summary: This is my software Not sure if anyone has tried this before or if it is easy, but: A spec file has two unique indicators for its version: ...
Semipermeable asked 22/4, 2013 at 20:8

5

Solved

I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using: GNU/Linux Ubuntu <= 9.04: /usr/src/rpm/... GNU/Linux Ubuntu >= 9.10...
Byroad asked 6/5, 2010 at 0:52

2

Solved

Maybe it's very stupid question but I can't find out the answer. I've neverr tried to write a spec file for rpm package until today. I found an example of spec and I see a lot of %{__install} think...
Spontoon asked 15/3, 2019 at 10:10

4

Solved

I try to pack some map files for our geoserver in an internal rpm package. For the build part, this is just to copy the files. I think this works as expected. But it takes terribly long to pack tho...
Paginal asked 15/2, 2012 at 11:12

3

Solved

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 ...
Rollandrollaway asked 14/2, 2012 at 20:0

4

Solved

I am adding some sources to an existing rpm .spec file by URL and don't have them downloaded yet. Is there a way to get rpmbuild to download the sources rather than doing it manually?
Ursulina asked 16/10, 2015 at 18:39

4

I am upgrading our project RPM. The problem is when I upgrade from projectname-1.0-0 to projectname-1.0-1, it first installs the new project and uninstalls the old project, which, in overall view, ...
Amieva asked 13/9, 2011 at 8:25

1

Solved

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 t...
Scientistic asked 1/8, 2018 at 19:30

© 2022 - 2024 — McMap. All rights reserved.