]>
Commit | Line | Data |
---|---|---|
6d7dff05 ZU |
1 | Summary: GeoGebra is dynamic mathematics software |
2 | Name: geogebra | |
c36ec803 | 3 | Version: 4.0.27.0 |
94847035 | 4 | Release: 1 |
6d7dff05 ZU |
5 | License: GPL |
6 | Group: X11/Applications/Science | |
6eedb88e | 7 | Source0: http://geogebra.googlecode.com/files/GeoGebra-MacOS-Installer-%(echo %{version} | tr . -).zip |
c36ec803 | 8 | # Source0-md5: d196b0440cba53d61e59049b26b70234 |
6d7dff05 ZU |
9 | Source10: %{name} |
10 | # source11 taken from archlinux | |
11 | Source11: %{name}.desktop | |
12 | Source12: http://aur.archlinux.org/packages/geogebra/geogebra/%{name}.png | |
13 | # Source12-md5: e324ee3a2bb438cee625e3f29770a315 | |
14 | URL: http://www.geogebra.org | |
8959e75b | 15 | BuildRequires: unzip |
ffc4aced | 16 | Requires: jre >= 1.4.2 |
fbdc0339 | 17 | BuildArch: noarch |
6d7dff05 ZU |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | GeoGebra is dynamic mathematics software for all levels of education | |
22 | that joins arithmetic, geometry, algebra and calculus. It offers | |
23 | multiple representations of objects in its graphics, algebra, and | |
24 | spreadsheet views that are all dynamically linked. | |
25 | ||
26 | %prep | |
62980f7f | 27 | %setup -q -n GeoGebra.app |
6d7dff05 | 28 | |
6d7dff05 ZU |
29 | %install |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | ||
62980f7f | 32 | install -d $RPM_BUILD_ROOT%{_javadir}/geogebra/unsigned |
6d7dff05 ZU |
33 | install -d $RPM_BUILD_ROOT%{_bindir} |
34 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
35 | ||
62980f7f ZU |
36 | install Contents/Resources/Java/*.jar $RPM_BUILD_ROOT%{_javadir}/geogebra |
37 | install Contents/Resources/Java/unsigned/*.jar $RPM_BUILD_ROOT%{_javadir}/geogebra | |
38 | ||
6d7dff05 ZU |
39 | install %{SOURCE10} $RPM_BUILD_ROOT%{_bindir} |
40 | install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir} | |
41 | install %{SOURCE12} $RPM_BUILD_ROOT%{_pixmapsdir} | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %attr(755,root,root) %{_bindir}/%{name} | |
49 | %dir %{_javadir}/%{name} | |
50 | %{_javadir}/%{name}/*.jar | |
51 | %{_desktopdir}/%{name}.desktop | |
52 | %{_pixmapsdir}/%{name}.png |