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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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: …
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…