1 Summary: Data analysis and scientific plotting
2 Summary(pl.UTF-8): Analiza danych i naukowe rysowanie
7 Group: X11/Applications
8 Source0: http://soft.proindependent.com/src/%{name}-%{version}.zip
9 # Source0-md5: 1c99247b5069ec92c3f97b87291b20e7
10 Source1: %{name}.desktop
11 Source2: http://soft.proindependent.com/doc/manual-en.zip
12 # Source2-md5: 380d33a8381911feb53a73a067932b60
14 URL: http://soft.proindependent.com/qtiplot.html
15 BuildRequires: gsl-devel
16 BuildRequires: libstdc++-devel
18 BuildRequires: qt-devel >= 1:3.0
19 BuildRequires: qwt-devel >= 4.2.0
20 BuildRequires: qwtplot3d-devel
21 BuildRequires: sed >= 4.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Free, platform independent clone of Origin.
28 %description -l pl.UTF-8
29 Wolny, niezależny od platformy klon Origina.
35 export QTDIR="%{_prefix}"
36 export INSTALL_ROOT=$RPM_BUILD_ROOT
40 sed -i -e 's@../3rdparty/qwt/lib/libqwt.a@-lqwt@g' qtiplot.pro
41 sed -i -e 's@../3rdparty/qwt/include@%{_includedir}/qwt@g' qtiplot.pro
42 sed -i -e 's@/usr/share/doc/qtiplot/index.html@%{_docdir}/%{name}-%{version}/index.html@g' src/application.cpp
44 qmake -o Makefile qtiplot.pro
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
50 install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
51 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
52 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc manual-en/*.html README.html
60 %attr(755,root,root) %{_bindir}/*
61 %{_desktopdir}/%{name}.desktop
62 %{_pixmapsdir}/%{name}.png