[libvirt] [PATCH python] spec: Build python2 package in fedora < 31

Nir Soffer posted 1 patch 4 years, 7 months ago
Failed in applying to current master (apply log)
libvirt-python.spec.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH python] spec: Build python2 package in fedora < 31
Posted by Nir Soffer 4 years, 7 months ago
Since commit ee0cfbe65c5d (spec: Unconditionally build python2 on
Fedora) python2-libvirt is not built on any Fedora version.

Fix the spec to drop python2-libvirt on Fedora 31.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
---
 libvirt-python.spec.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index 64a30b5..8506840 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -13,7 +13,7 @@
 %endif
 
 %define _with_python2 1
-%if 0%{?fedora} || 0%{?rhel} > 7
+%if 0%{?fedora} > 30 || 0%{?rhel} > 7
 %define _with_python2 0
 %endif
 
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH python] spec: Build python2 package in fedora < 31
Posted by Cole Robinson 4 years, 7 months ago
On 9/2/19 11:47 AM, Nir Soffer wrote:
> Since commit ee0cfbe65c5d (spec: Unconditionally build python2 on
> Fedora) python2-libvirt is not built on any Fedora version.
> 
> Fix the spec to drop python2-libvirt on Fedora 31.
> 
> Signed-off-by: Nir Soffer <nsoffer@redhat.com>
> ---
>  libvirt-python.spec.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
> index 64a30b5..8506840 100644
> --- a/libvirt-python.spec.in
> +++ b/libvirt-python.spec.in
> @@ -13,7 +13,7 @@
>  %endif
>  
>  %define _with_python2 1
> -%if 0%{?fedora} || 0%{?rhel} > 7
> +%if 0%{?fedora} > 30 || 0%{?rhel} > 7
>  %define _with_python2 0
>  %endif
>  
> 

Reviewed-by: Cole Robinson <crobinso@redhat.com>

and pushed, thanks for fixing my botch

- Cole

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list