Re: [opensuse-factory] How to tell Thumbleweed from Leap in the spec file?
Ilya Chernykh
It seems Leap lacks a lot of libraries that Factory/Thumbleweed has. Many packages fail to beild because of this, because they have in in Build Requires. The situation is not going to change in future versions. Is there a way to make a check if the distro is leap or Thumbleweed in the spec file?
------- Пересылаемое сообщение -------
От: "Andrei Borzenkov"
%is_opensuse is new to me but it evaluates to 1 on my leap system. To be safe I'm using: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || 0%{?suse_version} == 1315
This will match both SLES and Leap. If you really want to match Leap only, you need suse_version == 1315 && is_opensuse == 1 -- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
07.11.2015 18:44, Dmitriy Perlow пишет:
This will match both SLES and Leap. If you really want to match Leap only, you need
suse_version == 1315 && is_opensuse == 1
As discussed on -packaging, there is chance that %leap_version will be introduced with value 420100 for current release. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
This will match both SLES and Leap. If you really want to match Leap only, you need
suse_version == 1315 && is_opensuse == 1
This solution will not work for any leap version . -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sat, Nov 7, 2015 at 6:47 PM, Ilya Chernykh
This will match both SLES and Leap. If you really want to match Leap
only, you need
suse_version == 1315 && is_opensuse == 1
This solution will not work for any leap version
In all likelihood leap_version will be introduced shortly (days?). It was discussed on the packaging list as a beneficial thing to do and Coolo agreed. Greg -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
This solution will not work for any leap version
In all likelihood leap_version will be introduced shortly (days?). It was discussed on the packaging list as a beneficial thing to do and Coolo agreed.
Along Leap versions will there be non-leap openSUSE (Thumbleweed-based)? Should I primarily target Thumbleweed or Leap? Will all the packages removed from openSUSE with transition to Leap be restored to open SUSE? How a devel project test package bulds against the upcoming Leap version rather than Factory? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il Sun, 08 Nov 2015 04:22:09 +0300, Ilya Chernykh ha scritto:
How a devel project test package bulds against the upcoming Leap version rather than Factory?
You add the Leap repository to the project. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Dmitriy Perlow
-
Greg Freemyer
-
Ilya Chernykh
-
Luca Beltrame