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