2018-01-15 18:18:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyotherside
|
|
|
|
#
|
2024-01-07 19:47:42 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-01-15 18:18:30 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-03-09 09:19:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-15 18:18:30 +00:00
|
|
|
#
|
|
|
|
|
2018-01-29 10:56:46 +00:00
|
|
|
|
2018-01-15 18:18:30 +00:00
|
|
|
%define srcname pyotherside
|
2020-03-09 09:19:59 +00:00
|
|
|
%bcond_without test
|
2018-01-15 18:18:30 +00:00
|
|
|
Name: python-pyotherside
|
2024-06-20 13:04:37 +00:00
|
|
|
Version: 1.6.1
|
2018-01-15 18:18:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Asynchronous Python 3 Bindings for Qt 5
|
|
|
|
License: ISC
|
2020-03-09 09:19:59 +00:00
|
|
|
URL: https://thp.io/2011/pyotherside/
|
|
|
|
Source: https://github.com/thp/pyotherside/archive/%{version}.tar.gz
|
2018-01-15 18:18:30 +00:00
|
|
|
BuildRequires: libqt5-qtbase-devel
|
|
|
|
BuildRequires: libqt5-qtdeclarative-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Qml)
|
|
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(python3)
|
2020-03-09 09:19:59 +00:00
|
|
|
Provides: pyotherside = %{version}-%{release}
|
|
|
|
Provides: python3-pyotherside = %{version}-%{release}
|
2020-03-10 08:54:28 +00:00
|
|
|
Obsoletes: python3-pyotherside < %{version}-%{release}
|
2020-03-09 09:19:59 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: Mesa-dri
|
|
|
|
BuildRequires: xvfb-run
|
|
|
|
%endif
|
2018-01-15 18:18:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A QML Plugin that provides access to a Python 3 interpreter from QML.
|
|
|
|
|
|
|
|
%prep
|
2019-01-04 11:32:36 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2018-04-10 08:24:16 +00:00
|
|
|
# disable qtquicktests
|
|
|
|
sed -i 's| qtquicktests||' pyotherside.pro
|
2018-01-15 18:18:30 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-10 08:54:28 +00:00
|
|
|
%qmake5 PYTHON_CONFIG=python%{python3_version}-config QMAKE_STRIP="/bin/true";
|
2020-03-09 09:19:59 +00:00
|
|
|
%make_build
|
2018-01-15 18:18:30 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make INSTALL_ROOT=%{buildroot} install
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2019-01-01 12:13:59 +00:00
|
|
|
xvfb-run -s '-screen 0, 1280x1024x24' -a ./tests/tests
|
2018-01-15 18:18:30 +00:00
|
|
|
%endif
|
|
|
|
|
2020-03-09 09:19:59 +00:00
|
|
|
%files
|
2024-01-07 19:47:42 +00:00
|
|
|
%doc README.md
|
2019-01-04 11:32:36 +00:00
|
|
|
%license LICENSE
|
2018-01-15 18:18:30 +00:00
|
|
|
%dir %{_libqt5_archdatadir}/qml/io/
|
|
|
|
%dir %{_libqt5_archdatadir}/qml/io/thp/
|
|
|
|
%{_libqt5_archdatadir}/qml/io/thp/pyotherside
|
|
|
|
|
|
|
|
%changelog
|