]> git.pld-linux.org Git - packages/MathReader.git/blob - MathReader.spec
- fix amd64 support ;)
[packages/MathReader.git] / MathReader.spec
1 # TODO:
2 # - version for PPC/alpha/IA64/AMD64
3 # - talk with wolfram about redistribute it ;)
4 #
5 %define         _version        5.0.1
6 %define         ppc_version     4.2.1
7 Summary:        Mathematica Notebook Reader
8 Summary(pl):    Przegl±darka plików z programu Mathematica
9 Name:           MathReader
10 %ifnarch ppc
11 Version:        %{_version}
12 %else
13 Version:        %{ppc_version}
14 %endif
15 Release:        1.1
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 Group:          Applications/Math
36 URL:            http://www.wolfram.com/products/mathreader/
37 ExclusiveArch:  %{ix86} ppc alpha amd64 ia64
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 MathReader is a viewer for notebook documents created with
42 Mathematica, the world's only fully integrated technical computing
43 system. MathReader lets you display and print Mathematica notebooks,
44 animate graphics, play sounds, and copy information from notebooks to
45 other documents. MathReader can be used by most web browsers as a
46 helper application for viewing notebook documents.
47
48 %description -l pl
49 MathReader jest przegl±dark± dla dokumentów utworzonych w programie
50 Mathematica, jedynym w ¶wiecie w pe³ni zintegrowanym systemie
51 technicznych obliczeñ. MathReader pozwala wy¶wietlaæ i drukowaæ
52 notatki, odtwarzaæ animacje, odgrywaæ d¼wiêki i kopiowaæ informacje z
53 notatek programu Mathematica do innych dokumentów. MathReader mo¿e byæ
54 te¿ u¿ywany przez wiêkszo¶æ przegl±darek WWW jako aplikacja pomocnicza
55 do przegl±dania dokumentów.
56
57 %prep
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %ifarch %{ix86}
63 %define _source %{SOURCE0}
64 %endif
65 %ifarch amd64
66 %define _source %{SOURCE1}
67 %endif
68 %ifarch alpha
69 %define _source %{SOURCE2}
70 %endif
71 #%%ifarch ia64
72 #%%define       _source %{SOURCE4}
73 #%%endif
74
75 %ifnarch ppc
76 sh %{_source} auto \
77         -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
78         -execdir=$RPM_BUILD_ROOT%{_bindir}
79 %else
80 TODO
81 %endif
82 install -d $RPM_BUILD_ROOT%{_bindir}
83 ln -sf %{_libdir}/%{name}/Executables/{MathReader,mathreader} $RPM_BUILD_ROOT%{_bindir}
84 install %{SOURCE5} .
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc %{name}-license.txt
92 %attr(755,root,root) %{_bindir}/%{name}
93 %dir %{_libdir}/%{name}
94 %attr(755,root,root) %{_libdir}/%{name}/Executables
95 %{_libdir}/%{name}/Configuration
96 %{_libdir}/%{name}/Documentation
97 %dir %{_libdir}/%{name}/SystemFiles
98 %{_libdir}/%{name}/SystemFiles/CharacterEncodings
99 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd
100 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries
101 %ifarch %{ix86}
102 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux
103 %endif
104 %ifarch amd64
105 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-x86-64
106 %endif
107 %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets
108 %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources
109 %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources
110 %{_libdir}/%{name}/SystemFiles/Fonts
111 %{_libdir}/%{name}/SystemFiles/Installation
112 %{_libdir}/%{name}/SystemFiles/SpellingDictionaries
This page took 0.074524 seconds and 3 git commands to generate.