]> git.pld-linux.org Git - packages/qwt.git/blame - qwt.spec
- fixed build on Th
[packages/qwt.git] / qwt.spec
CommitLineData
25c62561 1Summary: 2D plotting widget extension to the Qt GUI
3b109760 2Summary(pl.UTF-8): Rozszerzenie wykresów 2D dla GUI Qt
25c62561 3Name: qwt
4Version: 4.2.0
e6c646cd 5Release: 4
25c62561 6License: LGPL
7Group: Libraries
8Source0: http://dl.sourceforge.net/qwt/%{name}-%{version}.tar.bz2
9# Source0-md5: 9c828c9a39a83df5d7fa9630ddf812a4
10URL: http://qwt.sourceforge.net/
11BuildRequires: qmake
12BuildRequires: qt-devel
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16Qwt is an extension to the Qt GUI library from Troll Tech AS. The Qwt
17library contains widgets and components which are primarily useful for
18technical and scientifical purposes. It includes a 2-D plotting
19widget, different kinds of sliders, and much more.
20
adfa3483 21%description -l pl.UTF-8
25c62561 22Qwt jest rozszerzeniem do biblioteki Qt z Troll Tech AS. Biblioteka
adfa3483
JR
23Qwt zawiera widgety i komponenty użyteczne głównie do celów
24technicznych i naukowych. Zawiera widget do rysowania wykresów 2D,
25różne rodzaje suwaków i wiele więcej.
25c62561 26
27%package devel
28Summary: Header files for qwt library
3b109760 29Summary(pl.UTF-8): Pliki nagłówkowe biblioteki qwt
25c62561 30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
a46d6d30 32Requires: qt-devel
25c62561 33
34%description devel
35Header files for qwt library.
36
adfa3483
JR
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki qwt.
25c62561 39
f83143a0 40%package -n qt-plugin-qwt
c9bcf817 41Summary: qwt plugin for Qt Designer
3b109760 42Summary(pl.UTF-8): Wtyczka qwt dla Qt Designera
c9bcf817 43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
f83143a0 45Requires: qt-designer
46
47%description -n qt-plugin-qwt
eeabf5d9 48qwt plugin for Qt Designer.
f83143a0 49
adfa3483 50%description -n qt-plugin-qwt -l pl.UTF-8
eeabf5d9 51Wtyczka qwt dla Qt Designera.
f83143a0 52
25c62561 53%prep
54%setup -q
55
56%build
57export QTDIR=%{_prefix}
58qmake qwt.pro
59
60%{__make}
61
62cd examples
63 qmake examples.pro
64 %{__make}
65 %{__make} distclean
66 rm -fr .*.cache */.*.cache */*/.*.cache Makefile */moc */obj */*/moc */*/obj
67cd ..
68
69cd designer
70 qmake qwtplugin.pro
71 %{__make}
72cd ..
73
74%install
75rm -rf $RPM_BUILD_ROOT
f83143a0 76install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir}/qt/plugins-mt/designer,%{_mandir}/man3}
25c62561 77
78for n in include/*.h ; do
a55dd9df 79 install $n $RPM_BUILD_ROOT%{_includedir}/%{name}
25c62561 80done
81
82for n in lib/libqwt.so* ; do
83 cp -d $n $RPM_BUILD_ROOT%{_libdir}
84done
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 90mv $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
96for n in doc/man/man3/*.3 ; do
a55dd9df 97 install $n $RPM_BUILD_ROOT%{_mandir}/man3
25c62561 98done
99
100%clean
101rm -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
This page took 0.041864 seconds and 4 git commands to generate.