X-Git-Url: http://git.pld-linux.org/?p=packages%2FMathReader.git;a=blobdiff_plain;f=MathReader.spec;h=e07184b95a7a64e660a0bb686a2ad632fa8e4042;hp=e8711f5436d8539bb24408f77aadb9d5af86c7e8;hb=723373f32a16ad4dc5d9d251abddf85e0d6f8f02;hpb=86e39dd6f77c8d6a3548ffdf82f653a264a090d6 diff --git a/MathReader.spec b/MathReader.spec index e8711f5..e07184b 100644 --- a/MathReader.spec +++ b/MathReader.spec @@ -1,41 +1,25 @@ -# TODO: -# - version for PPC/alpha/IA64/AMD64 -# - talk with wolfram about redistribute it ;) -# -%define _version 5.0.1 -%define ppc_version 4.2.1 Summary: Mathematica Notebook Reader -Summary(pl): Przegl±darka plików z programu Mathematica +Summary(pl.UTF-8): Przeglądarka plików z programu Mathematica Name: MathReader -%ifnarch ppc -Version: %{_version} -%else -Version: %{ppc_version} -%endif -Release: 1.1 +Version: 5.0.1 +Release: 3 License: almost free, distributable +Group: Applications/Math # from http://www.wolfram.com/products/mathreader/download.cgi -Source0: %{name}_%{_version}_Linux.sh +Source0: %{name}_%{version}_Linux.sh # Source0-md5: 35b7144eff51e017a03bf5c68d743548 -# Source0-size: 9356911 -Source1: %{name}_%{_version}_Linux-AMD64.sh +Source1: %{name}_%{version}_Linux-AMD64.sh # Source1-md5: 54c0db30f9a78269c03c970aaa841b66 -# Source1-size: 10186360 -Source2: %{name}_%{_version}_Linux-AXP.sh +Source2: %{name}_%{version}_Linux-AXP.sh # Source2-md5: 9ab612c9543c69838dd38445dd0e8b05 -# Source2-size: 10534517 -Source3: %{name}-%{ppc_version}-Linux-PPC.tar.gz -# Source3-md5: 9743cf3c81d3f83661034ae2cf5b6e78 -# Source3-size: 9269016 -Source4: %{name}_%{_version}_Linux-IA64.sh -# Source4-md5: 6ea3a14eac68391da213a25d62c629d4 -# Source4-size: 12019319 +Source3: %{name}_%{version}_Linux-IA64.sh +# Source3-md5: 6ea3a14eac68391da213a25d62c629d4 # based on http://www.wolfram.com/products/mathreader/licenseagreement.html -Source5: %{name}-license.txt -Source6: %{name}.desktop -Group: Applications/Math +Source4: %{name}-license.txt +Source5: %{name}.desktop URL: http://www.wolfram.com/products/mathreader/ -ExclusiveArch: %{ix86} ppc alpha amd64 ia64 +BuildRequires: rpmbuild(macros) >= 1.213 +ExclusiveArch: %{ix86} alpha %{x8664} ia64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -46,14 +30,14 @@ animate graphics, play sounds, and copy information from notebooks to other documents. MathReader can be used by most web browsers as a helper application for viewing notebook documents. -%description -l pl -MathReader jest przegl±dark± dla dokumentów utworzonych w programie -Mathematica, jedynym w ¶wiecie w pe³ni zintegrowanym systemie -technicznych obliczeñ. MathReader pozwala wy¶wietlaæ i drukowaæ -notatki, odtwarzaæ animacje, odgrywaæ d¼wiêki i kopiowaæ informacje z -notatek programu Mathematica do innych dokumentów. MathReader mo¿e byæ -te¿ u¿ywany przez wiêkszo¶æ przegl±darek WWW jako aplikacja pomocnicza -do przegl±dania dokumentów. +%description -l pl.UTF-8 +MathReader jest przeglądarką dla dokumentów utworzonych w programie +Mathematica, jedynym w świecie w pełni zintegrowanym systemie +technicznych obliczeń. MathReader pozwala wyświetlać i drukować +notatki, odtwarzać animacje, odgrywać dźwięki i kopiować informacje z +notatek programu Mathematica do innych dokumentów. MathReader może być +też używany przez większość przeglądarek WWW jako aplikacja pomocnicza +do przeglądania dokumentów. %prep @@ -63,27 +47,23 @@ rm -rf $RPM_BUILD_ROOT %ifarch %{ix86} %define _source %{SOURCE0} %endif -%ifarch amd64 +%ifarch %{x8664} %define _source %{SOURCE1} %endif %ifarch alpha %define _source %{SOURCE2} %endif #%%ifarch ia64 -#%%define _source %{SOURCE4} +#%%define _source %{SOURCE3} #%%endif -%ifnarch ppc sh %{_source} auto \ -targetdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \ -execdir=$RPM_BUILD_ROOT%{_bindir} -%else -TODO -%endif install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}} ln -sf %{_libdir}/%{name}/Executables/{MathReader,mathreader} $RPM_BUILD_ROOT%{_bindir} -install %{SOURCE5} . -install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir} +install %{SOURCE4} . +install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir} %clean rm -rf $RPM_BUILD_ROOT @@ -103,12 +83,16 @@ rm -rf $RPM_BUILD_ROOT %ifarch %{ix86} %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux %endif -%ifarch amd64 +%ifarch %{x8664} %attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-x86-64 %endif +%ifarch alpha +%attr(755,root,root) %{_libdir}/%{name}/SystemFiles/FrontEnd/Binaries/Linux-AXP +%endif %{_libdir}/%{name}/SystemFiles/FrontEnd/StyleSheets %{_libdir}/%{name}/SystemFiles/FrontEnd/SystemResources %{_libdir}/%{name}/SystemFiles/FrontEnd/TextResources %{_libdir}/%{name}/SystemFiles/Fonts %{_libdir}/%{name}/SystemFiles/Installation %{_libdir}/%{name}/SystemFiles/SpellingDictionaries +%{_desktopdir}/%{name}.desktop