File geogebra.spec of Package geogebra
%global debug_package %{nil}
%global __os_install_post %{nil}
%ifarch x86_64
%define oname GeoGebra-Linux64-Portable
%define qname GeoGebra-linux-x64
%else
%define oname GeoGebra-Linux32-Portable
%define qname GeoGebra-linux-ia32
%endif
%define dont_strip 1
%define __brp_check_rpaths %{nil}
%define oversion 6.0
%define aver 6-0-804-0
Name: geogebra
Version: 6.0.804.0
Release: Stan8
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Url: http://www.geogebra.org/cms/en/portable
Source0: http://download.geogebra.org/installers/%{oversion}/%{oname}-%{aver}.zip
Source1: http://rosalinux.cba.pl/store/geogebra.tar.xz
Source2: http://rosalinux.cba.pl/store/geogebra.rpmlintrc
Summary: GeoGebra - dynamic mathematics for schools
License: GPLv2
Group: Sciences/Mathematics
#BuildArch: noarch
ExclusiveArch: x86_64
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: java-11-openjdk
Obsoletes: %name < 6.0.804.0
BuildRequires: unzip
%description
GeoGebra is a free and multi-platform dynamic mathematics
software for schools that joins geometry, algebra and
calculus. It received several international awards
including the European and German educational software
awards.
%set_verify_elf_method textrel=relaxed
%prep
%setup -q -n %{qname}
mkdir -p usr/share/geogebra
mv -v locales usr/share/geogebra
mv -v resources usr/share/geogebra
mv *.so usr/share/geogebra
mv *.pak usr/share/geogebra
mv *.html usr/share/geogebra
mv *.bin usr/share/geogebra
mv *.dat usr/share/geogebra
mv version usr/share/geogebra
mv LICENSE usr/share/geogebra
mv GeoGebra usr/share/geogebra
%build
%install
cp -R usr $RPM_BUILD_ROOT
#new style mime-type
mkdir -p %{buildroot}%{_datadir}/mime/packages
cat > %{buildroot}%{_datadir}/mime/packages/%{name}.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/vnd.geogebra.file">
<comment>GeoGebra worksheet</comment>
<comment xml:lang="cs">Pracovní list GeoGebry</comment>
<comment xml:lang="de">GeoGebra-Arbeitsblatt</comment>
<comment xml:lang="es">Archivo GeoGebra</comment>
<comment xml:lang="fr">Feuille de travail GeoGebra </comment>
<comment xml:lang="hi">जीओ-जेब्रा कार्य-पत्र</comment>
<comment xml:lang="it">Foglio di lavoro GeoGebra </comment>
<comment xml:lang="pt-BR">Planilha GeoGebra</comment>
<sub-class-of type="application/zip"/>
<glob pattern="*.ggb"/>
</mime-type>
<mime-type type="application/vnd.geogebra.tool">
<comment>GeoGebra tool</comment>
<comment xml:lang="cs">Nástroj GeoGebry</comment>
<comment xml:lang="de">GeoGebra-Werkzeug</comment>
<comment xml:lang="es">Herramienta GeoGebra</comment>
<comment xml:lang="fr">Outil GeoGebra</comment>
<comment xml:lang="hi">जीओ-जेब्रा साधन</comment>
<comment xml:lang="it">Strumento GeoGebra</comment>
<comment xml:lang="pt-BR">Ferramenta GeoGebra</comment>
<sub-class-of type="application/zip"/>
<glob pattern="*.ggt"/>
</mime-type>
</mime-info>
EOF
cd %{buildroot}/usr
tar -xf %{SOURCE1}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,0755)
%{_bindir}/geogebra
%dir %{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/*
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/mime/packages/%{name}.xml
%changelog
* Sun Sep 19 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.664.0-Stan8
- 6.0.664.0
* Sun Sep 12 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.662.0-Stan8
- 6.0.662.0
* Sun Aug 22 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.659.0-Stan8
- 6.0.659.0
* Mon Aug 02 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.657.0-Stan8
- 6.0.657.0
* Sat Jun 05 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.644.0-Stan8
- 6.0.644.0
* Mon May 03 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.640.0-Stan8
- 6.0.640.0
* Sun Apr 18 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.636.0-Stan8
- 6.0.636.0
* Tue Mar 16 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.631.0-Stan8
- 6.0.631.0
* Sun Mar 14 2021 Stan8 <stasiek0000@poczta.onet.pl> 6.0.620.0-Stan8
- 6.0.620.0
* Sat Nov 21 2020 Stan8 <stasiek0000@poczta.onet.pl> 6.0.609.0-Stan8
- 6.0.609.0
* Wed Oct 07 2020 Stan8 <stasiek0000@poczta.onet.pl> 6.0.608.0-Stan8
- 6.0.608.0
* Fri Jun 19 2020 Stan8 <stasiek0000@poczta.onet.pl> 6.0.590.0-Stan8
- 6.0.590.0
* Sun May 19 2019 Stan8 <stasiek0000@poczta.onet.pl> 6.0.536.0-Stan8
- 6.0.536.0
* Thu Jun 21 2018 Stan8 <stasiek0000@poczta.onet.pl> 6.0.473.0-Stan8
- 6.0.473.0
* Sun Feb 25 2018 Stan8 <stasiek0000@poczta.onet.pl> 6.0.434.0-Stan8
- 6.0.434.0
* Sat Aug 05 2017 Stan8 <stasiek0000@poczta.onet.pl> 5.0.381.0-Stan8
- 5.0.381.0
* Tue Jul 04 2017 Stan8 <stasiek0000@poczta.onet.pl> 5.0.372.0-Stan8
- 5.0.372.0
* Thu Jun 15 2017 Stan8 <stasiek0000@poczta.onet.pl> 5.0.365.0-Stan8
- 5.0.365.0
* Sat May 27 2017 Stan8 <stasiek0000@poczta.onet.pl> 5.0.361.0-Stan8
- 5.0.361.0
* Mon Apr 10 2017 Stan8 <stasiek0000@poczta.onet.pl> 5.0.352.0-Stan8
- 5.0.352.0
* Sun Oct 09 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.280.0-Stan8
- 5.0.280.0
* Mon Sep 05 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.272.0-Stan8
- 5.0.272.0
* Thu Sep 01 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.271.0-Stan8
- 5.0.271.0
* Wed Aug 24 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.269.0-Stan8
- 5.0.269.0
* Thu Aug 11 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.266.0-Stan8
- 5.0.266.0
* Sat Aug 06 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.265.0-Stan8
- 5.0.265.0
* Wed Jul 27 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.263.0-Stan8
- 5.0.263.0
* Wed Jul 13 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.258.0-Stan8
- 5.0.258.0
* Thu Jul 07 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.257.0-Stan8
- 5.0.257.0
* Tue Jun 21 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.253.0-Stan8
- 5.0.253.0
* Wed Jun 15 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.249.0-Stan8
- 5.0.249.0
* Fri Jun 10 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.244.0-Stan8
- 5.0.244.0
* Mon May 23 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.240.0-Stan8
- 5.0.240.0
* Fri May 13 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.236.0-Stan8
- 5.0.236.0
* Sun May 08 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.233.0-Stan8
- 5.0.233.0
* Mon Apr 25 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.230.0-Stan8
- 5.0.230.0
* Wed Mar 23 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.218.0-Stan8
- 5.0.218.0
* Sat Mar 19 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.215.0-Stan8
- 5.0.215.0
* Sun Mar 13 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.214.0-Stan8
- 5.0.214.0
* Thu Mar 10 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.212.0-Stan8
- 5.0.212.0
* Tue Mar 01 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.209.0-Stan8
- 5.0.209.0
* Sat Feb 27 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.207.0-Stan8
- 5.0.207.0
* Thu Feb 18 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.205.0-Stan8
- 5.0.205.0
* Sun Feb 14 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.204.0-Stan8
- 5.0.204.0
* Mon Feb 08 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.202.0-Stan8
- 5.0.202.0
* Fri Feb 05 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.201.0-Stan8
- 5.0.201.0
* Tue Jan 26 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.198.0-Stan8
- 5.0.198.0
* Sat Jan 23 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.195.0-Stan8
- 5.0.195.0
* Sun Jan 17 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.194.0-Stan8
- 5.0.194.0
* Sat Jan 09 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.192.0-Stan8
- 5.0.192.0
* Sat Jan 02 2016 Stan8 <stasiek0000@poczta.onet.pl> 5.0.191.0-Stan8
- 5.0.191.0
* Mon Dec 28 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.190.0-Stan8
- 5.0.190.0
* Tue Dec 22 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.189.0-Stan8
- 5.0.189.0
* Sat Dec 19 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.185.0-Stan8
- 5.0.185.0
* Wed Dec 09 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.180.0-Stan8
- 5.0.180.0
* Sun Nov 29 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.177.0-Stan8
- 5.0.177.0
* Wed Jun 17 2015 Stan8 <stasiek0000@poczta.onet.pl> 5.0.127.0-Stan8
- 5.0.127.0