50aa48bf311479b58b82283a0dbc42839a75d1be
[packages/MathPlanner.git] / MathPlanner.spec
1 Summary:        A Program for calculating many kind of things
2 Summary(pl):    Program do ³atwego wykonywania obliczeñ matematycznych
3 Name:           MathPlanner
4 Version:        3.1.3
5 Release:        3
6 License:        GPL v2
7 Group:          X11/Applications/Publishing
8 Source0:        http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
9 # Source0-md5:  803a8de68056a4ec2e4c456b1ba9b320
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-no_qstyles.patch
12 URL:            http://koti.mbnet.fi/jarmonik/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRequires:  qt-devel >= 3.0.5
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _mathdir        %{_datadir}/MathPlanner
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, wektory 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
35 %patch0
36
37 %build
38 QTDIR="%{_prefix}"
39 export QTDIR
40 cd src
41 for i in *.moc; do
42         moc `basename $i .moc`.h >$i;
43 done
44 cd ..
45
46 rm -f missing
47 %{__libtoolize}
48 %{__aclocal}
49 %{__autoconf}
50 %{__automake}
51 %configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_pixmapsdir}/{mini,hicolor/{32x32,64x64}/mimetypes/},%{_desktopdir}} \
57         $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
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/
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog NEWS Doc.htm Doc examples
74 %attr(755,root,root) %{_bindir}/*
75 %dir %{_mathdir}
76 %{_mathdir}/*.txt
77 %{_mathdir}/pixmaps/*
78 %{_mathdir}/ts/*
79 %{_pixmapsdir}/*.png
80 %{_pixmapsdir}/hicolor/*/mimetypes/*.png
81 %{_datadir}/mimelnk/application/*.desktop
82 %{_desktopdir}/*.desktop
This page took 0.027964 seconds and 2 git commands to generate.