Siddharths fc4553d
Name:      zhu3d
78c91fd
Version:   4.2.6
20b9838
Release:   20%{dist}
Siddharths fc4553d
Summary:   Interactive OpenGL-based mathematical function viewer
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
7a5e5bc
Patch01:   zhu3d-4.2.6-qt5.patch
3c068dd
7a5e5bc
BuildRequires: cmake
7a5e5bc
BuildRequires: dos2unix
7a5e5bc
BuildRequires: desktop-file-utils
7a5e5bc
BuildRequires: gcc-c++
7a5e5bc
BuildRequires: make
c947195
BuildRequires: qt5-qtbase-devel
7a5e5bc
BuildRequires: mesa-libGLU-devel
Siddharths fc4553d
7a5e5bc
# build fails on ppc64le - rhbz#1676264
7a5e5bc
ExcludeArch: ppc64le
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
7a5e5bc
%patch01 -p1
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 ; \
7a5e5bc
%{qmake_qt5} -r IDE_LIBRARY_BASENAME=%{_lib}
7a5e5bc
%make_build
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
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
%files
7a5e5bc
%doc readme.txt
7a5e5bc
%license license.gpl
7a5e5bc
%{_bindir}/%{name}
Siddharths fc4553d
%{_datadir}/%{name}/
7a5e5bc
%{_datadir}/icons/hicolor/64x64/apps/*
7a5e5bc
%{_datadir}/pixmaps/zhu3d.png
Siddharths fc4553d
%{_datadir}/applications/zhu3d.desktop
Siddharths fc4553d
 
Siddharths fc4553d
%changelog
20b9838
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-20
20b9838
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
20b9838
c0db67d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-19
c0db67d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c0db67d
c947195
* Sat Apr 11 2020 Filipe Rosset <rosset.filipe@gmail.com> - 4.2.6-18
c947195
- Fix FTBFS#F33
c947195
a57a822
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-17
a57a822
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a57a822
6cb3b6b
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-16
6cb3b6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6cb3b6b
7a5e5bc
* Fri Jul 12 2019 Filipe Rosset <rosset.filipe@gmail.com> - 4.2.6-15
7a5e5bc
- Fix FTBFS on rawhide, spec cleanup and modernization
7a5e5bc
- Migrate to Qt5, exclude builds on ppc64le for while
7a5e5bc
df1c248
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-14
df1c248
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
df1c248
8459bfe
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-13
8459bfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8459bfe
c8d908e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-12
c8d908e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c8d908e
3adbd7d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-11
3adbd7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3adbd7d
dfab898
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-10
dfab898
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dfab898
1b42f2d
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-9
1b42f2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
1b42f2d
82ab847
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-8
82ab847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
82ab847
Rex Dieter 351d969
* Wed Feb 03 2016 Rex Dieter <rdieter@fedoraproject.org> - 4.2.6-7
Rex Dieter 351d969
- use %%qmake_qt4 macro to ensure proper build flags
Rex Dieter 351d969
dedf7bf
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-6
dedf7bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dedf7bf
ca9c646
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 4.2.6-5
ca9c646
- Rebuilt for GCC 5 C++11 ABI change
ca9c646
6f9e034
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-4
6f9e034
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6f9e034
d31e60b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-3
d31e60b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d31e60b
fea086f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.6-2
fea086f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fea086f
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
a75dd3c
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