1 |
dmorgan |
97679 |
Summary: OpenGL-based equation viewer and solver |
2 |
|
|
Name: zhu3d |
3 |
|
|
Version: 4.2.2 |
4 |
|
|
Release: %mkrel 1 |
5 |
|
|
License: GPLv2+ |
6 |
|
|
Group: Sciences/Mathematics |
7 |
|
|
Url: http://kde-apps.org/content/show.php?content=43071 |
8 |
|
|
Source0: http://ovh.dl.sourceforge.net/sourceforge/zhu3d/%{name}-%{version}.zip |
9 |
|
|
Source1: %{name}.desktop |
10 |
|
|
Patch0: %{name}-4.2.2-path.patch |
11 |
|
|
BuildRequires: qt4-devel >= 4.0 |
12 |
|
|
BuildRequires: libmesaglu-devel |
13 |
|
|
|
14 |
|
|
%description |
15 |
|
|
With Zhu3D you interactively can view and animate functions, |
16 |
|
|
isosurfaces and a further independent parametric system. |
17 |
|
|
Numerical solutions of equation systems can be found with |
18 |
|
|
a precise and reliable adaptive random search. The |
19 |
|
|
OpenGL-viewer supports zooming, scaling, rotating and |
20 |
|
|
translating as well as filed lightning or surface properties. |
21 |
|
|
Special effects are transparency, textures, fog and motion blur. |
22 |
|
|
|
23 |
|
|
%prep |
24 |
|
|
%setup -q |
25 |
|
|
%patch0 -p1 |
26 |
|
|
|
27 |
|
|
%build |
28 |
|
|
# setup compile flags is needed so that -fPIC and -DPIC will be overwritten |
29 |
|
|
%setup_compile_flags |
30 |
|
|
%qmake_qt4 |
31 |
|
|
%make |
32 |
|
|
|
33 |
|
|
%install |
34 |
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
35 |
|
|
|
36 |
|
|
mkdir -p %{buildroot}%{_datadir}/apps/%{name}/{work/textures,system/languages} |
37 |
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps |
38 |
|
|
|
39 |
|
|
install -D %{name} %{buildroot}%{_bindir}/%{name} |
40 |
|
|
install -D %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop |
41 |
|
|
install work/*.zhu %{buildroot}%{_datadir}/apps/%{name}/work |
42 |
|
|
install work/textures/* %{buildroot}%{_datadir}/apps/%{name}/work/textures |
43 |
|
|
install system/*.zhu %{buildroot}%{_datadir}/apps/%{name}/system |
44 |
|
|
install system/languages/*.qm %{buildroot}%{_datadir}/apps/%{name}/system/languages |
45 |
|
|
install system/icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png |
46 |
|
|
|
47 |
|
|
#useless file |
48 |
|
|
rm -f %{buildroot}%{_datadir}/apps/%{name}/work/.directory |
49 |
|
|
|
50 |
|
|
%clean |
51 |
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
52 |
|
|
|
53 |
|
|
%files |
54 |
|
|
%defattr(644,root,root,755) |
55 |
|
|
%doc doc/ readme.txt |
56 |
|
|
%attr(755,root,root) %{_bindir}/%{name} |
57 |
|
|
%dir %{_datadir}/apps/%{name} |
58 |
|
|
%dir %{_datadir}/apps/%{name}/work |
59 |
|
|
%dir %{_datadir}/apps/%{name}/work/textures |
60 |
|
|
%dir %{_datadir}/apps/%{name}/system |
61 |
|
|
%dir %{_datadir}/apps/%{name}/system/languages |
62 |
|
|
%{_datadir}/apps/%{name}/work/*.zhu |
63 |
|
|
%{_datadir}/apps/%{name}/work/textures/*.jpg |
64 |
|
|
%{_datadir}/apps/%{name}/work/textures/*.txt |
65 |
|
|
%{_datadir}/apps/%{name}/system/*.zhu |
66 |
|
|
%{_iconsdir}/hicolor/64x64/apps/*.png |
67 |
|
|
%{_datadir}/applications/%{name}.desktop |
68 |
|
|
%lang(cs) %{_datadir}/apps/%{name}/system/languages/%{name}_cs.qm |
69 |
|
|
%lang(de) %{_datadir}/apps/%{name}/system/languages/%{name}_de.qm |
70 |
|
|
%lang(es) %{_datadir}/apps/%{name}/system/languages/%{name}_es.qm |
71 |
|
|
%lang(fr) %{_datadir}/apps/%{name}/system/languages/%{name}_fr.qm |
72 |
|
|
%lang(zh) %{_datadir}/apps/%{name}/system/languages/%{name}_zh.qm |
73 |
|
|
|
74 |
|
|
|