]> git.pld-linux.org Git - packages/MathReader.git/blob - MathReader.spec
d2cd331ac17f736ddc4b0adadff9cba6314c2e7b
[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 Source1:        %{name}_%{_version}_Linux-AMD64.sh
21 # Source1-md5:  54c0db30f9a78269c03c970aaa841b66
22 Source2:        %{name}_%{_version}_Linux-AXP.sh
23 # Source2-md5:  9ab612c9543c69838dd38445dd0e8b05
24 Source3:        %{name}-%{ppc_version}-Linux-PPC.tar.gz
25 # Source3-md5:  9743cf3c81d3f83661034ae2cf5b6e78
26 Source4:        %{name}_%{_version}_Linux-IA64.sh
27 # Source4-md5:  6ea3a14eac68391da213a25d62c629d4
28 # based on http://www.wolfram.com/products/mathreader/licenseagreement.html
29 Source5:        %{name}-license.txt
30 Group:          Applications/Math
31 URL:            http://www.wolfram.com/products/mathreader/
32 ExclusiveArch:  %{ix86} ppc alpha amd64 ia64
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 MathReader is a viewer for notebook documents created with
37 Mathematica, the world's only fully integrated technical computing
38 system. MathReader lets you display and print Mathematica notebooks,
39 animate graphics, play sounds, and copy information from notebooks to
40 other documents. MathReader can be used by most web browsers as a
41 helper application for viewing notebook documents.
42
43 %description -l pl
44 MathReader jest przegl±dark± dla dokumentów utworzonych w programie
45 Mathematica, jedynym w ¶wiecie w pe³ni zintegrowanym systemie
46 technicznych obliczeñ. MathReader pozwala wy¶wietlaæ i drukowaæ
47 notatki, odtwarzaæ animacje, odgrywaæ d¼wiêki i kopiowaæ informacje z
48 notatek programu Mathematica do innych dokumentów. MathReader mo¿e byæ
49 te¿ u¿ywany przez wiêkszo¶æ przegl±darek WWW jako aplikacja pomocnicza
50 do przegl±dania dokumentów.
51
52 %prep
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %ifarch %{ix86}
58 %define _source %{SOURCE0}
59 %endif
60 %ifarch amd64
61 %define _source %{SOURCE1}
62 %endif
63 %ifarch alpha
64 %define _source %{SOURCE2}
65 %endif
66 #%%ifarch ia64
67 #%%define       _source %{SOURCE4}
68 #%%endif
69
70 %ifnarch ppc
71 sh %{_source} auto \
72         -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
73         -execdir=$RPM_BUILD_ROOT%{_bindir}
74 %else
75 TODO
76 %endif
77 install -d $RPM_BUILD_ROOT%{_bindir}
78 ln -sf %{_libdir}/%{name}/Executables/* $RPM_BUILD_ROOT%{_bindir}
79 install %{SOURCE5} .
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86 %doc %{name}-license.txt
87 %attr(755,root,root) %{_bindir}/%{name}
88 %dir %{_libdir}/%{name}
89 %attr(755,root,root) %{_libdir}/%{name}/Executables
90 %{_libdir}/%{name}/Configuration
91 %{_libdir}/%{name}/Documentation
92 %dir %{_libdir}/%{name}/SystemFiles
93 %{_libdir}/%{name}/SystemFiles/CharacterEncodings
94 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd
95 %dir %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries
96 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux
97 %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets
98 %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources
99 %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources
100 %{_libdir}/%{name}/SystemFiles/Fonts
101 %{_libdir}/%{name}/SystemFiles/Installation
102 %{_libdir}/%{name}/SystemFiles/SpellingDictionaries
This page took 0.063411 seconds and 2 git commands to generate.