%define beta %nil %define date %nil Name: zhu3d Version: 2.2 %if "%beta" == "" %if "%date" == "" Release: 1ark Source: 43071-%name-%version.tar.lz %else Release: 0.%date.1ark Source: 43071-%name-%date.tar.bz2 %endif %else %if "%date" == "" Release: 0.%beta.1ark Source: 43071-%name-%version%beta.tar.bz2 %else Release: 0.%beta.0.%date.1ark Source: 43071-%name-%date.tar.bz2 %endif %endif Patch: zhu3d-1.7-compile.patch Patch1: zhu3d-2.2-compile.patch Summary: 3D function solver URL: http://kde-apps.org/content/download.php?content=43071 License: GPL Group: Applications/Scientific BuildRoot: %{_tmppath}/%{name}-root %description With Zhu3D you can view, animate and solve up to three functions in 3D-space in a completely interactive manner. In addition, you further can observe an independent parametric system. The viewer supports zooming, scaling, rotating, translating as well as filed lightning, transparency, shadowing, spotlight and surface-properties. You have up to 8 independent lights or spotlights as well as background settings, miscellaneous wire-modes or different global illumination models. For finding numerical solutions of an equation-system, use the solver. The regarding parser is relatively clever and incorporates a lot of functions and different formats. Solutions are found via a quite reliable and fast adaptive random search. %prep %if "%date" == "" %setup -q -n %name-%version%beta %else %setup -q -n %name %endif %patch -p1 -b .compile~ %patch1 -p1 -b .compile1~ %_libdir/qt4/bin/qmake SYSDIR=%_datadir/%name DOCDIR=%_docdir/%name-%version %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%_datadir $RPM_BUILD_ROOT%_docdir \ $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_datadir/applnk/Scientific cp -a system $RPM_BUILD_ROOT%_datadir/%name cp -a doc $RPM_BUILD_ROOT%_docdir/%name-%version install -c -m 755 zhu3d $RPM_BUILD_ROOT%_bindir cat >$RPM_BUILD_ROOT%_datadir/applnk/Scientific/%name.desktop <<'EOF' [Desktop Entry] Name=Zhu 3D GenericName=3D function analyzer Exec=%name Terminal=0 Type=Application EOF %files %defattr(-,root,root) %_bindir/* %_datadir/applnk/Scientific/* %_datadir/%name %doc %_docdir/%name-%version %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Sun Sep 24 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.2-1ark - Update * Sun Aug 13 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7-1ark - initial RPM