Siddharths fc4553d
Name:      zhu3d
78c91fd
Version:   4.2.6
78c91fd
Release:   1%{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 
3c068dd
Patch00:   pri.patch
3c068dd
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}
1d412ff
%patch00 -p1 -b .pri
3c068dd
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 ; \
1d412ff
%{_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
78c91fd
* Sat May 18 2013 Siddharth Sharma <siddharths@fedoraproject.org> - 4.2.6-1
78c91fd
- Upstream update to 4.2.6
3c068dd
- Remove libGLU Patch
78c91fd
a44b87e
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-4
a44b87e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a44b87e
a75dd3c
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-3
a75dd3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9cfed94
1797b0c
* Sun Jul 15 2012 Siddharth Sharma <siddharth.kde@gmail.com> - 4.2.4-2
1797b0c
- rebuilt commit fixes for source
1797b0c
1797b0c
* Fri Mar 2 2012 siddvicious <siddharth.kde@gmail.com> - 4.2.4-1
1797b0c
- Package Update
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
5f11645
  - Initial Release 1