File appimagelauncher.spec of Package AppImageLauncher

#
# spec file for package appimagelauncher
#
# This package repackages the upstream pre-built RPM from GitHub releases.
# Building from source is impractical as the upstream build system uses
# CMake FetchContent requiring network access during build.
#

Name:           appimagelauncher
Version:        3.0.0~beta3
Release:        0
Summary:        Helper application for managing and integrating AppImages
License:        MIT
Group:          System/GUI/Other
URL:            https://github.com/TheAssassin/AppImageLauncher
Source0:        appimagelauncher.rpm
Source1:        appimagelauncher-rpmlintrc
ExclusiveArch:  x86_64

BuildRequires:  cpio
BuildRequires:  hicolor-icon-theme
BuildRequires:  systemd-rpm-macros

# Upstream bundles all dependencies in /opt/appimagelauncher.AppDir
# Only system-level libraries not bundled upstream are required
AutoReqProv:    no
Requires:       libGL1
Requires:       fontconfig
Requires:       libfreetype6
Requires:       libfribidi0
Requires:       libgpg-error0
Requires:       libharfbuzz0
Requires:       systemd
Requires:       hicolor-icon-theme

# Do not strip or generate debuginfo for upstream binaries
%define debug_package %{nil}
%define __strip /bin/true

%description
AppImageLauncher makes your Linux desktop AppImage ready.

By installing it, you won't ever have to worry about AppImages again.
You can always double click them without making them executable first,
just like any other application on your system.

AppImageLauncher integrates deeply into the system. It intercepts attempts
to run an AppImage and offers to integrate it into the system, adding a
launcher entry and allowing you to launch it from your application menu.

It also provides a daemon (appimagelauncherd) that monitors your
AppImage directories and keeps your launcher entries up to date.

%prep
%setup -T -c
rpm2cpio %{SOURCE0} | cpio -idmv

%build
# Nothing to build - upstream provides pre-built binaries

%install
mkdir -p %{buildroot}
cp -a opt %{buildroot}/opt
cp -a usr %{buildroot}/usr

%files
/opt/appimagelauncher.AppDir
/usr/bin/AppImageLauncher
/usr/bin/AppImageLauncherSettings
/usr/bin/ail-cli
/usr/bin/appimagelauncherd
%dir %{_binfmtdir}
%{_binfmtdir}/appimagelauncher.conf
%{_userunitdir}/appimagelauncherd.service
%{_datadir}/applications/ail-cli.desktop
%{_datadir}/applications/appimagelauncher.desktop
%{_datadir}/applications/appimagelauncherd.desktop
%{_datadir}/applications/appimagelaunchersettings.desktop
%{_datadir}/icons/hicolor/128x128/apps/AppImageLauncher.png
%dir %{_datadir}/icons/hicolor/160x160
%dir %{_datadir}/icons/hicolor/160x160/apps
%{_datadir}/icons/hicolor/160x160/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/16x16/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/192x192/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/256x256/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/32x32/apps/AppImageLauncher.png
%dir %{_datadir}/icons/hicolor/384x384
%dir %{_datadir}/icons/hicolor/384x384/apps
%{_datadir}/icons/hicolor/384x384/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/512x512/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/64x64/apps/AppImageLauncher.png
%{_datadir}/icons/hicolor/scalable/apps/AppImageLauncher.svg
%{_datadir}/mime/packages/appimage.xml

%changelog
openSUSE Build Service is sponsored by