]> git.pld-linux.org Git - packages/kf5-kplotting.git/blame - kf5-kplotting.spec
- Updated BR: kf5-extra-cmake-modules.
[packages/kf5-kplotting.git] / kf5-kplotting.spec
CommitLineData
ffc7542d 1%define kdeframever 5.67
c4abd278 2%define qtver 5.9.0
3ff049dd
AM
3%define kfname kplotting
4#
8b0a37c1 5Summary: Data plotting
3ff049dd 6Name: kf5-%{kfname}
ffc7542d 7Version: 5.67.0
3ff049dd 8Release: 1
8b0a37c1
WF
9License: LGPL v2.1+
10Group: X11/Libraries
3ff049dd 11Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
ffc7542d 12# Source0-md5: 3242e4364f2f21980f208c1685019fd0
8b0a37c1
WF
13URL: http://www.kde.org/
14BuildRequires: Qt5Core-devel
15BuildRequires: Qt5Gui-devel >= 5.3.1
16BuildRequires: Qt5Test-devel
17BuildRequires: Qt5Widgets-devel
18BuildRequires: cmake >= 2.8.12
1124aa9d 19BuildRequires: kf5-extra-cmake-modules >= %[version}
78b8e080 20BuildRequires: ninja
8b0a37c1 21BuildRequires: rpmbuild(macros) >= 1.164
cdba659b
ER
22BuildRequires: tar >= 1:1.22
23BuildRequires: xz
dd2c4685 24Requires: kf5-dirs
8b0a37c1
WF
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%define qt5dir %{_libdir}/qt5
28
29%description
30KPlotWidget is a QWidget-derived class that provides a virtual base
31class for easy data-plotting. The idea behind KPlotWidget is that you
32only have to specify information in "data units"; i.e., the natural
33units of the data being plotted. KPlotWidget automatically converts
34everything to screen pixel units.
35
36KPlotWidget draws X and Y axes with tick marks and tick labels. It
37automatically determines how many tick marks to use and where they
38should be, based on the data limits specified for the plot. You change
39the limits by calling `setLimits(double x1, double x2, double y1,
40double y2)`.
41
42Data to be plotted are stored using the KPlotObject class. KPlotObject
43consists of a QList of QPointF's, each specifying the X,Y coordinates
44of a data point. KPlotObject also specifies the "type" of data to be
45plotted (POINTS or CURVE or POLYGON or LABEL).
46
47%package devel
3ff049dd
AM
48Summary: Header files for %{kfname} development
49Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
8b0a37c1
WF
50Group: X11/Development/Libraries
51Requires: %{name} = %{version}-%{release}
52
53%description devel
3ff049dd 54Header files for %{kfname} development.
8b0a37c1
WF
55
56%description devel -l pl.UTF-8
3ff049dd 57Pliki nagłówkowe dla programistów używających %{kfname}.
8b0a37c1
WF
58
59%prep
3ff049dd 60%setup -q -n %{kfname}-%{version}
8b0a37c1
WF
61
62%build
63install -d build
64cd build
78b8e080 65%cmake -G Ninja \
3ff049dd 66 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
8b0a37c1 67 ../
78b8e080 68%ninja_build
8b0a37c1
WF
69
70%install
71rm -rf $RPM_BUILD_ROOT
78b8e080 72%ninja_install -C build
8b0a37c1
WF
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%post -p /sbin/ldconfig
78%postun -p /sbin/ldconfig
79
80%files
81%defattr(644,root,root,755)
82%doc README.md
83%attr(755,root,root) %ghost %{_libdir}/libKF5Plotting.so.5
3ff049dd 84%attr(755,root,root) %{_libdir}/libKF5Plotting.so.*.**
ffc7542d 85%attr(755,root,root) %{qt5dir}/plugins/designer/kplotting5widgets.so
8b0a37c1
WF
86
87%files devel
88%defattr(644,root,root,755)
89%{_includedir}/KF5/KPlotting
90%{_includedir}/KF5/kplotting_version.h
91%{_libdir}/cmake/KF5Plotting
92%attr(755,root,root) %{_libdir}/libKF5Plotting.so
93%{qt5dir}/mkspecs/modules/qt_KPlotting.pri
This page took 0.109635 seconds and 4 git commands to generate.