]>
Commit | Line | Data |
---|---|---|
ec79b699 | 1 | # TODO: |
2 | # - look at MPI support - doesn't work with lam for me :/ | |
c18136a1 SS |
3 | # - build with ARPACK, UMFPACK, CYCLE COUNTER (whatever it is) |
4 | # | |
d22abc40 | 5 | %define fversion %(echo %{version} |tr r -) |
6 | %define mversion %(echo %{version} |cut -f -1 -d r) | |
ec35b276 | 7 | Summary: FreeMat - an environment for rapid engineering and scientific processing |
853777a6 | 8 | Summary(pl.UTF-8): FreeMat - środowisko do szybkiego przetwarzania inżynieryjnego i naukowego |
ec79b699 | 9 | Name: FreeMat |
7dfcc25f SS |
10 | Version: 3.5 |
11 | Release: 0.1 | |
ec79b699 | 12 | License: MIT |
13 | Group: Applications/Math | |
d22abc40 | 14 | Source0: http://dl.sourceforge.net/freemat/%{name}-%{fversion}.tar.gz |
7dfcc25f | 15 | # Source0-md5: 4cc41c1f9265a86134fd338076d1a65f |
ec79b699 | 16 | Source1: %{name}.desktop |
4ff2cf96 | 17 | Patch0: %{name}-qt4.patch |
ec79b699 | 18 | URL: http://freemat.sourceforge.net |
d22abc40 | 19 | BuildRequires: autoconf |
ec35b276 | 20 | BuildRequires: automake |
ec79b699 | 21 | BuildRequires: gcc-g77 |
c18136a1 | 22 | BuildRequires: lapack-devel |
ec79b699 | 23 | BuildRequires: libjpeg-devel |
24 | BuildRequires: libpng-devel | |
25 | BuildRequires: libstdc++-devel | |
26 | BuildRequires: libtiff-devel | |
27 | BuildRequires: ncurses-devel | |
1fdc2deb SS |
28 | BuildRequires: QtCore-devel |
29 | BuildRequires: QtGui-devel | |
30 | BuildRequires: QtOpenGL-devel | |
31 | BuildRequires: QtNetwork-devel | |
32 | BuildRequires: QtXml-devel | |
33 | BuildRequires: qt4-build | |
ec79b699 | 34 | BuildRequires: zlib-devel |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | FreeMat is a free environment for rapid entineering and scientific | |
39 | prototyping and data processing. It is similar to commercial systems | |
40 | such as MATLAB from Mathworks, and IDL from Research Systems, but is | |
41 | Open Source. FreeMat includes several novel features such as a | |
42 | codeless interface to external C/C++/FORTRAN code, | |
43 | parallel/distributed algorithm development (via MPI), and plotting and | |
44 | visualiation capabilities. | |
45 | ||
274510ff JR |
46 | %description -l pl.UTF-8 |
47 | FreeMat jest darmowym środowiskiem do szybkiego przetwarzania | |
48 | prototypów i danych dla inżynierów i naukowców. Jest podobny do | |
49 | komercyjnych systemów takich jak MATLAB z Mathworks i IDL z Research | |
50 | Group, ale na licencji Open Source. FreeMat cechuje się między innymi | |
51 | bezkodowym interfejsem do zewnętrznego kodu C/C++/FORTRAN, | |
52 | równoległym/rozproszonym algorytmem obliczeń (poprzez MPI), oraz | |
53 | rysowaniem i wyświetlaniem możliwości. | |
ec79b699 | 54 | |
55 | %prep | |
d22abc40 | 56 | %setup -q -n %{name}-%{mversion} |
4ff2cf96 | 57 | %patch0 -p1 |
ec79b699 | 58 | |
59 | %build | |
1d249caf ER |
60 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
61 | CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
d22abc40 | 62 | %{__aclocal} |
63 | %{__autoconf} | |
64 | %{__automake} | |
ec79b699 | 65 | %configure \ |
66 | --with-ncurses | |
67 | ||
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir}} | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT \ | |
76 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
77 | ||
78 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/%{name} | |
86 | %{_datadir}/%{name} | |
87 | %{_desktopdir}/%{name}.desktop |