rpm-spec 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

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

6

Solved

The concrete example being I have lots of specfiles with Source0: or other Source lines containing macros. How can I have these macros expanded without actually starting a build on the specfile or ...
Doublehung asked 3/9, 2010 at 9:56

3

Solved

I have created a python application in which I would like to ship .so and some binary files in the final RPM package. After long reading I found a way to add binaries/ image and other data files in...
Enlightenment asked 22/1, 2014 at 16:22

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

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

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

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

1

Solved

I'm working on a packaging system that packages things in RPMs. I have a case where it would be very convenient to specify that I want a directory and every file and subdirectory under it included ...
Walkthrough asked 6/8, 2019 at 23:38

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

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

1

I want to build a rpm of my project automated. So when I push a new tag to my git repo, it should build a rpm from this tag revision. My problem is, how can I prep the sources and specify it in the...
Drowsy asked 19/1, 2018 at 8:46

6

Background. $ rpmbuild --version RPM version 4.3.3 I am working on a spec file that needs to process a list of files in multiple scriptlets. DRY (don't repeat youself) has me defining the list on...
Stifle asked 2/12, 2010 at 20:16

1

Is it possible to have a separate %install section for a subpackage in a spec file? For example, files can be specified for the main package as %files and for the subpackage like this: %files ...
Leporine asked 21/9, 2017 at 11:17

2

Solved

I need to build a RPM, with the sole purpose of installing a few fonts. I have read several tutorials about that, however everyone seems to suggests something different and I haven't been able to f...
Psychodrama asked 4/2, 2014 at 15:50

1

Solved

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 ...
Baldachin asked 25/11, 2016 at 9:51

1

My spec files path looks like below : /opt/OV /opt/OV/NonOV /opt/OV/NonOV/ABCD /opt/OV/NonOV/ABCD/ABC /opt/OV/NonOV/ABCD/ABC/Test1 /opt/OV/NonOV/ABCD/ABC/Test1/test1.txt /opt/OV/NonOV/ABCD/ABC/Te...
Percaline asked 18/3, 2016 at 9:24

2

Currently I am trying to install a rpm secured_soft_2.0.0.rpm and i am unable to install it as we already have secured_soft_1.3.0 installed. Requirement is that we need to have both the versions...
Triphylite asked 21/10, 2015 at 9:4

1

I use this spec file to use RPM files Name: pack-agent Version: 1.0 Release: 1%{?dist} Summary: Linux Agent installation script Group: Utilities License: license Source0: pack-agent-1.0.tar.gz Bui...
Gemina asked 28/8, 2015 at 19:5

1

rpm created using spec file will create directory "directory1" and all files in /var/lib/directory1. For another use case i want to create another directory in "/var/lib" which should be a symlink...
Kristiankristiansand asked 18/8, 2015 at 8:25

2

Solved

I want to create simple RPM file with many small files. [root@laptop rpm]# tree . ├── BUILD ├── BUILDROOT ├── RPMS ├── SOURCES │   └── some_agent-1.0.tar.gz ├── SPECS │   ├── kernel.spec │   └── k...
Toxic asked 26/7, 2015 at 16:34

1

Solved

I see no uninstall section in RPM spec documentation. I do see preun and postun. Is there uninstall phase? What exactly happens during uninstall phase? Basing on %files section, a list of files i...
Bonds asked 1/4, 2015 at 12:15

© 2022 - 2024 — McMap. All rights reserved.