]> git.pld-linux.org Git - packages/qwt.git/blob - qwt.spec
e82ae25f573a13c1a27ef9df7fb9711c0af3a32a
[packages/qwt.git] / qwt.spec
1 Summary:        2D plotting widget extension to the Qt GUI
2 Summary(pl.UTF-8):      Rozszerzenie wykresów 2D dla GUI Qt
3 Name:           qwt
4 Version:        5.1.0
5 Release:        1
6 License:        Qwt v1.0
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/qwt/%{name}-%{version}.tar.bz2
9 # Source0-md5:  c585dc3b1ea5ad00747721f68687d868
10 URL:            http://qwt.sourceforge.net/
11 BuildRequires:  QtCore-devel
12 BuildRequires:  QtDesigner-devel
13 BuildRequires:  QtGui-devel
14 BuildRequires:  QtScript-devel
15 BuildRequires:  QtSvg-devel
16 BuildRequires:  qt4-qmake >= 4.3.3-3
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Qwt is an extension to the Qt GUI library from Troll Tech AS. The Qwt
21 library contains widgets and components which are primarily useful for
22 technical and scientifical purposes. It includes a 2-D plotting
23 widget, different kinds of sliders, and much more.
24
25 %description -l pl.UTF-8
26 Qwt jest rozszerzeniem do biblioteki Qt z Troll Tech AS. Biblioteka
27 Qwt zawiera widgety i komponenty użyteczne głównie do celów
28 technicznych i naukowych. Zawiera widget do rysowania wykresów 2D,
29 różne rodzaje suwaków i wiele więcej.
30
31 %package devel
32 Summary:        Header files for qwt library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki qwt
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       QtGui-devel
37
38 %description devel
39 Header files for qwt library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki qwt.
43
44 %package -n qt4-plugin-qwt
45 Summary:        qwt plugin for Qt Designer
46 Summary(pl.UTF-8):      Wtyczka qwt dla Qt Designera
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       QtDesigner
50
51 %description -n qt4-plugin-qwt
52 qwt plugin for Qt Designer.
53
54 %description -n qt4-plugin-qwt -l pl.UTF-8
55 Wtyczka qwt dla Qt Designera.
56
57 %prep
58 %setup -q
59
60 %build
61 qmake-qt4 qwt.pro
62
63 %{__make}
64
65 ### can't build without qwt-devel ver 5.1.0 installed
66 #cd examples
67 #qmake-qt4 examples.pro
68 #%{__make} -j1
69 #%{__make} distclean
70 #rm -fr .*.cache */.*.cache */*/.*.cache Makefile */moc */obj */*/moc */*/obj
71 #cd ..
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir}/qt4/plugins-mt/designer,%{_mandir}/man3}
76
77 for n in src/*.h; do
78         install $n $RPM_BUILD_ROOT%{_includedir}/%{name}
79 done
80
81 for n in lib/libqwt.so*; do
82         cp -d $n $RPM_BUILD_ROOT%{_libdir}
83 done
84
85 %{__make} -C designer install \
86         INSTALL_ROOT=$RPM_BUILD_ROOT
87
88 # XXX, what for?
89 echo "%{_libdir}/qt4/plugins/designer/libqwtplugin.so" > plugin.list
90
91 for n in doc/man/man3/*.3; do
92         install $n $RPM_BUILD_ROOT%{_mandir}/man3
93 done
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc CHANGES COPYING README
104 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
105 %attr(755,root,root) %{_libdir}/libqwt.so.*.*
106 %attr(755,root,root) %{_libdir}/libqwt.so.?
107
108 %files devel
109 %defattr(644,root,root,755)
110 %doc doc/html/*.css doc/html/*.html doc/html/*.gif doc/html/*.png
111 %doc examples
112 %attr(755,root,root) %{_libdir}/lib*.so
113 %{_includedir}/%{name}
114 %{_mandir}/man3/*
115
116 %files -n qt4-plugin-qwt
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/qt4/plugins/designer/libqwt_designer_plugin.so
This page took 0.042547 seconds and 2 git commands to generate.