Questions tagged [rpmbuild]

rpmbuild command used to build rpms from rpm SPEC files

rpmbuild is the command used to build rpms from a rpm SPEC file.

854 questions
7
votes
4 answers

How can I rebuild rpm package exclude some dependencies?

Have next kind of question. Wanna to rebuild garbage collector (gc-7.1-10.el6.src.rpm) and exclude ld-linux.so.2, ld-linux.so.2(GLIBC_2.3) & libpthread.so.0(GLIBC_2.3.2) dependencies. How can I get something similar I want? (CentOS 6) % rpm -qp -R…
mart7ini
  • 1,519
  • 2
  • 16
  • 21
7
votes
1 answer

How can I use git to track SRPM customizations?

Our team frequently performs customization to various packages distributed with RHEL/CentOS. Our workflow involves installing the SRPM, executing rpmbuild -bp to unpack and patch the source, making our changes and creating a .patch to be included in…
Justin ᚅᚔᚈᚄᚒᚔ
  • 15,081
  • 7
  • 52
  • 64
7
votes
1 answer

Why does rpmbuild(1) ignore the compressed tar(1) file named by the "Source:" tag in the RPM "spec" file?

The file ldm.spec contains the line Source: /web/ftp/pub/ldm/%{name}-%{version}.tar.gz in its first section. %{name} and %{version} are set correctly. The given file does exist. The command rpmbuild --nobuild ldm.spec error-exits with the…
Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59
7
votes
0 answers

RPM build fails locating libelf.so.dts.1 when using Developer Toolset 7

I am compiling software for Red Hat/CentOS 7 (running on CentOS) using the compiler from Developer Toolset 7, and when I try to create an RPM, rpmbuild fails with the following error: + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz…
nafmo
  • 448
  • 4
  • 19
7
votes
0 answers

Install entire folder and files in it, RPM spec file

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 package file tree should look like. It has all the sub…
Jimmie
  • 397
  • 2
  • 5
  • 20
7
votes
1 answer

symlink in particular directory using rpm spec

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 to directory1. eg: cd /var/lib/ ls -la directory2…
Kevin Parker
  • 1,350
  • 3
  • 14
  • 18
7
votes
4 answers

How to build a debuginfo RPM without source code?

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 no source code is straightforward but the Redhat…
Guy Lancaster
  • 219
  • 4
  • 6
7
votes
1 answer

Where to put last git commit id in an rpm

I would like to add the last "git commit id" to my rpms to have a foolproof way to track back the sources used to build a package. I could use the rpm release tag, but this is already used for release numbers and dates in case of snapshots. I don't…
mirk
  • 5,302
  • 3
  • 32
  • 49
7
votes
4 answers

If condition inside the %Files section on a SPEC file

I'm kinda a new to writing spec files and building RPM's. Currently I have one RPM that is supposed to deploy some files in 1 of 2 possible directories that will vary with the OS. How can I, within the %files section, verify them? I can't use…
cjdcordeiro
  • 681
  • 1
  • 6
  • 13
7
votes
1 answer

issue with postun scripts when renaming munin package

I have two issues that i would like to figure out a solution to: I am renaming the munin 2.0 package and in the SPEC file for the RPM I have to obsolete the original munin packages. When replacing an existing 1.x munin package as part of the postun…
7
votes
3 answers

Can some specific autodetected dependency be ignored upon rpmbuild

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 undesirable but only for some specific libraries. I am…
a1an
  • 3,526
  • 5
  • 37
  • 57
6
votes
1 answer

rpm subpackages %install section

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 mysubpackage however, I have only seen…
user12066
  • 613
  • 6
  • 23
6
votes
1 answer

rpmbuild simple copy of files

Looking for someone to just clarify the %install macro when it comes to just placing files. I created a RPM without errors that is supposed to just take files from the buildroot and cp them to /usr/lib. What I have in the SPEC file for the %install…
H-man
  • 163
  • 1
  • 2
  • 12
6
votes
1 answer

Set permissions after RPM install

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: …
user1285928
  • 1,328
  • 29
  • 98
  • 147
6
votes
1 answer

How to package a .tar.gz file into rpm package

I worked on Redhat Linux, I have a tar.gz file. I want to package this tar.gz file to a rpm package file. In the rpm package phase, I just want to extract the tar.gz file and package all of the staff into the rpm package, when I install the…
FlurryWInd
  • 305
  • 1
  • 4
  • 12