Path fixes.

f41
Gwyn Ciesla 6 years ago
parent 2c20575db1
commit 39d6d62db6

@ -82,7 +82,7 @@ BuildRequires: pkgconfig(Qt5Xml) pkgconfig(Qt5XmlPatterns)
BuildRequires: pkgconfig(Qt5WebChannel) BuildRequires: pkgconfig(Qt5WebChannel)
BuildRequires: pkgconfig(Qt5WebSockets) BuildRequires: pkgconfig(Qt5WebSockets)
%if 0%{?with_python2} %if 0%{?with_python2}
BuildRequires: python2-devel python2 BuildRequires: python27
BuildRequires: python2-enum34 BuildRequires: python2-enum34
%if 0%{?fedora} > 27 %if 0%{?fedora} > 27
%global python2_dbus python2-dbus %global python2_dbus python2-dbus
@ -115,7 +115,7 @@ Obsoletes: python-qt5 < 5.5.1-10
%package -n python2-qt5 %package -n python2-qt5
Summary: Python 2 bindings for Qt5 Summary: Python 2 bindings for Qt5
Requires: python2-qt5-base%{?_isa} = %{version}-%{release} Requires: python2-qt5-base%{?_isa} = %{version}-%{release}
BuildRequires: qt5-qtbase-private-devel BuildRequires: qt5-qtbase-private-devel python27
Requires: python2-enum34 Requires: python2-enum34
Provides: python2-PyQt5 = %{version}-%{release} Provides: python2-PyQt5 = %{version}-%{release}
Provides: python2-PyQt5%{?_isa} = %{version}-%{release} Provides: python2-PyQt5%{?_isa} = %{version}-%{release}
@ -286,7 +286,7 @@ pushd %{_target_platform}
--sip-incdir %{_prefix}/include/python%{python2_version}/ \ --sip-incdir %{_prefix}/include/python%{python2_version}/ \
--dbus=/usr/include/dbus-1.0/ \ --dbus=/usr/include/dbus-1.0/ \
QMAKE_CFLAGS_RELEASE="%{optflags}" \ QMAKE_CFLAGS_RELEASE="%{optflags}" \
QMAKE_CXXFLAGS_RELEASE="%{optflags} -I%{_libdir}/dbus-1.0/include/" \ QMAKE_CXXFLAGS_RELEASE="%{optflags} -I/usr/%{_lib}/dbus-1.0/include/" \
QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}" QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"
%make_build %make_build
@ -306,10 +306,10 @@ pushd %{_target_platform}-python3
%{?py3_sip:--sip=%{_bindir}/python3-sip} \ %{?py3_sip:--sip=%{_bindir}/python3-sip} \
%{?py3_sipdir:--sipdir=%{py3_sipdir}} \ %{?py3_sipdir:--sipdir=%{py3_sipdir}} \
--verbose \ --verbose \
--sip-incdir %{_prefix}/include/python%{python3_version}m/ \ --sip-incdir %{_prefix}/include/python%{python3_version}/ \
--dbus=/usr/include/dbus-1.0/ \ --dbus=/usr/include/dbus-1.0/ \
QMAKE_CFLAGS_RELEASE="%{optflags}" \ QMAKE_CFLAGS_RELEASE="%{optflags}" \
QMAKE_CXXFLAGS_RELEASE="%{optflags} -I%{_libdir}/dbus-1.0/include/" \ QMAKE_CXXFLAGS_RELEASE="%{optflags} -I/usr/%{_lib}/dbus-1.0/include/" \
QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}" QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"
%make_build %make_build

Loading…
Cancel
Save