Browse Source

wxMaxima: update to 18.02.0

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11713 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 4 years ago
parent
commit
55d78ed131
1 changed files with 34 additions and 29 deletions
  1. 34 29
      w/wxMaxima/wxMaxima-vl.spec

+ 34 - 29
w/wxMaxima/wxMaxima-vl.spec

@@ -1,24 +1,20 @@
 Name: wxMaxima
-Version: 14.12.1
+Version: 18.02.0
 Release: 1%{?_dist_release}
 
 License: GPL
 Group:   Applications/Engineering
 URL:     http://wxmaxima.sourceforge.net/
 
-Source0: wxmaxima-%{version}.tar.gz
-Patch0:  fix_desktop.patch
+Source0: wxmaxima-Version-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: libxml2-devel, wxGTK-devel, desktop-file-utils
-%if %{?_dist_release} == "vl6"
-BuildRequires: wx-gtk2-devel >= 2.8.4
-%endif
-%if %{?_dist_release} >= "vl7"
-BuildRequires: wxGTK-devel >= 2.8.4
-%endif
 
-Requires: maxima >= 5.11
+BuildRequires: cmake
+BuildRequires: libxml2-devel, desktop-file-utils
+BuildRequires: wxGTK3-devel
+
+Requires: maxima
 
 
 Summary: Graphical user interface for Maxima
@@ -44,28 +40,24 @@ wxMaxima features include:
    features. Documents can be saved and edited again later.
 
 %prep
-%setup -q -n wxmaxima-%{version}
-%patch0 -p1
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%setup -q -n wxmaxima-Version-%{version}
 
 %build
-%{configure} --enable-printing
+%{__cmake} -DCMAKE_INSTALL_PREFIX=%{_prefix} .
 %{__make} %{?_smp_mflags}
 
 %install
-%{__rm} -rf %{buildroot}
-%{makeinstall}
-
-desktop-file-install --vendor="" \
-                     --dir %{buildroot}%{_datadir}/applications \
-                     --add-category="Development" \
-                     --add-category="Math" \
-                     --remove-category="Utility" \
-                     wxmaxima.desktop
+%{make_install}
 
-%find_lang %{name}
+# move HTML document
+%{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/html
+%{__mv} ${RPM_BUILD_ROOT}%{_docdir}/wxmaxima/* \
+ ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/html
+%{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}/wxmaxima
 
 %clean
-%{__rm} -rf %{buildroot}
+%{__rm} -rf ${RPM_BUILD_ROOT}
 
 %post
 update-desktop-database -q &> /dev/null
@@ -74,14 +66,27 @@ update-desktop-database -q &> /dev/null
 update-desktop-database -q &> /dev/null
 
 
-%files -f %{name}.lang
+%files
 %defattr(-,root,root,-)
-%doc AUTHORS COPYING ChangeLog README
+%doc AUTHORS ChangeLog COPYING README.md
 %{_bindir}/*
-%{_datadir}/%{name}/*
-%{_datadir}/applications/wxmaxima.desktop
+%{_datadir}/applications/wxMaxima.desktop
+%{_datadir}/bash-completion/
+%{_datadir}/locale/
+%{_datadir}/metainfo/
+%{_datadir}/mime/
+%{_datadir}/pixmaps/
+%{_datadir}/wxMaxima/
+%{_mandir}/man1/wxmaxima.1.gz
+
 
 %changelog
+* Sat Jun 09 2018 Toshiaki Ara <ara_t@384.jp> - 18.02.0-1
+- update to 18.02.0 for VineSeed
+- drop Patch0 (fix_desktop.patch)
+- add BuildRequires: cmake
+- change BuildRequires: wxGTK3-devel
+
 * Sat Nov 05 2016 Toshiaki Ara <ara_t@384.jp> - 14.12.1-1
 - update to 14.12.1
 - delete configure option "--enable-dnd"