2016-07-29 21:31:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-qtcharts-qt5
|
|
|
|
#
|
2019-02-22 10:14:29 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-07-29 21:31:07 +02: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.
|
|
|
|
|
2018-10-22 15:37:39 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-07-29 21:31:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-07-29 21:31:07 +02:00
|
|
|
Name: python-qtcharts-qt5
|
2019-02-22 10:14:29 +01:00
|
|
|
Version: 5.12
|
2016-07-29 21:31:07 +02:00
|
|
|
Release: 0
|
2019-02-22 10:14:29 +01:00
|
|
|
Summary: Python bindings for the Qt5 Charts library
|
2018-10-22 15:37:39 +02:00
|
|
|
License: GPL-3.0-only
|
2016-07-29 21:31:07 +02:00
|
|
|
Group: Development/Libraries/Python
|
2018-01-27 18:35:18 +01:00
|
|
|
URL: https://www.riverbankcomputing.com/software/pyqtchart/intro
|
2019-02-22 10:14:29 +01:00
|
|
|
Source: https://www.riverbankcomputing.com/static/Downloads/PyQtChart/PyQtChart_gpl-%{version}.tar.gz
|
|
|
|
BuildRequires: pkgconfig(Qt5Charts)
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module qt5-devel}
|
|
|
|
BuildRequires: %{python_module sip-devel >= 4.19.1}
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-07-29 21:31:07 +02:00
|
|
|
Requires: python-qt5
|
2019-02-22 10:14:29 +01:00
|
|
|
|
|
|
|
%ifpython2
|
2016-07-29 21:31:07 +02:00
|
|
|
%requires_python_sip_api
|
2019-02-22 10:14:29 +01:00
|
|
|
%endif
|
|
|
|
%ifpython3
|
|
|
|
%requires_python3_sip_api
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%python_subpackages
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
%description
|
2019-02-22 10:14:29 +01:00
|
|
|
PyQtChart is a set of Python bindings for the Qt5 Charts library.
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%package -n %{name}-api
|
|
|
|
Summary: Eric6 API files for %{name}
|
|
|
|
Group: Development/Tools/IDE
|
|
|
|
Provides: %{python_module qtcharts-qt5-api = %{version}}
|
2016-07-29 21:31:07 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%description -n %{name}-api
|
|
|
|
This package provides Qt5 Charts library API files for eric6.
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%package -n %{name}-sip
|
|
|
|
Summary: Sip files for %{name}
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Provides: %{python_module qtcharts-qt5-sip = %{version}}
|
2016-07-29 21:31:07 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%description -n %{name}-sip
|
|
|
|
This package contains sip files used to generate
|
|
|
|
bindings to the Qt5 Charts library.
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%package -n %{name}-examples
|
|
|
|
Summary: Examples for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Provides: %{python_module qtcharts-qt5-examples = %{version}}
|
2016-07-29 21:31:07 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%description -n %{name}-examples
|
|
|
|
This package provides %{name} examples.
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n PyQtChart_gpl-%{version}
|
2019-02-22 10:14:29 +01:00
|
|
|
%{python_expand mkdir build_%{$python_bin_suffix}
|
|
|
|
cp *.py build_%{$python_bin_suffix}
|
|
|
|
cp -r sip build_%{$python_bin_suffix}
|
|
|
|
}
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
%build
|
2019-02-22 10:14:29 +01:00
|
|
|
%{python_expand pushd build_%{$python_bin_suffix}
|
|
|
|
$python configure.py \
|
2018-10-22 15:37:39 +02:00
|
|
|
--no-dist-info \
|
|
|
|
--no-stubs \
|
|
|
|
--qmake=%{_bindir}/qmake-qt5
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2019-02-22 10:14:29 +01:00
|
|
|
popd
|
|
|
|
}
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
%install
|
2019-02-22 10:14:29 +01:00
|
|
|
%{python_expand pushd build_%{$python_bin_suffix}
|
2016-07-29 21:31:07 +02:00
|
|
|
%make_install INSTALL_ROOT=%{buildroot}
|
2019-02-22 10:14:29 +01:00
|
|
|
popd
|
|
|
|
}
|
2018-10-22 15:37:39 +02:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
2019-02-22 10:14:29 +01:00
|
|
|
find examples -type f -executable -exec sed -i '1s=^#!%{_bindir}/\(python\|env python\)3\?=#!%{_bindir}/python3=' {} +
|
2018-10-22 15:37:39 +02:00
|
|
|
cp -r examples %{buildroot}%{_docdir}/%{name}
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%files %{python_files}
|
2018-10-22 15:37:39 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS README
|
2019-02-22 10:14:29 +01:00
|
|
|
%dir %{python_sitearch}/PyQt5/
|
2016-07-29 21:31:07 +02:00
|
|
|
%{python_sitearch}/PyQt5/QtChart.so
|
2019-02-22 10:14:29 +01:00
|
|
|
%exclude %{_docdir}/%{name}/examples/
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%files -n %{name}-api
|
2018-10-22 15:37:39 +02:00
|
|
|
%license LICENSE
|
2019-02-22 10:14:29 +01:00
|
|
|
%dir %{_datadir}/qt5/qsci/api/python/
|
|
|
|
%{_datadir}/qt5/qsci/api/python/PyQtChart.api
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%files -n %{name}-sip
|
2018-10-22 15:37:39 +02:00
|
|
|
%license LICENSE
|
2019-02-22 10:14:29 +01:00
|
|
|
%{_datadir}/sip/PyQt5/QtChart/
|
2016-07-29 21:31:07 +02:00
|
|
|
|
2019-02-22 10:14:29 +01:00
|
|
|
%files -n %{name}-examples
|
2018-10-22 15:37:39 +02:00
|
|
|
%license LICENSE
|
2019-02-22 10:14:29 +01:00
|
|
|
%dir %{_docdir}/%{name}/
|
|
|
|
%{_docdir}/%{name}/examples/
|
2016-07-29 21:31:07 +02:00
|
|
|
|
|
|
|
%changelog
|