2017-08-24 18:56:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqt5-qtcharts
|
|
|
|
#
|
2020-05-27 10:38:42 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-08-24 18:56:27 +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.
|
|
|
|
|
2019-12-17 11:03:06 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-08-24 18:56:27 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-06-24 14:00:12 +02:00
|
|
|
%define qt5_snapshot 1
|
2017-08-24 18:56:27 +02:00
|
|
|
%define libname libQt5Charts5
|
|
|
|
%define base_name libqt5
|
2024-05-29 14:05:08 +02:00
|
|
|
%define real_version 5.15.14
|
|
|
|
%define so_version 5.15.14
|
2021-06-24 14:00:12 +02:00
|
|
|
%define tar_version qtcharts-everywhere-src-%{version}
|
2017-08-24 18:56:27 +02:00
|
|
|
Name: libqt5-qtcharts
|
2024-05-29 14:05:08 +02:00
|
|
|
Version: 5.15.14+kde0
|
2017-08-24 18:56:27 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Qt 5 Charts Library
|
2019-12-17 11:03:06 +01:00
|
|
|
License: GPL-3.0-or-later
|
2017-08-24 18:56:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-17 11:03:06 +01:00
|
|
|
URL: https://doc.qt.io/qt-5/qtcharts-index.html
|
2021-06-24 14:00:12 +02:00
|
|
|
Source: %{tar_version}.tar.xz
|
2017-08-24 18:56:27 +02:00
|
|
|
BuildRequires: fdupes
|
2021-06-24 14:00:12 +02:00
|
|
|
BuildRequires: libqt5-qtdeclarative-devel >= %{real_version}
|
2017-08-24 18:56:27 +02:00
|
|
|
%if %{qt5_snapshot}
|
|
|
|
#to create the forwarding headers
|
|
|
|
BuildRequires: perl
|
|
|
|
%endif
|
2019-12-17 11:03:06 +01:00
|
|
|
BuildRequires: xz
|
|
|
|
%requires_ge libQtQuick5
|
2017-08-24 18:56:27 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Qt Charts is a set of chart components.
|
|
|
|
|
|
|
|
Qt Charts module provides a set of easy to use chart components. It uses the Qt Graphics View Framework, therefore charts can be easily integrated to modern user interfaces. Qt Charts can be used as QWidgets, QGraphicsWidget, or QML types. Users can easily create impressive graphs by selecting one of the charts themes.
|
|
|
|
|
|
|
|
%prep
|
2021-06-24 14:00:12 +02:00
|
|
|
%autosetup -p1 -n %{tar_version}
|
2017-08-24 18:56:27 +02:00
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Qt 5 Charts Library
|
|
|
|
Group: System/Libraries
|
|
|
|
%requires_ge libQt5Core5
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Qt Charts module provides a set of chart components. It uses the Qt
|
|
|
|
Graphics View Framework, therefore charts can be integrated to user
|
|
|
|
interfaces. Qt Charts can be used as QWidgets, QGraphicsWidget, or
|
|
|
|
QML types. Users can create graphs by selecting one of the charts
|
|
|
|
themes.
|
|
|
|
|
|
|
|
This package contains a shared library for the QtChart.
|
|
|
|
|
|
|
|
%package -n %{libname}-devel
|
|
|
|
Summary: Development files for the Qt 5 Charts Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
|
|
|
This package provides header files and shared libraries for development with
|
|
|
|
Qt Charts.
|
|
|
|
|
|
|
|
%package -n %{libname}-designer
|
|
|
|
Summary: Designer plugin for the Qt 5 Charts library
|
|
|
|
Group: System/Libraries
|
|
|
|
BuildRequires: libqt5-qttools-devel
|
|
|
|
Requires: %{libname}-devel = %{version}
|
|
|
|
Requires: libqt5-qttools
|
|
|
|
|
|
|
|
%description -n %{libname}-designer
|
|
|
|
This package provides Qt Designer plugin for development with Qt Charts.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Example programs for the Qt 5 Charts Library
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
BuildRequires: libqt5-qtmultimedia-devel
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Recommends: %{libname}-devel
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
Examples for Qt5 Charts module.
|
|
|
|
|
|
|
|
%package imports
|
|
|
|
Summary: QML imports for the Qt 5 Charts Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
%requires_ge libQtCharts5
|
2019-12-17 11:03:06 +01:00
|
|
|
Supplements: (%{libname} and libQtCharts5)
|
2017-08-24 18:56:27 +02:00
|
|
|
|
|
|
|
%description imports
|
|
|
|
This package contains QML import files.
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{qt5_snapshot}
|
|
|
|
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
|
|
|
|
mkdir .git
|
|
|
|
%endif
|
|
|
|
%qmake5
|
|
|
|
%make_jobs
|
|
|
|
pushd plugins/designer
|
|
|
|
%qmake5
|
|
|
|
%make_jobs
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
%qmake5_install
|
|
|
|
pushd plugins/designer
|
|
|
|
%qmake5_install
|
|
|
|
popd
|
|
|
|
%fdupes %{buildroot}/%{_libqt5_examplesdir}
|
|
|
|
|
|
|
|
# kill .la files
|
|
|
|
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2019-12-17 11:03:06 +01:00
|
|
|
%license LICENSE*
|
2017-08-24 18:56:27 +02:00
|
|
|
%{_libqt5_libdir}/libQt5Charts.so.*
|
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
2019-12-17 11:03:06 +01:00
|
|
|
%license LICENSE*
|
2017-08-24 18:56:27 +02:00
|
|
|
%{_libqt5_libdir}/libQt5Charts.so
|
|
|
|
%{_libqt5_libdir}/libQt5Charts.prl
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5Charts/
|
|
|
|
%{_libqt5_libdir}/pkgconfig/Qt5Charts.pc
|
|
|
|
%{_libqt5_archdatadir}/mkspecs/modules/qt_lib_charts.pri
|
|
|
|
%{_libqt5_archdatadir}/mkspecs/modules/qt_lib_charts_private.pri
|
|
|
|
%{_libqt5_includedir}/QtCharts/
|
|
|
|
%exclude %{_libqt5_includedir}/Qt*/%{so_version}/
|
|
|
|
|
|
|
|
%files -n %{libname}-designer
|
2019-12-17 11:03:06 +01:00
|
|
|
%license LICENSE*
|
2017-08-24 18:56:27 +02:00
|
|
|
%{_libqt5_archdatadir}/plugins
|
|
|
|
%{_libqt5_archdatadir}/plugins/designer
|
|
|
|
%{_libqt5_archdatadir}/plugins/designer/libqtchartsdesigner.so
|
|
|
|
|
|
|
|
%files examples
|
2019-12-17 11:03:06 +01:00
|
|
|
%license LICENSE*
|
2017-08-24 18:56:27 +02:00
|
|
|
%{_libqt5_examplesdir}/
|
|
|
|
|
|
|
|
%files imports
|
2019-12-17 11:03:06 +01:00
|
|
|
%license LICENSE*
|
2017-08-24 18:56:27 +02:00
|
|
|
%{_libqt5_archdatadir}/qml/*/
|
|
|
|
|
|
|
|
%changelog
|