]> git.pld-linux.org Git - SPECS.git/blob - qtiplot.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / qtiplot.spec
1 Summary:        Data analysis and scientific plotting
2 Summary(pl.UTF-8):      Analiza danych i naukowe rysowanie
3 Name:           qtiplot
4 Version:        0.8.5
5 Release:        1
6 License:        GPL
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
13 Source3:        %{name}.png
14 URL:            http://soft.proindependent.com/qtiplot.html
15 BuildRequires:  gsl-devel
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  qmake
18 BuildRequires:  qt-devel >= 1:3.0
19 BuildRequires:  qwt-devel >= 4.2.0
20 BuildRequires:  qwtplot3d-devel
21 BuildRequires:  sed >= 4.0
22 BuildRequires:  unzip
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Free, platform independent clone of Origin.
27
28 %description -l pl.UTF-8
29 Wolny, niezależny od platformy klon Origina.
30
31 %prep
32 %setup -q -a 2
33
34 %build
35 export QTDIR="%{_prefix}"
36 export INSTALL_ROOT=$RPM_BUILD_ROOT
37
38 cd %{name}
39
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
43
44 qmake -o Makefile qtiplot.pro
45 %{__make}
46
47 %install
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}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
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
This page took 0.033177 seconds and 3 git commands to generate.