diff --git a/MozillaFirefox-branding-openSUSE.changes b/MozillaFirefox-branding-openSUSE.changes index 14f43a3..b253974 100644 --- a/MozillaFirefox-branding-openSUSE.changes +++ b/MozillaFirefox-branding-openSUSE.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 5 07:31:47 UTC 2019 - Wolfgang Rosenauer + +- recognize Leap 15 via sle_version (required for >= 15.1) + ------------------------------------------------------------------- Tue Apr 23 09:15:55 UTC 2019 - Wolfgang Rosenauer diff --git a/MozillaFirefox-branding-openSUSE.spec b/MozillaFirefox-branding-openSUSE.spec index 20ec967..298677d 100644 --- a/MozillaFirefox-branding-openSUSE.spec +++ b/MozillaFirefox-branding-openSUSE.spec @@ -45,34 +45,44 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %global progdir %{_libdir}/firefox %global libgssapi libgssapi_krb5.so.2 +%global suseversion undefined %if %suse_version == 1315 -# Leap 42 -%if %sle_version == 120100 -%global suseversion 42.1 -%else -%if %sle_version == 120200 -%global suseversion 42.2 -%else -%if %sle_version == 120300 -%global suseversion 42.3 + # Leap 42 + %if %sle_version == 120100 + %global suseversion 42.1 + %else + %if %sle_version == 120200 + %global suseversion 42.2 + %else + %if %sle_version == 120300 + %global suseversion 42.3 + %endif + %endif + %endif %endif +%if %suse_version == 1500 + # Leap 15 + %if %sle_version == 150000 + %global suseversion 15.0 + %else + %if %sle_version == 150100 + %global suseversion 15.1 + %endif + %endif %endif -%endif -%else + %if %suse_version >= 1550 -# Tumbleweed -%global suseversion Tumbleweed -%else -%global suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null) -%endif + # Tumbleweed + %global suseversion Tumbleweed %endif + # Leap or not %if 0%{?sle_version} -%global prjname Leap:%{suseversion} -%global distname openSUSE Leap + %global prjname Leap:%{suseversion} + %global distname openSUSE Leap %else -%global prjname %{suseversion} -%global distname openSUSE + %global prjname %{suseversion} + %global distname openSUSE %endif %global homepage https://www.opensuse.org/searchPage/