3 %bcond_with tests # build with tests
4 %define kdeframever 5.106
6 %define kfname kplotting
14 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5: e37e4e120db15ab92a3fe6ef0207c223
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel
18 BuildRequires: Qt5Gui-devel >= 5.3.1
19 BuildRequires: Qt5Test-devel
20 BuildRequires: Qt5Widgets-devel
21 BuildRequires: cmake >= 2.8.12
22 BuildRequires: kf5-extra-cmake-modules >= %{version}
24 BuildRequires: rpmbuild(macros) >= 1.164
25 BuildRequires: tar >= 1:1.22
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define qt5dir %{_libdir}/qt5
33 KPlotWidget is a QWidget-derived class that provides a virtual base
34 class for easy data-plotting. The idea behind KPlotWidget is that you
35 only have to specify information in "data units"; i.e., the natural
36 units of the data being plotted. KPlotWidget automatically converts
37 everything to screen pixel units.
39 KPlotWidget draws X and Y axes with tick marks and tick labels. It
40 automatically determines how many tick marks to use and where they
41 should be, based on the data limits specified for the plot. You change
42 the limits by calling `setLimits(double x1, double x2, double y1,
45 Data to be plotted are stored using the KPlotObject class. KPlotObject
46 consists of a QList of QPointF's, each specifying the X,Y coordinates
47 of a data point. KPlotObject also specifies the "type" of data to be
48 plotted (POINTS or CURVE or POLYGON or LABEL).
51 Summary: Header files for %{kfname} development
52 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
53 Group: X11/Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Header files for %{kfname} development.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe dla programistów używających %{kfname}.
63 %setup -q -n %{kfname}-%{version}
69 %{!?with_tests:-DBUILD_TESTING=OFF} \
70 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
80 rm -rf $RPM_BUILD_ROOT
81 %ninja_install -C build
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %ghost %{_libdir}/libKF5Plotting.so.5
93 %attr(755,root,root) %{_libdir}/libKF5Plotting.so.*.**
94 %attr(755,root,root) %{qt5dir}/plugins/designer/kplotting5widgets.so
97 %defattr(644,root,root,755)
98 %{_includedir}/KF5/KPlotting
99 %{_libdir}/cmake/KF5Plotting
100 %{_libdir}/libKF5Plotting.so
101 %{qt5dir}/mkspecs/modules/qt_KPlotting.pri