]> git.pld-linux.org Git - packages/MathReader.git/blobdiff - MathReader.spec
- it is duistributable, rel. 1.1, NFY
[packages/MathReader.git] / MathReader.spec
index 4b32e2167848fd26a3fc68c1faea2a58658901a4..59dd0080ae3f45d4cf36e139121946e4990827c9 100644 (file)
@@ -1,17 +1,35 @@
 # TODO:
 # - version for PPC/alpha/IA64/AMD64
 # - talk with wolfram about redistribute it ;)
+#
+%define                _version        5.0.1
+%define                ppc_version     4.2.1
 Summary:       Mathematica Notebook Reader
 Summary(pl):   Przegl±darka plików z programu Mathematica
 Name:          MathReader
-Version:       5.0.1
-Release:       1
-License:       Almost Free... look at http://www.wolfram.com/products/mathreader/licenseagreement.html
+#ifnarch ppc
+Version:       %{_version}
+#else
+Version:       %{ppc_version}
+#endif
+Release:       1.1
+License:       almost free, distributable
 # from http://www.wolfram.com/products/mathreader/download.cgi
-Source0:       %{name}_%{version}_Linux.sh
+Source0:       %{name}_%{_version}_Linux.sh
+# Source0-md5: 35b7144eff51e017a03bf5c68d743548
+Source1:       %{name}_%{_version}_Linux-AMD64.sh
+# Source1-md5: 54c0db30f9a78269c03c970aaa841b66
+Source2:       %{name}_%{_version}_Linux-AXP.sh
+# Source2-md5: 9ab612c9543c69838dd38445dd0e8b05
+Source3:       %{name}-%{ppc_version}-Linux-PPC.tar.gz
+# Source3-md5: 9743cf3c81d3f83661034ae2cf5b6e78
+Source4:       %{name}_%{_version}_Linux-IA64.sh
+# Source4-md5: 6ea3a14eac68391da213a25d62c629d4
+# based on http://www.wolfram.com/products/mathreader/licenseagreement.html
+Source5:       %{name}-license.txt
 Group:         Applications/Math
 URL:           http://www.wolfram.com/products/mathreader/
-ExclusiveArch: %{ix86}
+ExclusiveArch: %{ix86} ppc alpha amd64 ia64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,18 +54,36 @@ do przegl
 %install
 rm -rf $RPM_BUILD_ROOT
 
-sh %{SOURCE0} auto \
+%ifarch %{ix86}
+%define _source        %{SOURCE0}
+%endif
+%ifarch amd64
+%define        _source %{SOURCE1}
+%endif
+%ifarch alpha
+%define        _source %{SOURCE2}
+%endif
+#%%ifarch ia64
+#%%define      _source %{SOURCE4}
+#%%endif
+
+%ifnarch ppc
+sh %{_source} auto \
        -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
        -execdir=$RPM_BUILD_ROOT%{_bindir}
-
+%else
+TODO
+%endif
 install -d $RPM_BUILD_ROOT%{_bindir}
 ln -sf %{_libdir}/%{name}/Executables/* $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE5} .
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc %{name}-license.txt
 %attr(755,root,root) %{_bindir}/%{name}
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/Executables
This page took 0.069975 seconds and 4 git commands to generate.