]>
Commit | Line | Data |
---|---|---|
25c62561 | 1 | Summary: 2D plotting widget extension to the Qt GUI |
3b109760 | 2 | Summary(pl.UTF-8): Rozszerzenie wykresów 2D dla GUI Qt |
25c62561 | 3 | Name: qwt |
4 | Version: 4.2.0 | |
e6c646cd | 5 | Release: 4 |
25c62561 | 6 | License: LGPL |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/qwt/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 9c828c9a39a83df5d7fa9630ddf812a4 | |
10 | URL: http://qwt.sourceforge.net/ | |
11 | BuildRequires: qmake | |
12 | BuildRequires: qt-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Qwt is an extension to the Qt GUI library from Troll Tech AS. The Qwt | |
17 | library contains widgets and components which are primarily useful for | |
18 | technical and scientifical purposes. It includes a 2-D plotting | |
19 | widget, different kinds of sliders, and much more. | |
20 | ||
adfa3483 | 21 | %description -l pl.UTF-8 |
25c62561 | 22 | Qwt jest rozszerzeniem do biblioteki Qt z Troll Tech AS. Biblioteka |
adfa3483 JR |
23 | Qwt zawiera widgety i komponenty użyteczne głównie do celów |
24 | technicznych i naukowych. Zawiera widget do rysowania wykresów 2D, | |
25 | różne rodzaje suwaków i wiele więcej. | |
25c62561 | 26 | |
27 | %package devel | |
28 | Summary: Header files for qwt library | |
3b109760 | 29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki qwt |
25c62561 | 30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version}-%{release} | |
a46d6d30 | 32 | Requires: qt-devel |
25c62561 | 33 | |
34 | %description devel | |
35 | Header files for qwt library. | |
36 | ||
adfa3483 JR |
37 | %description devel -l pl.UTF-8 |
38 | Pliki nagłówkowe biblioteki qwt. | |
25c62561 | 39 | |
f83143a0 | 40 | %package -n qt-plugin-qwt |
c9bcf817 | 41 | Summary: qwt plugin for Qt Designer |
3b109760 | 42 | Summary(pl.UTF-8): Wtyczka qwt dla Qt Designera |
c9bcf817 | 43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
f83143a0 | 45 | Requires: qt-designer |
46 | ||
47 | %description -n qt-plugin-qwt | |
eeabf5d9 | 48 | qwt plugin for Qt Designer. |
f83143a0 | 49 | |
adfa3483 | 50 | %description -n qt-plugin-qwt -l pl.UTF-8 |
eeabf5d9 | 51 | Wtyczka qwt dla Qt Designera. |
f83143a0 | 52 | |
25c62561 | 53 | %prep |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | export QTDIR=%{_prefix} | |
58 | qmake qwt.pro | |
59 | ||
60 | %{__make} | |
61 | ||
62 | cd examples | |
63 | qmake examples.pro | |
64 | %{__make} | |
65 | %{__make} distclean | |
66 | rm -fr .*.cache */.*.cache */*/.*.cache Makefile */moc */obj */*/moc */*/obj | |
67 | cd .. | |
68 | ||
69 | cd designer | |
70 | qmake qwtplugin.pro | |
71 | %{__make} | |
72 | cd .. | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
f83143a0 | 76 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir}/qt/plugins-mt/designer,%{_mandir}/man3} |
25c62561 | 77 | |
78 | for n in include/*.h ; do | |
a55dd9df | 79 | install $n $RPM_BUILD_ROOT%{_includedir}/%{name} |
25c62561 | 80 | done |
81 | ||
82 | for n in lib/libqwt.so* ; do | |
83 | cp -d $n $RPM_BUILD_ROOT%{_libdir} | |
84 | done | |
85 | ||
f83143a0 | 86 | cd designer |
87 | %{__make} install \ | |
88 | INSTALL_ROOT=$RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/ | |
89 | # If you find better idea to put this file into proper directory, change this fix | |
e6c646cd | 90 | mv $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/usr/plugins/designer/libqwtplugin.so \ |
f83143a0 | 91 | $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/designer/libqwtplugin.so |
6712c569 | 92 | |
f83143a0 | 93 | cd .. |
94 | echo "%{_libdir}/qt/plugins-mt/designer/libqwtplugin.so" > plugin.list | |
25c62561 | 95 | |
96 | for n in doc/man/man3/*.3 ; do | |
a55dd9df | 97 | install $n $RPM_BUILD_ROOT%{_mandir}/man3 |
25c62561 | 98 | done |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc CHANGES COPYING README | |
109 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
3df2edc1 | 113 | %doc doc/html/*.css doc/html/*.html doc/html/*.gif doc/html/*.png |
25c62561 | 114 | %doc examples |
115 | %attr(755,root,root) %{_libdir}/lib*.so | |
116 | %{_includedir}/%{name} | |
117 | %{_mandir}/man3/* | |
f83143a0 | 118 | |
119 | %files -n qt-plugin-qwt | |
eeabf5d9 JB |
120 | %defattr(644,root,root,755) |
121 | %attr(755,root,root) %{_libdir}/qt/plugins-mt/designer/libqwtplugin.so |