]> git.pld-linux.org Git - packages/wxMaxima.git/blobdiff - wxMaxima.spec
- rebuild with gtk3 and wxWidgets 3.2, rel 5
[packages/wxMaxima.git] / wxMaxima.spec
index 375b9f6b0238b931381865bbb0489ead0af85ffc..bb392c0f7060a548078d6964877952d2f118f8f4 100644 (file)
@@ -1,44 +1,58 @@
 Summary:       wxWidgets interface for maxima
-Summary(pl):   Interfejs do maximy u¿ywaj±cy wxWidgets
+Summary(pl.UTF-8):     Interfejs do maximy używający wxWidgets
 Name:          wxMaxima
-Version:       0.7.0a
-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: 8ba9720bb96a1e7dcf5b8a3c06177901
+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.10.0
+Requires:      maxima >= 1:5.11.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 wxMaxima is a wxWidgets interface for the computer algebra system
 Maxima.
 
-%description -l pl
-wxMaxima jest bazuj±cym na wxWidgets interfejsem dla systemu algebry
+%description -l pl.UTF-8
+wxMaxima jest bazującym na wxWidgets interfejsem dla systemu algebry
 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 maxima-new.png $RPM_BUILD_ROOT%{_pixmapsdir}/maxima-new.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
@@ -49,5 +63,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc README AUTHORS
 %attr(755,root,root) %{_bindir}/wxmaxima
 %{_datadir}/wxMaxima
-%{_pixmapsdir}/maxima-new.png
+%{_pixmapsdir}/wxmaxima.png
 %{_desktopdir}/wxmaxima.desktop
This page took 0.076655 seconds and 4 git commands to generate.