This request supersedes:
request 563612
(Show diff)
Overview
Loading...
target maintainer
+%if 0%{?is_opensuse} +%if 0%{suse_version} == 1550 +URL="http://download.opensuse.org/tumbleweed/repo/oss" +%endif +%if 0%{suse_version} == 1500 && 0%{?sle_version} == 150000 +URL="http://download.opensuse.org/distribution/leap/15.0/repo/oss" +%endif +%endif +if [ -z "$URL" ]; then + echo "Building for unknown distro - no repository specified." + exit 1 +fi
That sounds a bit too strict and fragile, especially for TW.
Better detect TW as %if 0%{?suse_version} && !0%{?sle_version}
then we don't have to hard-lock it on 1550
for Leap we could go as far as convert 150000 automatically to 15.0 (15.1 will be 150100, and so on)
Login required, please
login
in order to comment
@favogt: review reminder
+%if 0%{?suse_version} >= 1550 && !0%{?sle_version}
Except if you ever except this to be built against openSUSE 13.x, being is_opensuse and not having sle_version defined implies TW already (I'm not happy about 1550 version comparison - but can live with it)