Compare commits

..

No commits in common. "rawhide" and "f30" have entirely different histories.

7 changed files with 238 additions and 1 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/zhu3d-4.2.2.tar.gz
/zhu3d-4.2.4.tar.gz
/zhu3d-4.2.6.tar.gz

View file

@ -1 +0,0 @@
Orphaned for 6+ weeks

11
libglu.patch Normal file
View file

@ -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.

70
pri.patch Normal file
View file

@ -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=

1
sources Normal file
View file

@ -0,0 +1 @@
462912c557b34f651ad99984a43a915c zhu3d-4.2.6.tar.gz

13
zhu3d.desktop Normal file
View file

@ -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;

140
zhu3d.spec Normal file
View file

@ -0,0 +1,140 @@
Name: zhu3d
Version: 4.2.6
Release: 14%{dist}
Summary: Interactive OpenGL-based mathematical function viewer
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
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 ; \
%{qmake_qt4} -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}
%files
%doc license.gpl readme.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/64x64/apps/*
%{_datadir}/pixmaps/zhu3d.png
%{_datadir}/applications/zhu3d.desktop
%changelog
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Feb 03 2016 Rex Dieter <rdieter@fedoraproject.org> - 4.2.6-7
- use %%qmake_qt4 macro to ensure proper build flags
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 4.2.6-5
- Rebuilt for GCC 5 C++11 ABI change
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat May 18 2013 Siddharth Sharma <siddharths@fedoraproject.org> - 4.2.6-1
- Upstream update to 4.2.6
- Remove libGLU Patch
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Jul 15 2012 Siddharth Sharma <siddharth.kde@gmail.com> - 4.2.4-2
- rebuilt commit fixes for source
* Fri Mar 2 2012 siddvicious <siddharth.kde@gmail.com> - 4.2.4-1
- Package Update
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Jan 30 2011 siddharth Sharma <siddharths@fedoraproject.org> - 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 <siddharths@fedoraproject.org> - 4.2.2-1
- Initial Release 1