]> git.pld-linux.org Git - packages/boost.git/commitdiff
updated py3_ver condition
authorJan Palus <atler@pld-linux.org>
Thu, 31 Mar 2022 19:53:44 +0000 (21:53 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 31 Mar 2022 19:53:44 +0000 (21:53 +0200)
boost.spec

index 3313a56c4ce830a7e63f0e401f1c6bf14c670d44..6223f019b33d6ce296163800a7d25d4d6ba9ea23 100644 (file)
@@ -43,7 +43,7 @@ BuildRequires:        python3-devel
 %endif
 BuildRequires: rpm-build >= 4.6
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.734
+BuildRequires: rpmbuild(macros) >= 1.750
 BuildRequires: zlib-devel
 Obsoletes:     boost-signals < 1.69
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,11 +53,11 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                py2v %(echo %{py_ver} | tr -d .)
 %define                py3v %(echo %{py3_ver} | tr -d .)
 
-#if "%{py3_ver}" >= "3.8"
+%if %{_ver_ge "%{py3_ver}" "3.8"}
 %define                py3v_suffix ""
-#else
-#define                py3v_suffix "m"
-#endif
+%else
+%define                py3v_suffix "m"
+%endif
 
 %description
 The Boost web site provides free peer-reviewed portable C++ source
This page took 0.077359 seconds and 4 git commands to generate.