]> git.pld-linux.org Git - packages/wxMaxima.git/blob - wxMaxima.spec
- wxWidgets rebuild
[packages/wxMaxima.git] / wxMaxima.spec
1 Summary:        wxWidgets interface for maxima
2 Summary(pl.UTF-8):      Interfejs do maximy używający wxWidgets
3 Name:           wxMaxima
4 Version:        12.01.0
5 Release:        3
6 License:        GPL
7 Group:          Applications/Math
8 Source0:        http://downloads.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz
9 # Source0-md5:  ef71ba8339fcdd7b715619af51bfa65e
10 Patch0:         %{name}-pixmap.patch
11 Patch1:         %{name}-docdir.patch
12 URL:            http://wxmaxima.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libxml2-devel
16 BuildRequires:  wxGTK2-unicode-devel
17 BuildRequires:  wxWidgets-devel
18 Requires:       maxima >= 1:5.11.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 wxMaxima is a wxWidgets interface for the computer algebra system
23 Maxima.
24
25 %description -l pl.UTF-8
26 wxMaxima jest bazującym na wxWidgets interfejsem dla systemu algebry
27 komputerowej Maxima.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32 %patch1 -p0
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %{__autoheader}
38 %{__automake}
39 %{configure}\
40         --with-wx-config=%{_bindir}/wx-gtk2-unicode-config
41
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_desktopdir}
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 sed -e "s@Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;@Science;Math;@g" wxmaxima.desktop \
52         > $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop
53
54 ln -s %{_pixmapsdir}/wxmaxima.png $RPM_BUILD_ROOT%{_datadir}/wxMaxima
55
56 %find_lang %{name}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files -f %{name}.lang
62 %defattr(644,root,root,755)
63 %doc README AUTHORS
64 %attr(755,root,root) %{_bindir}/wxmaxima
65 %{_datadir}/wxMaxima
66 %{_pixmapsdir}/wxmaxima.png
67 %{_desktopdir}/wxmaxima.desktop
This page took 0.068829 seconds and 4 git commands to generate.