D Haley cc153fc
Name:		3Depict
D Haley b2c65c4
Version:	0.0.13
D Haley b2c65c4
Release:	1%{?dist}
D Haley cc153fc
Summary:	Valued 3D point cloud visualization and analysis
D Haley cc153fc
Group:		Applications/Engineering
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
License:	GPLv3+
D Haley cc153fc
URL:		http://threedepict.sourceforge.net
D Haley cc153fc
Source0:	http://downloads.sourceforge.net/threedepict/%{name}-%{version}.tar.gz
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
D Haley cc153fc
D Haley cc153fc
#Mathgl for plotting
D Haley cc153fc
BuildRequires:	mathgl-devel 
D Haley cc153fc
#Mesa for GLU
D Haley cc153fc
BuildRequires:	libGL-devel 
D Haley cc153fc
#Libxml2 for file parsing
D Haley cc153fc
BuildRequires:	libxml2-devel 
D Haley cc153fc
#FTGL for 3d fonts
D Haley cc153fc
BuildRequires:	ftgl-devel 
D Haley cc153fc
#libpng for textures
D Haley cc153fc
BuildRequires: libpng-devel
D Haley cc153fc
#Desktop file utils for installing desktop file
D Haley cc153fc
BuildRequires: desktop-file-utils
D Haley cc153fc
#WX widgets
D Haley cc153fc
BuildRequires: wxGTK-devel
D Haley cc153fc
#PDF latex build
D Haley cc153fc
#BuildRequires: tex(latex)
D Haley cc153fc
D Haley cc153fc
#Required for surface removal algorithms 
D Haley cc153fc
BuildRequires: qhull-devel
D Haley cc153fc
D Haley cc153fc
#Fedora specific PDF dir.
D Haley cc153fc
Patch0: %{name}-%{version}-manual-pdf-loc.patch
D Haley cc153fc
#Fedora specific font dir
D Haley cc153fc
Patch1: %{name}-%{version}-font-path.patch
D Haley cc153fc
D Haley cc153fc
%description
D Haley cc153fc
This software is designed to help users visualize and analyze 3D point clouds
D Haley cc153fc
with an associated real value, in a fast and flexible fashion. It is 
D Haley cc153fc
specifically targeted to atom probe tomography applications, but may be 
D Haley cc153fc
useful for general scalar valued point data purposes.
D Haley cc153fc
D Haley cc153fc
%prep
D Haley cc153fc
D Haley cc153fc
%setup -q 
D Haley cc153fc
D Haley cc153fc
%patch0
D Haley cc153fc
%patch1
D Haley cc153fc
D Haley cc153fc
%build
D Haley cc153fc
%configure --disable-debug-checks --enable-openmp-parallel
D Haley cc153fc
make %{?_smp_mflags}
D Haley cc153fc
D Haley cc153fc
%install
D Haley cc153fc
rm -rf %{buildroot}
D Haley cc153fc
make install DESTDIR=%{buildroot}
D Haley cc153fc
D Haley cc153fc
# Install the textures
D Haley cc153fc
mkdir -p %{buildroot}%{_datadir}/%{name}/textures
D Haley b2c65c4
cp -p data/textures/*png %{buildroot}%{_datadir}/%{name}/textures/
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
#Install the manpage
D Haley cc153fc
install -Dp -m 644 packaging/manpage/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
D Haley cc153fc
D Haley cc153fc
desktop-file-install \
D Haley cc153fc
		--dir %{buildroot}%{_datadir}/applications \
D Haley cc153fc
		packaging/%{name}.desktop
D Haley cc153fc
mkdir -p %{buildroot}%{_datadir}/pixmaps/
D Haley b2c65c4
install -Dp -m 644 data/textures/tex-source/%{name}-icon.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
D Haley cc153fc
D Haley cc153fc
#install language files
D Haley cc153fc
#--
D Haley cc153fc
#Remap locale names
D Haley cc153fc
mv locales/de_DE/ locales/de/
D Haley cc153fc
D Haley cc153fc
mkdir -p %{buildroot}/%{_datadir}/locale/
D Haley cc153fc
cp -R locales/* %{buildroot}/%{_datadir}/locale/
D Haley cc153fc
D Haley cc153fc
#Restore the internal build's locale naming
D Haley cc153fc
mv locales/de/ locales/de_DE/
D Haley cc153fc
#--
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
#Move the documentation such that it is picked up by the doc macro
D Haley cc153fc
mv docs/manual-latex/manual.pdf %{name}-%{version}-manual.pdf
D Haley cc153fc
D Haley cc153fc
#Locale stuff
D Haley cc153fc
%find_lang %{name}
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
%clean
D Haley cc153fc
rm -rf %{buildroot}
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
%files -f %{name}.lang
D Haley cc153fc
%defattr(-,root,root,-)
D Haley cc153fc
%doc COPYING AUTHORS ChangeLog README TODO %{name}-%{version}-manual.pdf
D Haley cc153fc
%{_bindir}/%{name}
D Haley cc153fc
%dir %{_datadir}/%{name}/
D Haley cc153fc
%dir %{_datadir}/%{name}/textures
D Haley cc153fc
%{_datadir}/%{name}/textures/*.png
D Haley cc153fc
%{_datadir}/applications/%{name}.desktop
D Haley cc153fc
%{_mandir}/man1/%{name}.1.*
D Haley cc153fc
%{_datadir}/pixmaps/*.svg
D Haley cc153fc
D Haley cc153fc
D Haley cc153fc
%changelog
D Haley b2c65c4
* Sun Mar 23 2013 D Haley <mycae(a!t)gmx.com> - 0.0.13-1
D Haley b2c65c4
- Update to 0.0.13
D Haley b2c65c4
D Haley b2c65c4
* Sun Mar 23 2013 D Haley <mycae(a!t)gmx.com> - 0.0.12-4
D Haley b2c65c4
- Add aarch 64 patch for bug 924960, until next version
D Haley b2c65c4
D Haley b2c65c4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12-3
D Haley b2c65c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
D Haley b2c65c4
D Haley c7efd3b
* Sun Dec 9 2012 D Haley <mycae(a!t)yahoo.com> - 0.0.12-2
D Haley c7efd3b
- Import bugfixes from upstream for plot UI and crash fixes
D Haley c7efd3b
D Haley cc153fc
* Sun Nov 25 2012 D Haley <mycae(a!t)yahoo.com> - 0.0.12-1
D Haley cc153fc
- Update to 0.0.12
D Haley cc153fc
D Haley cc153fc
* Mon Apr 2 2012 D Haley <mycae(a!t)yahoo.com> - 0.0.10-1
D Haley cc153fc
- Update to 0.0.10
D Haley cc153fc
D Haley cc153fc
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9-4
D Haley cc153fc
- Rebuilt for c++ ABI breakage
D Haley cc153fc
D Haley cc153fc
* Thu Jan 12 2012 D Haley <mycae(a!t)yahoo.com> - 0.0.9-3
D Haley cc153fc
- Patch to fix FTFBS for gcc 4.7
D Haley cc153fc
D Haley cc153fc
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9-2
D Haley cc153fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
D Haley cc153fc
D Haley b2c65c4
* Sat Dec 17 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.9-1
D Haley cc153fc
- Update to 0.0.9
D Haley cc153fc
D Haley cc153fc
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.0.8-3
D Haley cc153fc
- Rebuild for new libpng
D Haley cc153fc
D Haley cc153fc
* Sat Oct 29 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.8-2
D Haley cc153fc
- Post release fixes for various crash bugs
D Haley cc153fc
D Haley cc153fc
* Sun Oct 23 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.8-1
D Haley cc153fc
- Update to 0.0.8
D Haley cc153fc
D Haley cc153fc
* Sun Aug 14 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.7-1
D Haley cc153fc
- Update to 0.0.7
D Haley cc153fc
D Haley b2c65c4
* Fri May 20 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.6-1
D Haley cc153fc
- Update to 0.0.6
D Haley cc153fc
D Haley b2c65c4
* Sun Mar 27 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.5-1
D Haley cc153fc
- New upstream release
D Haley cc153fc
D Haley b2c65c4
* Sun Mar 13 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-3
D Haley cc153fc
- Patch opengl startup code -- peek at gl context. Possible fix for bug 684390
D Haley cc153fc
D Haley cc153fc
* Sat Feb 12 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-2
D Haley cc153fc
- Fix bug 677016 - 3Depict no built with rpm opt flags
D Haley cc153fc
D Haley cc153fc
* Sat Jan 22 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-1
D Haley cc153fc
- Update to 0.0.4
D Haley cc153fc
D Haley cc153fc
* Fri Nov 26 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.3-1
D Haley cc153fc
- Update to 0.0.3
D Haley cc153fc
D Haley cc153fc
* Tue Oct 5 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-3
D Haley cc153fc
- Use tex(latex) virtual package in preference to texlive-latex
D Haley cc153fc
D Haley cc153fc
* Mon Oct 4 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-2
D Haley cc153fc
- Add latex build for manual
D Haley cc153fc
D Haley cc153fc
* Sat Sep 25 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-1
D Haley cc153fc
- Update to 0.0.2
D Haley cc153fc
- Address comments in package review 
D Haley cc153fc
D Haley b2c65c4
* Sun Aug 08 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.1-1
D Haley cc153fc
- Initial package