Two Electron applications built from the identical electron binary set package the same ELF build-id links under /usr/lib/.build-id, so installing trimsp next to musrflow failed the transaction test. Define _build_id_links none in the rpm spec so the package no longer claims those paths, regardless of the el9 build host.
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
%define _binary_payload w<%= compressionLevel %>.xzdio
|
|
|
|
%if "%{_host_cpu}" != "%{_target_cpu}"
|
|
%global __strip /bin/true
|
|
%endif
|
|
|
|
# Electron bundles the identical helper binaries into every app, so the ELF
|
|
# build-id links under /usr/lib/.build-id collide when another Electron app
|
|
# (e.g. musrflow) is installed. Do not package build-id metadata.
|
|
%define _build_id_links none
|
|
%undefine _missing_build_ids_terminate_build
|
|
|
|
Name: <%= name %>
|
|
Version: <%= version %>
|
|
Release: <%= revision %>%{?dist}
|
|
<% if (description) { print(`Summary: ${description}\n`) }
|
|
%>
|
|
<% if (license) { print(`License: ${license}\n`) }
|
|
if (homepage) { print(`URL: ${homepage}\n`) }
|
|
if (license || homepage) { print('\n') }
|
|
|
|
%>Requires: <%= requires.join(', ') %>
|
|
AutoReqProv: no
|
|
|
|
<% if (productDescription) {
|
|
%>%description
|
|
<% print(productDescription)
|
|
print('\n\n\n') }
|
|
|
|
|
|
%>%install
|
|
mkdir -p %{buildroot}/usr/
|
|
cp -R "%{_topdir}/BUILD/usr/." "%{buildroot}/usr/"
|
|
|
|
|
|
%files
|
|
/usr/bin/<%= name %>
|
|
/usr/lib/<%= name %>/
|
|
/usr/share/applications/<%= name %>.desktop
|
|
/usr/share/doc/<%= name %>/
|
|
<% if (_.isObject(icon)) {
|
|
_.forEach(icon, function (iconPath, resolution) {
|
|
%>/usr/share/icons/hicolor/<%= resolution %>/apps/<%= name %><%= resolution === 'symbolic' ? '-symbolic' : '' %>.<%= ['scalable', 'symbolic'].includes(resolution) ? 'svg' : 'png' %>
|
|
<% }) } else {
|
|
%>/usr/share/pixmaps/<%= name %>.png
|
|
<% } %>
|
|
|
|
<% if (pre) {
|
|
%>%pre
|
|
<% print(pre)
|
|
if (preun || post || postun) print('\n\n\n') }
|
|
|
|
|
|
%><% if (preun) {
|
|
%>%preun
|
|
<% print(preun)
|
|
if (post || postun) print('\n\n\n') }
|
|
|
|
|
|
%><% if (post) {
|
|
%>%post
|
|
<% print(post)
|
|
if (postun) print('\n\n\n') }
|
|
|
|
|
|
%><% if (postun) {
|
|
%>%postun
|
|
<% print(postun) } %>
|