]>
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 |
bc91b620 | 18 | Patch1: %{name}-link.patch |
ec79b699 | 19 | URL: http://freemat.sourceforge.net |
d22abc40 | 20 | BuildRequires: autoconf |
ec35b276 | 21 | BuildRequires: automake |
ec79b699 | 22 | BuildRequires: gcc-g77 |
c18136a1 | 23 | BuildRequires: lapack-devel |
ec79b699 | 24 | BuildRequires: libjpeg-devel |
25 | BuildRequires: libpng-devel | |
26 | BuildRequires: libstdc++-devel | |
27 | BuildRequires: libtiff-devel | |
28 | BuildRequires: ncurses-devel | |
1fdc2deb SS |
29 | BuildRequires: QtCore-devel |
30 | BuildRequires: QtGui-devel | |
31 | BuildRequires: QtOpenGL-devel | |
32 | BuildRequires: QtNetwork-devel | |
33 | BuildRequires: QtXml-devel | |
34 | BuildRequires: qt4-build | |
ec79b699 | 35 | BuildRequires: zlib-devel |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | FreeMat is a free environment for rapid entineering and scientific | |
40 | prototyping and data processing. It is similar to commercial systems | |
41 | such as MATLAB from Mathworks, and IDL from Research Systems, but is | |
42 | Open Source. FreeMat includes several novel features such as a | |
43 | codeless interface to external C/C++/FORTRAN code, | |
44 | parallel/distributed algorithm development (via MPI), and plotting and | |
45 | visualiation capabilities. | |
46 | ||
274510ff JR |
47 | %description -l pl.UTF-8 |
48 | FreeMat jest darmowym środowiskiem do szybkiego przetwarzania | |
49 | prototypów i danych dla inżynierów i naukowców. Jest podobny do | |
50 | komercyjnych systemów takich jak MATLAB z Mathworks i IDL z Research | |
51 | Group, ale na licencji Open Source. FreeMat cechuje się między innymi | |
52 | bezkodowym interfejsem do zewnętrznego kodu C/C++/FORTRAN, | |
53 | równoległym/rozproszonym algorytmem obliczeń (poprzez MPI), oraz | |
54 | rysowaniem i wyświetlaniem możliwości. | |
ec79b699 | 55 | |
56 | %prep | |
d22abc40 | 57 | %setup -q -n %{name}-%{mversion} |
4ff2cf96 | 58 | %patch0 -p1 |
bc91b620 | 59 | %patch1 -p1 |
ec79b699 | 60 | |
61 | %build | |
1d249caf ER |
62 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
63 | CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
d22abc40 | 64 | %{__aclocal} |
65 | %{__autoconf} | |
66 | %{__automake} | |
ec79b699 | 67 | %configure \ |
68 | --with-ncurses | |
69 | ||
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir}} | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT \ | |
78 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
79 | ||
80 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_bindir}/%{name} | |
88 | %{_datadir}/%{name} | |
89 | %{_desktopdir}/%{name}.desktop |