forked from pool/python-pyotherside
Accepting request 662279 from home:Simmphonie:python
- fix build for Factory - update plugins.qmltypes (commit 067e3a6 on 27 Aug 2018) OBS-URL: https://build.opensuse.org/request/show/662279 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyotherside?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
31b1e23c14
commit
d95de202e7
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyotherside
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,19 +20,21 @@
|
||||
%define skip_python2 1
|
||||
%define srcname pyotherside
|
||||
Name: python-pyotherside
|
||||
Version: 1.5.3
|
||||
Version: 1.5.3_git20180827
|
||||
Release: 0
|
||||
Summary: Asynchronous Python 3 Bindings for Qt 5
|
||||
License: ISC
|
||||
Group: Development/Languages/Python
|
||||
Url: http://thp.io/2011/pyotherside/
|
||||
Source0: https://github.com/thp/pyotherside/archive/%{version}.tar.gz
|
||||
Source: https://github.com/thp/pyotherside/archive/067e3a618df7d9f51d446540324df4f647a0be18.zip
|
||||
Provides: pyotherside = %{version}-%{release}
|
||||
BuildRequires: libqt5-qtbase-devel
|
||||
BuildRequires: libqt5-qtdeclarative-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
%if %{with test}
|
||||
BuildRequires: Mesa-dri
|
||||
BuildRequires: xvfb-run
|
||||
%endif
|
||||
BuildRequires: pkgconfig(Qt5Gui)
|
||||
@@ -47,12 +49,12 @@ BuildRequires: pkgconfig(python3)
|
||||
A QML Plugin that provides access to a Python 3 interpreter from QML.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%setup -q -n %{srcname}-067e3a618df7d9f51d446540324df4f647a0be18
|
||||
# disable qtquicktests
|
||||
sed -i 's| qtquicktests||' pyotherside.pro
|
||||
|
||||
%build
|
||||
qmake-qt5 PYTHON_CONFIG=python%{py_ver}-config CONFIG+="nosilent c++11" QMAKE_CXXFLAGS="%{optflags} -fvisibility=hidden -fvisibility-inlines-hidden"
|
||||
qmake-qt5 PYTHON_CONFIG=python%{python_version}-config QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags" QMAKE_STRIP="/bin/true";
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@@ -60,7 +62,7 @@ make INSTALL_ROOT=%{buildroot} install
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
xvfb-run -s '-screen 0 640x480x8 -extension RANDR' -a ./tests/tests
|
||||
xvfb-run -s '-screen 0, 1280x1024x24' -a ./tests/tests
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user