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