2 # - dir /usr/include/KF5 not packaged
4 %define orgname kplotting
12 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
13 # Source0-md5: 28eae81acd540a79c91acad75f0c725c
14 URL: http://www.kde.org/
15 BuildRequires: Qt5Core-devel
16 BuildRequires: Qt5Gui-devel >= 5.3.1
17 BuildRequires: Qt5Test-devel
18 BuildRequires: Qt5Widgets-devel
19 BuildRequires: cmake >= 2.8.12
20 BuildRequires: kf5-extra-cmake-modules >= 1.0.0
21 BuildRequires: rpmbuild(macros) >= 1.164
22 BuildRequires: tar >= 1:1.22
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define qt5dir %{_libdir}/qt5
29 KPlotWidget is a QWidget-derived class that provides a virtual base
30 class for easy data-plotting. The idea behind KPlotWidget is that you
31 only have to specify information in "data units"; i.e., the natural
32 units of the data being plotted. KPlotWidget automatically converts
33 everything to screen pixel units.
35 KPlotWidget draws X and Y axes with tick marks and tick labels. It
36 automatically determines how many tick marks to use and where they
37 should be, based on the data limits specified for the plot. You change
38 the limits by calling `setLimits(double x1, double x2, double y1,
41 Data to be plotted are stored using the KPlotObject class. KPlotObject
42 consists of a QList of QPointF's, each specifying the X,Y coordinates
43 of a data point. KPlotObject also specifies the "type" of data to be
44 plotted (POINTS or CURVE or POLYGON or LABEL).
47 Summary: Header files for %{orgname} development
48 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
49 Group: X11/Development/Libraries
50 Requires: %{name} = %{version}-%{release}
53 Header files for %{orgname} development.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe dla programistów używających %{orgname}.
59 %setup -q -n %{orgname}-%{version}
65 -DBIN_INSTALL_DIR=%{_bindir} \
66 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
67 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
68 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
69 -DQML_INSTALL_DIR=%{qt5dir}/qml \
70 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
71 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
72 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
73 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
74 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
75 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
80 rm -rf $RPM_BUILD_ROOT
82 %{__make} -C build/ install \
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
94 %attr(755,root,root) %ghost %{_libdir}/libKF5Plotting.so.5
95 %attr(755,root,root) %{_libdir}/libKF5Plotting.so.5.0.0
98 %defattr(644,root,root,755)
99 %{_includedir}/KF5/KPlotting
100 %{_includedir}/KF5/kplotting_version.h
101 %{_libdir}/cmake/KF5Plotting
102 %attr(755,root,root) %{_libdir}/libKF5Plotting.so
103 %{qt5dir}/mkspecs/modules/qt_KPlotting.pri