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