]> git.pld-linux.org Git - packages/euler.git/blob - euler.spec
85ff3498ff4999c83eeab1a8bbaaf57a809c0b41
[packages/euler.git] / euler.spec
1 %define         ver1    1.60
2 %define         ver2    6
3
4 Summary:        EULER, a program for doing mathematics on the computer
5 Summary(pl):    EULER, program do obliczeñ matematycznych na komputerze
6 Name:           euler
7 Version:        %{ver1}.%{ver2}
8 Release:        1.1
9 License:        GPL
10 Group:          Applications/Math
11 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12 # Source0-md5:  e56a0f41c184fc2f416457f0c5ece78f
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 Patch0:         %{name}-doc_path.patch
16 Patch1:         %{name}-gcc33.patch
17 URL:            http://euler.sourceforge.net/
18 BuildRequires:  gtk+-devel >= 1.2.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
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
27 %description -l pl
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
31 wymiarach.
32
33 %prep
34 %setup -q -n %{name}-%{ver1}
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 %{__make} \
40         CC="%{__cc} %{rpmcflags} -DINSTALL_DIR=\\\"%{_prefix}\\\""
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_desktopdir},%{_pixmapsdir}}
45
46 %{__make} install \
47         INSTALL_DIR=$RPM_BUILD_ROOT%{_prefix}
48
49 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
50 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
51
52 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/euler
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc docs/* README TODO
60 %attr(755,root,root) %{_bindir}/*
61 %{_datadir}/euler
62 %{_desktopdir}/*.desktop
63 %{_pixmapsdir}/*.png
This page took 0.040376 seconds and 2 git commands to generate.