File appimagelauncher.spec of Package appimagelauncher

#
# spec file for package appimagelauncher
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           appimagelauncher
Version:        3.0.0alpha2
%define _name AppImageLauncher
%define _lib32dir /usr/lib
%define _version 3.0.0-alpha-2
%define _pre gha8
%define _commit b9eba93
Release:        %{version}%{?dist}
Summary:        A Helper application for running and integrating AppImages
License:        MIT
URL:            https://github.com/TheAssassin/AppImageLauncher
BuildRequires:  bsdtar
BuildRequires:  libcurl4
Requires:       cairo
Requires:       desktop-file-utils
Requires:       hicolor-icon-theme
Requires:       qt5-base
Requires:       shared-mime-info
Source0:        https://github.com/ahmedmoselhi/%{_name}/releases/download/v%{_version}/%{name}_%{version}-%{_pre}.%{_commit}+focal_amd64.deb

%description
A Helper application for running and integrating AppImages.

%prep
cp -a %{_sourcedir}/*.deb %{_builddir}
cd %{_builddir}
bsdtar -xf *.deb
#rm -rf usr/lib/.build-id

%install
cd %{_builddir}
bsdtar -xf *.tar.xz
install -dm 755 "%{buildroot}/usr"
cp -a usr "%{buildroot}";

%files
%{_bindir}
%{_bindir}/%{_name}
%{_bindir}/%{_name}Settings
%{_bindir}/ail-cli
%{_bindir}/%{name}d
#%{_lib32dir}/.build-id
%{_lib32dir}/binfmt.d
%{_lib32dir}/systemd/user/%{name}d.service
%{_lib32dir}/x86_64-linux-gnu
%{_datadir}

%changelog
openSUSE Build Service is sponsored by