Skip to content

Commit

Permalink
[rpm/sailfishos-chum-gui-installer.spec] Test again
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored May 31, 2024
1 parent 2979dce commit aff68f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpm/sailfishos-chum-gui-installer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Provides: sailfishos-chum-repository
%global logdir %{_localstatedir}/log
%global logfile %{logdir}/%{name}.log.txt
%define _sailfish_version %(source /etc/os-release; echo $VERSION_ID | sed 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1\2\3/')
%define _sailfish_version_ %(source /etc/os-release; echo $VERSION_ID | sed -r 's/^([0-9]+)\.([0-9]+)\.([0-9]+).*/\1\2\3/')

# This %%description section includes metadata for SailfishOS:Chum, see
# https://github.com/sailfishos-chum/main/blob/main/Metadata.md
Expand Down Expand Up @@ -112,6 +113,7 @@ Links:

%prep
echo "_sailfish_version: %{?_sailfish_version}"
echo "_sailfish_version_: %{?_sailfish_version_}"
%setup -q

%build
Expand All @@ -138,7 +140,7 @@ then
fi
# Add sailfishos-chum repository configuration, depending on the installed
# SailfishOS release (3.1.0 is the lowest supported, see line 60):
%if 0%{?_sailfish_version} < 460
%if 0%{?_sailfish_version_} < 460
ssu ar sailfishos-chum 'https://repo.sailfishos.org/obs/sailfishos:/chum/%%(release)_%%(arch)/'
%else
ssu ar sailfishos-chum 'https://repo.sailfishos.org/obs/sailfishos:/chum/%%(releaseMajorMinor)_%%(arch)/'
Expand Down

0 comments on commit aff68f2

Please sign in to comment.