2 # - version for PPC/alpha/IA64/AMD64
3 # - talk with wolfram about redistribute it ;)
6 %define ppc_version 4.2.1
7 Summary: Mathematica Notebook Reader
8 Summary(pl): Przegl±darka plików z programu Mathematica
13 Version: %{ppc_version}
16 License: almost free, distributable
17 # from http://www.wolfram.com/products/mathreader/download.cgi
18 Source0: %{name}_%{_version}_Linux.sh
19 # Source0-md5: 35b7144eff51e017a03bf5c68d743548
20 # Source0-size: 9356911
21 Source1: %{name}_%{_version}_Linux-AMD64.sh
22 # Source1-md5: 54c0db30f9a78269c03c970aaa841b66
23 # Source1-size: 10186360
24 Source2: %{name}_%{_version}_Linux-AXP.sh
25 # Source2-md5: 9ab612c9543c69838dd38445dd0e8b05
26 # Source2-size: 10534517
27 Source3: %{name}-%{ppc_version}-Linux-PPC.tar.gz
28 # Source3-md5: 9743cf3c81d3f83661034ae2cf5b6e78
29 # Source3-size: 9269016
30 Source4: %{name}_%{_version}_Linux-IA64.sh
31 # Source4-md5: 6ea3a14eac68391da213a25d62c629d4
32 # Source4-size: 12019319
33 # based on http://www.wolfram.com/products/mathreader/licenseagreement.html
34 Source5: %{name}-license.txt
35 Source6: %{name}.desktop
36 Group: Applications/Math
37 URL: http://www.wolfram.com/products/mathreader/
38 ExclusiveArch: %{ix86} ppc alpha amd64 ia64
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 MathReader is a viewer for notebook documents created with
43 Mathematica, the world's only fully integrated technical computing
44 system. MathReader lets you display and print Mathematica notebooks,
45 animate graphics, play sounds, and copy information from notebooks to
46 other documents. MathReader can be used by most web browsers as a
47 helper application for viewing notebook documents.
50 MathReader jest przegl±dark± dla dokumentów utworzonych w programie
51 Mathematica, jedynym w ¶wiecie w pe³ni zintegrowanym systemie
52 technicznych obliczeñ. MathReader pozwala wy¶wietlaæ i drukowaæ
53 notatki, odtwarzaæ animacje, odgrywaæ d¼wiêki i kopiowaæ informacje z
54 notatek programu Mathematica do innych dokumentów. MathReader mo¿e byæ
55 te¿ u¿ywany przez wiêkszo¶æ przegl±darek WWW jako aplikacja pomocnicza
56 do przegl±dania dokumentów.
61 rm -rf $RPM_BUILD_ROOT
64 %define _source %{SOURCE0}
67 %define _source %{SOURCE1}
70 %define _source %{SOURCE2}
73 #%%define _source %{SOURCE4}
78 -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
79 -execdir=$RPM_BUILD_ROOT%{_bindir}
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
84 ln -sf %{_libdir}/%{name}/Executables/{MathReader,mathreader} $RPM_BUILD_ROOT%{_bindir}
86 install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc %{name}-license.txt
94 %attr(755,root,root) %{_bindir}/%{name}
95 %dir %{_libdir}/%{name}
96 %attr(755,root,root) %{_libdir}/%{name}/Executables
97 %{_libdir}/%{name}/Configuration
98 %{_libdir}/%{name}/Documentation
99 %dir %{_libdir}/%{name}/SystemFiles
100 %{_libdir}/%{name}/SystemFiles/CharacterEncodings
101 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd
102 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries
104 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux
107 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-x86-64
110 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-AXP
112 %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets
113 %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources
114 %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources
115 %{_libdir}/%{name}/SystemFiles/Fonts
116 %{_libdir}/%{name}/SystemFiles/Installation
117 %{_libdir}/%{name}/SystemFiles/SpellingDictionaries
118 %{_desktopdir}/%{name}.desktop