2 # - look at MPI support - doesn't work with lam for me :/
3 # - build with CYCLE COUNTER (required fftw_cycle.h)
5 %define fversion %(echo %{version} |tr r -)
6 %define mversion %(echo %{version} |cut -f -1 -d r)
7 Summary: FreeMat - an environment for rapid engineering and scientific processing
8 Summary(pl.UTF-8): FreeMat - środowisko do szybkiego przetwarzania inżynieryjnego i naukowego
13 Group: Applications/Math
14 Source0: http://dl.sourceforge.net/freemat/%{name}-%{fversion}.tar.gz
15 # Source0-md5: 4cc41c1f9265a86134fd338076d1a65f
16 Source1: %{name}.desktop
17 Patch0: %{name}-qt4.patch
18 Patch1: %{name}-link.patch
19 URL: http://freemat.sourceforge.net
20 BuildRequires: QtCore-devel
21 BuildRequires: QtGui-devel
22 BuildRequires: QtOpenGL-devel
23 BuildRequires: QtNetwork-devel
24 BuildRequires: QtXml-devel
25 BuildRequires: UMFPACK-devel
26 BuildRequires: autoconf
27 BuildRequires: automake
28 BuildRequires: arpack-devel
29 BuildRequires: ffcall-devel
30 BuildRequires: fftw3-devel
31 BuildRequires: fftw3-single-devel
32 BuildRequires: gcc-g77
33 BuildRequires: lapack-devel
34 BuildRequires: ncurses-devel
35 BuildRequires: pcre-devel
36 BuildRequires: portaudio-devel
37 BuildRequires: qt4-build
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 FreeMat is a free environment for rapid entineering and scientific
42 prototyping and data processing. It is similar to commercial systems
43 such as MATLAB from Mathworks, and IDL from Research Systems, but is
44 Open Source. FreeMat includes several novel features such as a
45 codeless interface to external C/C++/FORTRAN code,
46 parallel/distributed algorithm development (via MPI), and plotting and
47 visualiation capabilities.
49 %description -l pl.UTF-8
50 FreeMat jest darmowym środowiskiem do szybkiego przetwarzania
51 prototypów i danych dla inżynierów i naukowców. Jest podobny do
52 komercyjnych systemów takich jak MATLAB z Mathworks i IDL z Research
53 Group, ale na licencji Open Source. FreeMat cechuje się między innymi
54 bezkodowym interfejsem do zewnętrznego kodu C/C++/FORTRAN,
55 równoległym/rozproszonym algorytmem obliczeń (poprzez MPI), oraz
56 rysowaniem i wyświetlaniem możliwości.
59 %setup -q -n %{name}-%{mversion}
64 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
65 CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses"
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir}}
79 DESTDIR=$RPM_BUILD_ROOT \
80 prefix=$RPM_BUILD_ROOT%{_prefix}
82 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/%{name}
90 %{_datadir}/%{name}-%{version}
91 %{_desktopdir}/%{name}.desktop