- massive change ( validate errors warrings from desktop-file-validate)
[packages/MathPlanner.git] / MathPlanner.spec
... / ...
CommitLineData
1Summary: A Program for calculating many kind of things
2Summary(pl.UTF-8): Program do łatwego wykonywania obliczeń matematycznych
3Name: MathPlanner
4Version: 3.1.3
5Release: 3
6License: GPL v2
7Group: X11/Applications/Publishing
8Source0: http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
9# Source0-md5: 803a8de68056a4ec2e4c456b1ba9b320
10Source1: %{name}.desktop
11Patch0: %{name}-no_qstyles.patch
12URL: http://koti.mbnet.fi/jarmonik/
13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: libtool
16BuildRequires: qt-devel >= 3:3.0.5
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _mathdir %{_datadir}/MathPlanner
20
21%description
22MathPlanner is mathematical design and publishing tool. MathPlanner
23supports complex numbers, vectors, and basic math operations like
24trigonometry, log, ln... Also integers and functions definations can
25be used.
26
27%description -l pl.UTF-8
28MathPlanner jest matematycznym programem do tworzenia i publikacji.
29Obsługuje liczby zespolone, wektory i podstawowe operacje matematyczne
30(trygonometria, logarytmy,...). Mogą być także użyte liczby całkowite
31oraz definicje funkcji.
32
33%prep
34%setup -q
35%patch0
36
37%build
38QTDIR="%{_prefix}"
39export QTDIR
40cd src
41for i in *.moc; do
42 moc `basename $i .moc`.h >$i;
43done
44cd ..
45
46rm -f missing
47%{__libtoolize}
48%{__aclocal}
49%{__autoconf}
50%{__automake}
51%configure
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56install -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
62install icons/64x64/apps/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
63install icons/64x64/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/64x64/mimetypes/
64install icons/32x32/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/32x32/mimetypes/
65install mpl2.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/
66install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
67
68%clean
69rm -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.029627 seconds and 5 git commands to generate.