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