Siddharths fc4553d
Name:      zhu3d
5923421
Version:   4.2.4
c5f385f
Release:   2%{dist}
Siddharths fc4553d
Summary:   Interactive OpenGL-based mathematical function viewer
Siddharths fc4553d
Group:     Applications/System
Siddharths fc4553d
License:   GPLv3
Siddharths fc4553d
URL:       http://www.sourceforge.net/projects/zhu3d
Siddharths fc4553d
Source0:   http://sourceforge.net/projects/zhu3d/files/zhu3d/%{name}-%{version}.tar.gz
Siddharths fc4553d
Source1:   zhu3d.desktop 
5923421
Patch00:    pri.patch
5923421
Patch01:    libglu.patch
Siddharths fc4553d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Siddharths fc4553d
Siddharths fc4553d
BuildRequires: cmake make qt4-devel desktop-file-utils dos2unix
Siddharths fc4553d
Siddharths fc4553d
%description
Siddharths fc4553d
Zhu3D is an interactive OpenGL-based mathematical function viewer.
Siddharths fc4553d
You can visualize functions, parametric systems and Iso-surfaces. 
Siddharths fc4553d
The viewer supports special effects like animation, morphing, 
Siddharths fc4553d
transparency, textures, fog and motion blur
Siddharths fc4553d
Siddharths fc4553d
%prep
Siddharths fc4553d
%setup -q -n %{name}-%{version}
5923421
%patch00 -p1 -b .pri
5923421
%patch01 -p1 -b .libglu
Siddharths fc4553d
find . -type f -print0|xargs -0 chmod -x  
Siddharths fc4553d
dos2unix readme.txt license.gpl  
Siddharths fc4553d
Siddharths fc4553d
%build
Siddharths fc4553d
QTDIR="%{_qt4_prefix}" ; export QTDIR ; \
Siddharths fc4553d
PATH="%{_qt4_bindir}:$PATH" ; export PATH ; \
Siddharths fc4553d
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
Siddharths fc4553d
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
Siddharths fc4553d
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
5923421
%{_qt4_qmake} -r IDE_LIBRARY_BASENAME=%{_lib}
Siddharths fc4553d
make %{?_smp_mflags}
Siddharths fc4553d
Siddharths fc4553d
%install
Siddharths fc4553d
# Program binary  
Siddharths fc4553d
mkdir -p %{buildroot}%{_bindir}  
Siddharths fc4553d
cp -f %{name} %{buildroot}%{_bindir}  
Siddharths fc4553d
  
Siddharths fc4553d
# Other program files  
Siddharths fc4553d
mkdir -p %{buildroot}%{_datadir}/%{name}  
Siddharths fc4553d
cp -a -f work system %{buildroot}%{_datadir}/%{name}  
Siddharths fc4553d
  
Siddharths fc4553d
# Desktop entry  
Siddharths fc4553d
mkdir -p %{buildroot}%{_datadir}/applications  
Siddharths fc4553d
cp -f %SOURCE1 %{buildroot}%{_datadir}/applications  
Siddharths fc4553d
  
Siddharths fc4553d
# Desktop icon  
Siddharths fc4553d
install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/64x64/apps  
Siddharths fc4553d
install -m 0755 -d %{buildroot}%{_datadir}/pixmaps  
Siddharths fc4553d
install -m 0644 system/icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps  
Siddharths fc4553d
install -m 0644 system/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png  
Siddharths fc4553d
  
Siddharths fc4553d
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
Siddharths fc4553d
Siddharths fc4553d
%check
Siddharths fc4553d
desktop-file-validate %{SOURCE1}
Siddharths fc4553d
Siddharths fc4553d
Siddharths fc4553d
%clean
Siddharths fc4553d
rm -rf %{buildroot}
Siddharths fc4553d
Siddharths fc4553d
Siddharths fc4553d
%files
Siddharths fc4553d
%defattr(-,root,root,-)
Siddharths fc4553d
%doc license.gpl readme.txt  
Siddharths fc4553d
%{_bindir}/%{name}  
Siddharths fc4553d
%{_datadir}/%{name}/
Siddharths fc4553d
%{_datadir}/icons/hicolor/64x64/apps/*  
Siddharths fc4553d
%{_datadir}/pixmaps/zhu3d.png  
Siddharths fc4553d
%{_datadir}/applications/zhu3d.desktop
Siddharths fc4553d
 
Siddharths fc4553d
%changelog
c5f385f
* Sun Jul 15 2012 Siddharth Sharma <siddharth.kde@gmail.com> - 4.2.4-2
c5f385f
- rebuilt commit fixes for source
c5f385f
5923421
* Fri Mar 2 2012 siddvicious <siddharth.kde@gmail.com> - 4.2.4-1
5923421
- Package Update
5923421
0deb53a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-4
0deb53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0deb53a
98e36f3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.2-3
98e36f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
98e36f3
Siddharths fc4553d
* Sun Jan 30 2011 siddharth Sharma <siddharths@fedoraproject.org> - 4.2.2-2
Siddharths fc4553d
  - Fixes
Siddharths fc4553d
  - Changelog fix 4.2.4 to 4.2.2
Siddharths fc4553d
  - URL Source fix
Siddharths fc4553d
  - Default attributes in files were listed twice.
Siddharths fc4553d
  - Used macros instead of full paths in some places
Siddharths fc4553d
  
Siddharths fc4553d
* Sun Jan 9 2011 siddharth Sharma <siddharths@fedoraproject.org> - 4.2.2-1
c5f385f
  - Initial Release 1