diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4634b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/zhu3d-4.2.2.tar.gz +/zhu3d-4.2.4.tar.gz +/zhu3d-4.2.6.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/libglu.patch b/libglu.patch new file mode 100644 index 0000000..0d8486c --- /dev/null +++ b/libglu.patch @@ -0,0 +1,11 @@ +--- zhu3d-old/zhu3d.pro 2012-01-10 21:48:42.000000000 +0530 ++++ zhu3d-moded/zhu3d.pro 2012-01-19 18:43:42.967919928 +0530 +@@ -48,7 +48,7 @@ TEMPLATE = app + CONFIG += release + TARGET = zhu3d + QT += opengl +- ++LIBS += -lGLU + + # ============================================================================ + # Optimisation switches. For both GCC/ICC compilers -O3 is default. diff --git a/pri.patch b/pri.patch new file mode 100644 index 0000000..461e9cf --- /dev/null +++ b/pri.patch @@ -0,0 +1,70 @@ +diff -uNr zhu3d-4.2.2.orig/zhu3d.pri zhu3d-4.2.2/zhu3d.pri +--- zhu3d-4.2.2.orig/zhu3d.pri 2009-06-02 10:21:38.000000000 +0530 ++++ zhu3d-4.2.2/zhu3d.pri 2011-01-15 17:09:55.659822004 +0530 +@@ -23,10 +23,10 @@ + # application path. As default the texture-directory resides under the work- + # directory. + +-SYSDIR= +-DOCDIR= +-WORKDIR= +-TEXDIR= ++SYSDIR=/usr/share/zhu3d/system ++DOCDIR=/usr/share/doc/packages/zhu3d ++WORKDIR=/usr/share/zhu3d/work ++TEXDIR=/usr/share/zhu3d/work/textures + + + # DETERMINING A DEFAULT GUI-STYLE +diff -uNr zhu3d-4.2.2.orig/zhu3d.pri~ zhu3d-4.2.2/zhu3d.pri~ +--- zhu3d-4.2.2.orig/zhu3d.pri~ 1970-01-01 05:30:00.000000000 +0530 ++++ zhu3d-4.2.2/zhu3d.pri~ 2011-01-15 17:09:55.658822003 +0530 +@@ -0,0 +1,48 @@ ++# PACKAGING/TAILORING: ++# ++# As packager or for tailoring you easily can redefine the locations of the ++# the following default directories: ++# ++# ./system (Here are icons, translations, and startup/benchmark located) ++# ./doc (Here are the html-helpfiles located) ++# ./work (Here are the zhu-files located) ++# ./textures (Here are the textures located) ++# ++# The work-directory as well as the textures need NO write privileges in ++# any case, because they easily can be redefined within Zhu3D at runtime. ++# ++# To change the locations, just fill in your desired path like e.g: ++# ++# SYSDIR=/usr/share/zhu3d-4.2.2/system ++# DOCDIR=/usr/share/doc/zhu3d-4.2.2/doc ++# WORKDIR=$$(HOME)/zhu3d-4.2.2/work ++# TEXDIR=$$(HOME)/zhu3d-4.2.2/work/textures ++# ++# In the example above the variable $$(HOME) denotes the users home-directory. ++# If an entry stays blank, the directory path for this will be relative to the ++# application path. As default the texture-directory resides under the work- ++# directory. ++ ++SYSDIR=/usr/share/zhu3d/system ++DOCDIR=/usr/share/doc/packages/zhu3d ++WORKDIR=/usr/share/zhu3d/work ++TEXDIR=/usr/share/zhu3d/work/textures ++ ++ ++# DETERMINING A DEFAULT GUI-STYLE ++# ++# Note, that this switch determines the the gui-style of the 1.st time ever call ++# of Zhu3D only. Successive program starts will always respect settings, which the ++# user choosed as preferred. If the entry stays blank, Zhu3D starts with "Plastique" ++# as default KDE-style. Gnome-packagers may prefer "Cleanlooks" or GTK+, what are ++# native Gnome-styles. ++# ++# Of course you only should choose a setting, which is available for the targeted ++# audience. Plastique and Cleanlooks should work everywhere, Macintosh or WindowsVista ++# on computers with dedicated operatings systems only of course. ++# ++# Currently (Qt4 4.5.x) valid entries are: ++# ++# Plastique, Cleanlooks, GTK+, Motif, CDE, Windows, WindowsXP, WindowsVista, Macintosh ++ ++DEFGUI= diff --git a/sources b/sources new file mode 100644 index 0000000..e3b1521 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +462912c557b34f651ad99984a43a915c zhu3d-4.2.6.tar.gz diff --git a/zhu3d.desktop b/zhu3d.desktop new file mode 100644 index 0000000..2e93091 --- /dev/null +++ b/zhu3d.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name=Zhu3D +Comment=OpenGL-based equation viewer and solver +Exec=zhu3d %i +Icon=zhu3d +Type=Application +GenericName=Function viewer and solver +Terminal=false +X-KDE-StartupNotify=true +Categories=KDE;Qt;Utility;Calculator; + + + diff --git a/zhu3d.spec b/zhu3d.spec new file mode 100644 index 0000000..d24e48c --- /dev/null +++ b/zhu3d.spec @@ -0,0 +1,116 @@ +Name: zhu3d +Version: 4.2.6 +Release: 4%{dist} +Summary: Interactive OpenGL-based mathematical function viewer +Group: Applications/System +License: GPLv3 +URL: http://www.sourceforge.net/projects/zhu3d +Source0: http://sourceforge.net/projects/zhu3d/files/zhu3d/%{name}-%{version}.tar.gz +Source1: zhu3d.desktop +Patch00: pri.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: cmake make qt4-devel desktop-file-utils dos2unix + +%description +Zhu3D is an interactive OpenGL-based mathematical function viewer. +You can visualize functions, parametric systems and Iso-surfaces. +The viewer supports special effects like animation, morphing, +transparency, textures, fog and motion blur + +%prep +%setup -q -n %{name}-%{version} +%patch00 -p1 -b .pri + +find . -type f -print0|xargs -0 chmod -x +dos2unix readme.txt license.gpl + +%build +QTDIR="%{_qt4_prefix}" ; export QTDIR ; \ +PATH="%{_qt4_bindir}:$PATH" ; export PATH ; \ +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ +CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ +FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ +%{_qt4_qmake} -r IDE_LIBRARY_BASENAME=%{_lib} +make %{?_smp_mflags} + +%install +# Program binary +mkdir -p %{buildroot}%{_bindir} +cp -f %{name} %{buildroot}%{_bindir} + +# Other program files +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -a -f work system %{buildroot}%{_datadir}/%{name} + +# Desktop entry +mkdir -p %{buildroot}%{_datadir}/applications +cp -f %SOURCE1 %{buildroot}%{_datadir}/applications + +# Desktop icon +install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/64x64/apps +install -m 0755 -d %{buildroot}%{_datadir}/pixmaps +install -m 0644 system/icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps +install -m 0644 system/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png + +desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} + +%check +desktop-file-validate %{SOURCE1} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc license.gpl readme.txt +%{_bindir}/%{name} +%{_datadir}/%{name}/ +%{_datadir}/icons/hicolor/64x64/apps/* +%{_datadir}/pixmaps/zhu3d.png +%{_datadir}/applications/zhu3d.desktop + +%changelog +* Mon Aug 18 2014 Fedora Release Engineering - 4.2.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 4.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 4.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat May 18 2013 Siddharth Sharma - 4.2.6-1 +- Upstream update to 4.2.6 +- Remove libGLU Patch + +* Fri Feb 15 2013 Fedora Release Engineering - 4.2.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 4.2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Jul 15 2012 Siddharth Sharma - 4.2.4-2 +- rebuilt commit fixes for source + +* Fri Mar 2 2012 siddvicious - 4.2.4-1 +- Package Update + +* Sat Jan 14 2012 Fedora Release Engineering - 4.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 4.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jan 30 2011 siddharth Sharma - 4.2.2-2 + - Fixes + - Changelog fix 4.2.4 to 4.2.2 + - URL Source fix + - Default attributes in files were listed twice. + - Used macros instead of full paths in some places + +* Sun Jan 9 2011 siddharth Sharma - 4.2.2-1 + - Initial Release 1