]>
Commit | Line | Data |
---|---|---|
c0934209 | 1 | %define ver1 1.60 |
2 | %define ver2 6 | |
a96dec51 | 3 | |
4 | Summary: EULER, a program for doing mathematics on the computer | |
ee5ca23d | 5 | Summary(pl.UTF-8): EULER, program do obliczeń matematycznych na komputerze |
a96dec51 | 6 | Name: euler |
7 | Version: %{ver1}.%{ver2} | |
fb2dc209 | 8 | Release: 2 |
a96dec51 | 9 | License: GPL |
10 | Group: Applications/Math | |
dc3f3dcc | 11 | Source0: http://dl.sourceforge.net/euler/%{name}-%{version}.tar.gz |
c0934209 | 12 | # Source0-md5: e56a0f41c184fc2f416457f0c5ece78f |
9098d544 | 13 | Source1: %{name}.desktop |
14 | Source2: %{name}.png | |
c0934209 | 15 | Patch0: %{name}-doc_path.patch |
9098d544 | 16 | Patch1: %{name}-gcc33.patch |
a96dec51 | 17 | URL: http://euler.sourceforge.net/ |
18 | BuildRequires: gtk+-devel >= 1.2.0 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
a96dec51 | 21 | %description |
22 | EULER is a program for quickly and interactively computing with real | |
23 | and complex numbers and matrices, or with intervals, in the style of | |
24 | MatLab, Octave,... It can draw and animate your functions in two and | |
25 | three dimensions. | |
26 | ||
cef5c68d JR |
27 | %description -l pl.UTF-8 |
28 | EULER jest programem do szybkich i interaktywnych obliczeń na liczbach | |
29 | rzeczywistych i zespolonych, z przedziałami, w stylu MatLaba, | |
30 | Octave... Może narysować i animować funkcje w dwóch lub trzech | |
ebbd8548 | 31 | wymiarach. |
f7b8ab29 | 32 | |
a96dec51 | 33 | %prep |
34 | %setup -q -n %{name}-%{ver1} | |
c0934209 | 35 | %patch0 -p1 |
9098d544 | 36 | %patch1 -p1 |
a96dec51 | 37 | |
38 | %build | |
a96dec51 | 39 | %{__make} \ |
40 | CC="%{__cc} %{rpmcflags} -DINSTALL_DIR=\\\"%{_prefix}\\\"" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
9098d544 | 44 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_desktopdir},%{_pixmapsdir}} |
45 | ||
a96dec51 | 46 | %{__make} install \ |
47 | INSTALL_DIR=$RPM_BUILD_ROOT%{_prefix} | |
9098d544 | 48 | |
49 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
50 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
a96dec51 | 51 | |
c0934209 | 52 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/euler |
a96dec51 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
c0934209 | 59 | %doc docs/* README TODO |
a96dec51 | 60 | %attr(755,root,root) %{_bindir}/* |
61 | %{_datadir}/euler | |
9098d544 | 62 | %{_desktopdir}/*.desktop |
63 | %{_pixmapsdir}/*.png |