]> git.pld-linux.org Git - packages/MathPlanner.git/blob - MathPlanner.spec
outdated
[packages/MathPlanner.git] / MathPlanner.spec
1 # TODO:
2 # - desktop
3 Summary:        A Program for calculating many kind of things
4 Summary(pl):    Program do ³atwego wykonywania obliczeñ matematycznych
5 Name:           MathPlanner
6 Version:        3.0.2
7 Release:        1
8 License:        GPL v2
9 Group:          X11/Applications/Publishing
10 Source0:        http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-makefile.patch
12 Patch1:         %{name}-opt.patch
13 URL:            http://koti.mbnet.fi/jarmonik
14 BuildRequires:  kdelibs-devel >= 3
15 BuildRequires:  qt-devel >= 3.0.1
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _prefix         /usr/X11R6
19 %define         _mathdir        %{_datadir}/MathPlanner3
20
21 %description
22 MathPlanner is mathematical design and publishing tool. MathPlanner
23 supports complex numbers, vectors, and basic math operations like
24 trigonometry, log, ln... Also integers and functions definations can
25 be used.
26
27 %description -l pl
28 MathPlanner jest matematycznym programem do tworzenia i publikacji.
29 Obs³uguje liczby zespolone, wertory i podstawowe operacje matematyczne
30 (trygonometria, logarytmy,...). Mog± byæ tak¿e u¿yte liczby ca³kowite
31 oraz definicje funkcji.
32
33 %prep
34 %setup -q -n %{name}3-install
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 CFLAGS="-I/usr/X11R6/include/qt"
40 LDFLAGS="-L/usr/X11R6/lib/qt/plugins-mt/styles/ -lqplatinumstyle -lqmotifstyle"
41 export LDFLAGS CFLAGS
42 %{__make} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_pixmapsdir}/mini
47
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49
50 install icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
51 install icons/mini/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/mini
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes.txt Doc.htm Doc examples
59 %attr(755,root,root) %{_bindir}/*
60 %dir %{_mathdir}
61 %{_mathdir}/*.txt
62 %{_mathdir}/pixmaps/*
63 %{_pixmapsdir}/*.xpm
64 %{_pixmapsdir}/mini/*.xpm
This page took 0.083608 seconds and 3 git commands to generate.