- converted to UTF-8
[packages/MathPlanner.git] / MathPlanner.spec
CommitLineData
4df46398 1Summary: A Program for calculating many kind of things
adc6cc86 2Summary(pl.UTF-8): Program do łatwego wykonywania obliczeń matematycznych
0f53afbe 3Name: MathPlanner
1b0eb60a 4Version: 3.1.3
7a02d3ca 5Release: 3
4f3f2244 6License: GPL v2
4df46398 7Group: X11/Applications/Publishing
0f53afbe 8Source0: http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
1b0eb60a 9# Source0-md5: 803a8de68056a4ec2e4c456b1ba9b320
f4fbf071 10Source1: %{name}.desktop
ba4d0603 11Patch0: %{name}-no_qstyles.patch
ee629eb9 12URL: http://koti.mbnet.fi/jarmonik/
ba74040c
PG
13BuildRequires: autoconf
14BuildRequires: automake
ba74040c 15BuildRequires: libtool
1922d784 16BuildRequires: qt-devel >= 3.0.5
4df46398
PG
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
1922d784 19%define _mathdir %{_datadir}/MathPlanner
4f3f2244 20
4df46398
PG
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
adc6cc86 27%description -l pl.UTF-8
4df46398 28MathPlanner jest matematycznym programem do tworzenia i publikacji.
adc6cc86
JR
29Obsługuje liczby zespolone, wektory i podstawowe operacje matematyczne
30(trygonometria, logarytmy,...). Mogą być także użyte liczby całkowite
4df46398
PG
31oraz definicje funkcji.
32
33%prep
ba74040c 34%setup -q
1b0eb60a 35%patch0
4df46398
PG
36
37%build
0cfb7e45 38QTDIR="%{_prefix}"
ba74040c 39export QTDIR
ba4d0603 40cd src
41for i in *.moc; do
42 moc `basename $i .moc`.h >$i;
43done
44cd ..
ba74040c 45
4be88983 46rm -f missing
ba74040c 47%{__libtoolize}
4be88983 48%{__aclocal}
ba74040c
PG
49%{__autoconf}
50%{__automake}
51%configure
52%{__make}
4df46398
PG
53
54%install
55rm -rf $RPM_BUILD_ROOT
0cfb7e45 56install -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
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/
0cfb7e45 66install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
4df46398
PG
67
68%clean
69rm -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
This page took 0.045053 seconds and 4 git commands to generate.