]> git.pld-linux.org Git - packages/MathReader.git/blobdiff - MathReader.spec
- alpha support (not tested)
[packages/MathReader.git] / MathReader.spec
index 59dd0080ae3f45d4cf36e139121946e4990827c9..b55c554834e5e340551fa52f87d9e9cbe75699e6 100644 (file)
@@ -7,26 +7,32 @@
 Summary:       Mathematica Notebook Reader
 Summary(pl):   Przegl±darka plików z programu Mathematica
 Name:          MathReader
-#ifnarch ppc
+%ifnarch ppc
 Version:       %{_version}
-#else
+%else
 Version:       %{ppc_version}
-#endif
+%endif
 Release:       1.1
 License:       almost free, distributable
 # from http://www.wolfram.com/products/mathreader/download.cgi
 Source0:       %{name}_%{_version}_Linux.sh
 # Source0-md5: 35b7144eff51e017a03bf5c68d743548
+# Source0-size:        9356911
 Source1:       %{name}_%{_version}_Linux-AMD64.sh
 # Source1-md5: 54c0db30f9a78269c03c970aaa841b66
+# Source1-size:        10186360
 Source2:       %{name}_%{_version}_Linux-AXP.sh
 # Source2-md5: 9ab612c9543c69838dd38445dd0e8b05
+# Source2-size:        10534517
 Source3:       %{name}-%{ppc_version}-Linux-PPC.tar.gz
 # Source3-md5: 9743cf3c81d3f83661034ae2cf5b6e78
+# Source3-size:        9269016
 Source4:       %{name}_%{_version}_Linux-IA64.sh
 # Source4-md5: 6ea3a14eac68391da213a25d62c629d4
+# Source4-size:        12019319
 # based on http://www.wolfram.com/products/mathreader/licenseagreement.html
 Source5:       %{name}-license.txt
+Source6:       %{name}.desktop
 Group:         Applications/Math
 URL:           http://www.wolfram.com/products/mathreader/
 ExclusiveArch: %{ix86} ppc alpha amd64 ia64
@@ -74,9 +80,10 @@ sh %{_source} auto \
 %else
 TODO
 %endif
-install -d $RPM_BUILD_ROOT%{_bindir}
-ln -sf %{_libdir}/%{name}/Executables/* $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
+ln -sf %{_libdir}/%{name}/Executables/{MathReader,mathreader} $RPM_BUILD_ROOT%{_bindir}
 install %{SOURCE5} .
+install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -93,10 +100,19 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/%{name}/SystemFiles/CharacterEncodings
 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd
 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries
+%ifarch %{ix86}
 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux
+%endif
+%ifarch amd64
+%attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-x86-64
+%endif
+%ifarch alpha
+%attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-AXP
+%endif
 %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets
 %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources
 %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources
 %{_libdir}/%{name}/SystemFiles/Fonts
 %{_libdir}/%{name}/SystemFiles/Installation
 %{_libdir}/%{name}/SystemFiles/SpellingDictionaries
+%{_desktopdir}/%{name}.desktop
This page took 0.064722 seconds and 4 git commands to generate.