]>
Commit | Line | Data |
---|---|---|
90a1406f BS |
1 | Summary: Qt widget for plotting and data visualization |
2 | Summary(pl.UTF-8): Widget do rysowania wykresów i wizualizacji danych dla Qt | |
3 | Name: QCustomPlot | |
4 | Version: 1.3.0 | |
5 | Release: 0.1 | |
6 | License: GPL v3 | |
7 | Group: X11/Libraries | |
8 | Source0: http://www.qcustomplot.com/release/%{version}/%{name}.tar.gz | |
9 | # Source0-md5: 03b6d97cf8f0d4eb2902c0805a72e8bd | |
10 | Source1: %{name}.cmake | |
11 | URL: http://www.qcustomplot.com/ | |
12 | BuildRequires: QtCore-devel | |
13 | BuildRequires: QtGui-devel | |
14 | BuildRequires: qt4-build | |
15 | BuildRequires: cmake >= 2.8.0 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _noautocompressdoc *.qch | |
19 | ||
20 | %description | |
21 | QCustomPlot is a Qt C++ widget for plotting and data visualization. | |
22 | This plotting library focuses on making good looking, publication | |
23 | quality 2D plots, graphs and charts, as well as offering high | |
24 | performance for realtime visualization applications. | |
25 | ||
26 | %package devel | |
27 | Summary: Development files for %{name} | |
28 | Group: X11/Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files for QCustomPlot library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki QCustomPlot | |
36 | ||
37 | %package doc | |
38 | Summary: Documentation and examples for QCustomPlot | |
39 | Group: Documentation | |
90a1406f | 40 | BuildArch: noarch |
90a1406f BS |
41 | |
42 | %description doc | |
43 | Documentation and examples for QCustomPlot | |
44 | ||
45 | %description doc -l pl.UTF-8 | |
46 | Dokumentacja i przykłady biblioteki QCustomPlot | |
47 | ||
48 | %prep | |
49 | %setup -q -n qcustomplot | |
50 | install -p %{SOURCE1} CMakeLists.txt | |
51 | ||
52 | %build | |
53 | ||
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
57 | ../ | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} -C build install/fast \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post -p /sbin/ldconfig | |
69 | ||
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc changelog.txt | |
75 | %attr(755,root,root) %{_libdir}/*.so.* | |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %{_includedir}/* | |
80 | %{_libdir}/*.so | |
81 | ||
82 | %files doc | |
83 | %defattr(644,root,root,755) | |
84 | %doc documentation examples |