X-Git-Url: https://git.pld-linux.org/?p=packages%2FwxMaxima.git;a=blobdiff_plain;f=wxMaxima.spec;h=bb392c0f7060a548078d6964877952d2f118f8f4;hp=c981dfac88960cc312445fd7ef75e0c56a987f49;hb=HEAD;hpb=58d6c351a9903e1441cc636ebe69515d00f69386 diff --git a/wxMaxima.spec b/wxMaxima.spec index c981dfa..bb392c0 100644 --- a/wxMaxima.spec +++ b/wxMaxima.spec @@ -1,15 +1,19 @@ Summary: wxWidgets interface for maxima Summary(pl.UTF-8): Interfejs do maximy używający wxWidgets Name: wxMaxima -Version: 0.7.5 -Release: 1 +Version: 12.01.0 +Release: 5 License: GPL Group: Applications/Math -Source0: http://dl.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz -# Source0-md5: 469014a84aca3f334d1e19042208d54b +Source0: http://downloads.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz +# Source0-md5: ef71ba8339fcdd7b715619af51bfa65e +Patch0: %{name}-pixmap.patch +Patch1: %{name}-docdir.patch URL: http://wxmaxima.sourceforge.net/ +BuildRequires: autoconf +BuildRequires: automake BuildRequires: libxml2-devel -BuildRequires: wxGTK2-devel +BuildRequires: wxGTK3-unicode-devel BuildRequires: wxWidgets-devel Requires: maxima >= 1:5.11.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -24,21 +28,31 @@ komputerowej Maxima. %prep %setup -q +%patch0 -p1 +%patch1 -p0 %build +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} %{configure}\ - --with-wx-config=/usr/bin/wx-gtk2-ansi-config + --with-wx-config=%{_bindir}/wx-gtk3-unicode-config %{__make} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_desktopdir} + %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install -D wxmaxima.desktop $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop -sed -e "s@Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;@Science;Math;@g" -i $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop -install -D wxmaxima.png $RPM_BUILD_ROOT%{_pixmapsdir}/wxmaxima.png +sed -e "s@Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;@Science;Math;@g" wxmaxima.desktop \ + > $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop + +ln -s %{_pixmapsdir}/wxmaxima.png $RPM_BUILD_ROOT%{_datadir}/wxMaxima + %find_lang %{name} %clean