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
4
votes
1 answer

How to get automake, libtool, and rpmbuild to work together

I'm trying to create an RPM of my package, which is built using automake and libtool, and I've encountered a problem: rpmbuild aborts upon discovering that the installed programs of the package contain the pathname of the installation directory for…
Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59
4
votes
1 answer

How to include pip packages in an rpm build

I want to include a Python package dependency (installed using pip3 install) in an rpm package. I cannot install using dnf because its version is out of date. rpm returns the following error if I install the dependency using pip3 install: error:…
user11046041
4
votes
2 answers

How can I force Anaconda to install my package after coreutils?

I have a customized RPM that builds a set of subpackages. Each subpackage has a %post script in the spec file that is used to copy some symlinks to another folder: %post server echo "Copying symlinks..." >> /tmp/mystuff.log pwd >>…
Justin ᚅᚔᚈᚄᚒᚔ
  • 15,081
  • 7
  • 52
  • 64
4
votes
4 answers

rpmbuild check-rpath reports error that path is not absolute, incorrectly

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_WITH_INSTALL_RPATH FALSE) SET(CMAKE_INSTALL_RPATH…
Obiphil
  • 361
  • 1
  • 6
  • 17
4
votes
2 answers

How overwrite optflags direct in rpm spec file?

How correct overwrite %optflags direct in spec file ? $ rpm --eval %optflags # Fedora 29 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches…
Jan
  • 41
  • 4
4
votes
2 answers

What does "%{__install}" mean in terms of rpm spec?

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} thinks in the %install section. As far as I understand by…
Paul
  • 6,641
  • 8
  • 41
  • 56
4
votes
3 answers

Using rpmbuild when source tar directory doesn't correspond to name-version

I'm trying to build an rpm from source-1.4.3-linux.tgz (that is downloaded so I don't control the name) and the file untars into the directory source-1.4.3-linux. In my source.spec file, I have Name: source Version: 1.4.3 So it is probably quite…
Boyd
  • 351
  • 4
  • 14
4
votes
3 answers

rpmbuild skip "checking for unpackaged file(s) /usr/lib/rpm/check-files"

While building kernel rpm packagerpmbuild does it's slow "Checking for unpackaged file(s)" check: $ make -j$(nproc) binrpm-pkg ... Checking for unpackaged file(s): /usr/lib/rpm/check-files…
pevik
  • 4,523
  • 3
  • 33
  • 44
4
votes
1 answer

Newbie rpmbuild error

I'm trying to build my first RPM, but getting an error. My .rpmmarcos files looks like this: %packager Your Name %_topdir /home/snort/test %_tmppath /home/snort/test/tmp %_smp_mflags -j3 %__arch_install_post /usr/lib/rpm/check-rpaths …
Gary
  • 83
  • 2
  • 8
4
votes
1 answer

Why does %autosetup perform patching BEFORE extracting sources?

I have a very straightforward arrangement -- one source tarball, one patch: Source: http://...../foo-%{version}.tar.gz Patch: my-patch-for-foo.diff ... %prep %autosetup -v -n bar-%{version} However, when I attempt to use the %autosetup in the %prep…
Mikhail T.
  • 3,043
  • 3
  • 29
  • 46
4
votes
2 answers

creating a RPM to simply unpack a tar ball

I am writing a .spec file for a rpm that is simply going to unpack a tar ball into some directory on the filesystem So where do I put the original tar ball? All the examples I have seen download the original tar ball from the internet. But that is…
MK.
  • 3,907
  • 5
  • 34
  • 46
4
votes
1 answer

apache mod_http2 prerequisite failures

I am trying to RPM build apache 2.4.18 with mod_http2 on CentOS 7. However, when building I get the following failure: checking whether to enable mod_http2... checking dependencies checking for nghttp2... checking for user-provided nghttp2 base…
Ashley Bye
  • 1,752
  • 2
  • 23
  • 40
4
votes
1 answer

Creating a virtual RPM package with no files and only other dependencies

I'm building FFMPEG into an RPM and I have many subpackages defined. Each subpackage is a shared library that FFMPEG provides, or that shared library's development files, ie libavcodec-devel. I'd like to provide a package called ffmpeg-devel which…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
4
votes
2 answers

RPM spec %post doesn't execute in rpmbuild

Given the minimal RPM spec file, that should only execute a %post stanza: $ cat ~/RPMBUILD/SPECS/test.spec Name: None Version: 1.0 Release: 1 Summary: Bla License: …
boardrider
  • 5,882
  • 7
  • 49
  • 86
4
votes
0 answers

rpmbuild: brp-java-repack-jars changes jar permissions

Consider a SPEC file containing: %install install -m u=rwx,g=rx,o= -D bin/blah.jar ${RPM_BUILD_ROOT}%{_libexecdir}/foo/blah.jar Then in the %files section, the permissions are not changed (say, %defattr(-,bubba,users,-)). Installing the RPM results…
Display Name
  • 2,323
  • 1
  • 26
  • 45