geogebra rpm spec file for mageia

  1. Name: geogebra
  2. Version: 3.2.46.0
  3. Release: %mkrel 1
  4. Summary: Dynamic mathematics software that joins geometry, algebra, tables, graphing, statistics and calculus.
  5. License: GPLv2+ ; CC-BY-SAv3+ ; CC-BY-NC-SAv3+
  6. Group: Sciences/Mathematics
  7. Url: http://www.geogebra.org
  8. Source0: http://www.geogebra.org/webstart/installer/%{name}-%{version}-src.tar.gz
  9. Source1: %{name}.desktop
  10. Source2: %{name}
  11. BuildRequires: unzip
  12. Requires: java >= 1.5.0
  13. BuildArch: noarch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  15.  
  16. %description
  17. This package provides GeoGebra.
  18. GeoGebra is free and multi-platform dynamic mathematics software for all levels of education that joins geometry, algebra, tables, graphing, statistics and calculus in one easy-to-use package. It has received several educational software awards in Europe and the USA.
  19.  
  20. Quick Facts:
  21. - Graphics, algebra and tables are connected and fully dynamic
  22. - Easy-to-use interface, yet many powerful features
  23. - Authoring tool to create interactive learning materials as web pages
  24. - Available in many languages for our millions of users around the world
  25. - Free and open source software
  26.  
  27. %prep
  28. %setup -q -n %{name}-%{version}
  29.  
  30. %build
  31.  
  32. %install
  33. rm -rf %{buildroot}
  34. %{__install} -d -m755 %{buildroot}%{_docdir}/%{name}
  35. %{__install} -d -m755 %{buildroot}%{_datadir}/%{name}/unsigned
  36. %{__install} -m644 *.jar %{buildroot}%{_datadir}/%{name}
  37. %{__install} -m644 unsigned/*.jar %{buildroot}%{_datadir}/%{name}/unsigned
  38. %{__install} -d -m755 %{buildroot}%{_datadir}/mime/packages
  39. %{__install} -m644 geogebra.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
  40. %{__install} -d -m755 %{buildroot}%{_datadir}/applications
  41. %{__install} -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
  42. %{__install} -d -m755 %{buildroot}%{_bindir}
  43. %{__install} -m755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
  44. for SIZE in 16x16 22x22 32x32 48x48 64x64 128x128 256x256 scalable
  45. do
  46. %{__install} -d -m755 %{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps
  47. %{__install} -m644 icons/hicolor/$SIZE/apps/* %{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps/
  48. %{__install} -d -m755 %{buildroot}%{_datadir}/icons/hicolor/$SIZE/mimetypes
  49. %{__install} -m644 icons/hicolor/$SIZE/mimetypes/* %{buildroot}%{_datadir}/icons/hicolor/$SIZE/mimetypes/
  50. done
  51.  
  52. %clean
  53. rm -rf %{buildroot}
  54.  
  55. %files
  56. %defattr(-,root,root)
  57. %doc ../license.txt
  58. %{_datadir}/%{name}
  59. %{_datadir}/mime/packages/%{name}.xml
  60. %{_bindir}/%{name}
  61. %{_datadir}/applications/%{name}.desktop
  62. %{_datadir}/icons/hicolor/*/*/*.png
  63. %{_datadir}/icons/hicolor/scalable/*/*.svg*
  64.  
  65. %changelog