]> 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 43065b14278bf0017ed8801455e01cf2724e861a..bb392c0f7060a548078d6964877952d2f118f8f4 100644 (file)
@@ -2,7 +2,7 @@ Summary:        wxWidgets interface for maxima
 Summary(pl.UTF-8):     Interfejs do maximy używający wxWidgets
 Name:          wxMaxima
 Version:       12.01.0
-Release:       1
+Release:       5
 License:       GPL
 Group:         Applications/Math
 Source0:       http://downloads.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz
@@ -13,7 +13,7 @@ URL:          http://wxmaxima.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libxml2-devel
-BuildRequires: wxGTK2-unicode-devel
+BuildRequires: wxGTK3-unicode-devel
 BuildRequires: wxWidgets-devel
 Requires:      maxima >= 1:5.11.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,16 +37,21 @@ komputerowej Maxima.
 %{__autoheader}
 %{__automake}
 %{configure}\
-       --with-wx-config=%{_bindir}/wx-gtk2-unicode-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
+
+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}
 
This page took 0.088469 seconds and 4 git commands to generate.