]> git.pld-linux.org Git - packages/xcb-proto.git/commitdiff
default to python3; rel 3 auto/th/xcb-proto-1.14.1-3
authorJan Palus <atler@pld-linux.org>
Tue, 19 Oct 2021 09:34:22 +0000 (11:34 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 19 Oct 2021 09:34:22 +0000 (11:34 +0200)
xcb-proto.spec

index 6a6a0fb7fef7afe738a2afaf3fb36addeed47e7c..d517c08c3bdc772544518a358d93180ef4e427ca 100644 (file)
@@ -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
 
This page took 0.172414 seconds and 4 git commands to generate.