]> git.pld-linux.org Git - packages/MathReader.git/blob - MathReader.spec
e8711f5436d8539bb24408f77aadb9d5af86c7e8
[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 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)
40
41 %description
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.
48
49 %description -l pl
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.
57
58 %prep
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %ifarch %{ix86}
64 %define _source %{SOURCE0}
65 %endif
66 %ifarch amd64
67 %define _source %{SOURCE1}
68 %endif
69 %ifarch alpha
70 %define _source %{SOURCE2}
71 %endif
72 #%%ifarch ia64
73 #%%define       _source %{SOURCE4}
74 #%%endif
75
76 %ifnarch ppc
77 sh %{_source} auto \
78         -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \
79         -execdir=$RPM_BUILD_ROOT%{_bindir}
80 %else
81 TODO
82 %endif
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
84 ln -sf %{_libdir}/%{name}/Executables/{MathReader,mathreader} $RPM_BUILD_ROOT%{_bindir}
85 install %{SOURCE5} .
86 install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files
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
103 %ifarch %{ix86}
104 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux
105 %endif
106 %ifarch amd64
107 %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-x86-64
108 %endif
109 %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets
110 %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources
111 %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources
112 %{_libdir}/%{name}/SystemFiles/Fonts
113 %{_libdir}/%{name}/SystemFiles/Installation
114 %{_libdir}/%{name}/SystemFiles/SpellingDictionaries
This page took 0.094327 seconds and 2 git commands to generate.