commit 8ea2a60e332c0ba2a721a8e873d8feb63c88e241
Author: Jan Palus <at...@pld-linux.org>
Date:   Tue Oct 19 11:34:22 2021 +0200

    default to python3; rel 3

 xcb-proto.spec | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/xcb-proto.spec b/xcb-proto.spec
index 6a6a0fb..d517c08 100644
--- a/xcb-proto.spec
+++ b/xcb-proto.spec
@@ -9,7 +9,7 @@ Summary:        XML-XCB protocol description files
 Summary(pl.UTF-8):     Pliki opisu protokoĊ‚u XML-XCB
 Name:          xcb-proto
 Version:       1.14.1
-Release:       2
+Release:       3
 License:       MIT
 Group:         Development/Libraries
 #Source0:      https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
@@ -25,7 +25,7 @@ BuildRequires:        rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.752
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
-%if %{with python2}
+%if %{without python3}
 Requires:      python >= 1:2.5
 Requires:      python-xcbgen = %{version}-%{release}
 %else
@@ -104,11 +104,6 @@ cd ..
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python3}
-%{__make} -C build3 install \
-       DESTDIR=$RPM_BUILD_ROOT
-%endif
-
 %if %{with python2}
 %{__make} -C build2 install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -116,6 +111,11 @@ rm -rf $RPM_BUILD_ROOT
 %py_postclean
 %endif
 
+%if %{with python3}
+%{__make} -C build3 install \
+       DESTDIR=$RPM_BUILD_ROOT
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xcb-proto.git/commitdiff/8ea2a60e332c0ba2a721a8e873d8feb63c88e241

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to