!10 Modify BuildRequires from python2 to python3
From: @lei_ju Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
3dd34bb7cd
@ -1,18 +1,18 @@
|
||||
Name: libdbusmenu
|
||||
Version: 16.04.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
Summary: Pass a menu structure across DBus
|
||||
License: LGPLv3 or LGPLv2 and GPLv3
|
||||
URL: https://launchpad.net/libdbusmenu
|
||||
Source0: https://launchpad.net/libdbusmenu/16.04/%{version}/+download/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: 0001-libdbusmenu-add-patch-to-modify-build-err.patch
|
||||
Patch0: 0001-libdbusmenu-add-patch-to-modify-build-err.patch
|
||||
|
||||
BuildRequires: atk-devel autoconf automake gettext glibc-devel gnome-common intltool libtool libxslt
|
||||
BuildRequires: pkgconfig pkgconfig(atk) pkgconfig(gio-2.0) >= 2.35.4 pkgconfig(gio-unix-2.0) >= 2.24
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.35.4 pkgconfig(gobject-introspection-1.0) >= 0.10
|
||||
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16 pkgconfig(gtk+-3.0) >= 2.91 pkgconfig(json-glib-1.0) >= 0.13.4
|
||||
BuildRequires: pkgconfig(x11) >= 1.3 python2 vala-devel vala-tools
|
||||
BuildRequires: pkgconfig(x11) >= 1.3 python3 vala-devel vala-tools
|
||||
%global with_tests 0
|
||||
%if 0%{?with_tests}
|
||||
BuildRequires: dbus-test-runner valgrind
|
||||
@ -91,13 +91,13 @@ cp -dpR libdbusmenu-%{version} libdbusmenu-gtk3-%{version}
|
||||
|
||||
%build
|
||||
cd %{name}-gtk3-%{version}
|
||||
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
||||
sed -i -e 's@^#!.*python$@#!/usr/bin/python3@' tools/dbusmenu-bench
|
||||
autoreconf -vif
|
||||
%configure --disable-static --disable-dumper --with-gtk=3
|
||||
%make_build
|
||||
|
||||
cd ../%{name}-%{version}
|
||||
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
||||
sed -i -e 's@^#!.*python$@#!/usr/bin/python3@' tools/dbusmenu-bench
|
||||
autoreconf -vif
|
||||
%configure --disable-static --disable-dumper --with-gtk=2
|
||||
%make_build
|
||||
@ -199,6 +199,9 @@ cd -
|
||||
%{_datadir}/gtk-doc/*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 26 2020 leiju <leiju4@huawei.com> - 16.04.0-12
|
||||
- Modify BuildRequires from python2 to python3
|
||||
|
||||
* Tue Sep 8 2020 liuweibo <liuweibo10@huawei.com> - 16.04.0-11
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user