]>
Commit | Line | Data |
---|---|---|
4df46398 | 1 | Summary: A Program for calculating many kind of things |
2ff4e629 | 2 | Summary(pl.UTF-8): Program do łatwego wykonywania obliczeń matematycznych |
0f53afbe | 3 | Name: MathPlanner |
1b0eb60a | 4 | Version: 3.1.3 |
7a02d3ca | 5 | Release: 3 |
4f3f2244 | 6 | License: GPL v2 |
4df46398 | 7 | Group: X11/Applications/Publishing |
0f53afbe | 8 | Source0: http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz |
1b0eb60a | 9 | # Source0-md5: 803a8de68056a4ec2e4c456b1ba9b320 |
f4fbf071 | 10 | Source1: %{name}.desktop |
ba4d0603 | 11 | Patch0: %{name}-no_qstyles.patch |
ee629eb9 | 12 | URL: http://koti.mbnet.fi/jarmonik/ |
ba74040c PG |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
ba74040c | 15 | BuildRequires: libtool |
1922d784 | 16 | BuildRequires: qt-devel >= 3.0.5 |
4df46398 PG |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
1922d784 | 19 | %define _mathdir %{_datadir}/MathPlanner |
4f3f2244 | 20 | |
4df46398 PG |
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 | ||
adc6cc86 | 27 | %description -l pl.UTF-8 |
4df46398 | 28 | MathPlanner jest matematycznym programem do tworzenia i publikacji. |
adc6cc86 JR |
29 | Obsługuje liczby zespolone, wektory i podstawowe operacje matematyczne |
30 | (trygonometria, logarytmy,...). Mogą być także użyte liczby całkowite | |
4df46398 PG |
31 | oraz definicje funkcji. |
32 | ||
33 | %prep | |
ba74040c | 34 | %setup -q |
1b0eb60a | 35 | %patch0 |
4df46398 PG |
36 | |
37 | %build | |
0cfb7e45 | 38 | QTDIR="%{_prefix}" |
ba74040c | 39 | export QTDIR |
ba4d0603 | 40 | cd src |
41 | for i in *.moc; do | |
42 | moc `basename $i .moc`.h >$i; | |
43 | done | |
44 | cd .. | |
ba74040c | 45 | |
4be88983 | 46 | rm -f missing |
ba74040c | 47 | %{__libtoolize} |
4be88983 | 48 | %{__aclocal} |
ba74040c PG |
49 | %{__autoconf} |
50 | %{__automake} | |
51 | %configure | |
52 | %{__make} | |
4df46398 PG |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
0cfb7e45 | 56 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir}/{mini,hicolor/{32x32,64x64}/mimetypes/},%{_desktopdir}} \ |
ee629eb9 | 57 | $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/ |
4df46398 | 58 | |
ee629eb9 PG |
59 | %{__make} install \ |
60 | DESTDIR=$RPM_BUILD_ROOT | |
4df46398 | 61 | |
7efebaed PG |
62 | install icons/64x64/apps/*.png $RPM_BUILD_ROOT%{_pixmapsdir} |
63 | install icons/64x64/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/64x64/mimetypes/ | |
64 | install icons/32x32/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/32x32/mimetypes/ | |
65 | install mpl2.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/ | |
0cfb7e45 | 66 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
4df46398 PG |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
1922d784 | 73 | %doc AUTHORS ChangeLog NEWS Doc.htm Doc examples |
4f3f2244 PG |
74 | %attr(755,root,root) %{_bindir}/* |
75 | %dir %{_mathdir} | |
76 | %{_mathdir}/*.txt | |
77 | %{_mathdir}/pixmaps/* | |
7efebaed PG |
78 | %{_mathdir}/ts/* |
79 | %{_pixmapsdir}/*.png | |
80 | %{_pixmapsdir}/hicolor/*/mimetypes/*.png | |
81 | %{_datadir}/mimelnk/application/*.desktop | |
0cfb7e45 | 82 | %{_desktopdir}/*.desktop |