|
builder |
b103e80 |
Name: 3Depict
|
|
mycae |
9a53466 |
Version: 0.0.7
|
|
mycae |
1d74cb7 |
Release: 1%{?dist}
|
|
builder |
b103e80 |
Summary: Valued 3D point cloud visualization and analysis
|
|
builder |
b103e80 |
Group: Applications/Engineering
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
License: GPLv3+
|
|
builder |
b103e80 |
URL: http://threedepict.sourceforge.net
|
|
builder |
b103e80 |
Source0: http://downloads.sourceforge.net/threedepict/%{name}-%{version}.tar.gz
|
|
builder |
b103e80 |
|
|
mycae |
9a53466 |
|
|
builder |
b103e80 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
#Mathgl for plotting
|
|
builder |
b103e80 |
BuildRequires: mathgl-devel
|
|
builder |
b103e80 |
#Mesa for GLU
|
|
builder |
b103e80 |
BuildRequires: libGL-devel
|
|
builder |
b103e80 |
#Libxml2 for file parsing
|
|
builder |
b103e80 |
BuildRequires: libxml2-devel
|
|
builder |
b103e80 |
#FTGL for 3d fonts
|
|
builder |
b103e80 |
BuildRequires: ftgl-devel
|
|
builder |
b103e80 |
#libpng for textures
|
|
builder |
b103e80 |
BuildRequires: libpng-devel
|
|
builder |
b103e80 |
#Desktop file utils for installing desktop file
|
|
builder |
b103e80 |
BuildRequires: desktop-file-utils
|
|
builder |
b103e80 |
#WX widgets
|
|
builder |
b103e80 |
BuildRequires: wxGTK-devel
|
|
builder |
b103e80 |
#PDF latex build
|
|
builder |
b103e80 |
BuildRequires: tex(latex)
|
|
builder |
b103e80 |
|
|
mycae |
2d85f41 |
#Required for surface removal algorithms
|
|
mycae |
2d85f41 |
BuildRequires: qhull-devel
|
|
mycae |
2d85f41 |
|
|
mycae |
1d74cb7 |
#Fedora specific PDF dir.
|
|
mycae |
9a53466 |
Patch0: %{name}-0.0.6-manual-pdf-loc.patch
|
|
mycae |
963d78d |
#Fedora specific font dir
|
|
mycae |
9a53466 |
Patch1: %{name}-0.0.6-font-path.patch
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
#Fix for density plot mishandling in program (upstream)
|
|
mycae |
9a53466 |
Patch2: %{name}-density-fix.patch
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
#Fix for refresh tree blockmask mishandle (upstream)
|
|
mycae |
9a53466 |
Patch3: %{name}-blockmask-fix.patch
|
|
builder |
b103e80 |
|
|
mycae |
9a53466 |
#Fix for wrong icon
|
|
mycae |
9a53466 |
Patch4: %{name}-wrong-icon.patch
|
|
builder |
b103e80 |
%description
|
|
builder |
b103e80 |
This program is designed to help users visualize and analyze 3D point clouds
|
|
builder |
b103e80 |
with an associated real value, in a fast and flexible fashion. It is
|
|
builder |
b103e80 |
specifically targeted to atom probe tomography applications, but may be
|
|
builder |
b103e80 |
useful for general scalar valued point data purposes.
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
%prep
|
|
mycae |
1d74cb7 |
|
|
builder |
b103e80 |
%setup -q
|
|
mycae |
1d74cb7 |
|
|
builder |
b103e80 |
%patch0
|
|
mycae |
91c0023 |
%patch1
|
|
mycae |
9a53466 |
%patch2
|
|
mycae |
9a53466 |
%patch3
|
|
mycae |
9a53466 |
%patch4
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
%build
|
|
mycae |
e424633 |
#--enable-openmp-parallel does not work -- there is a bug in the
|
|
mycae |
e424633 |
# tr1 headers with -D_GLIBCXX_PARALLEL . Lets drop that and only use
|
|
mycae |
e424633 |
# -fopenmp
|
|
mycae |
54b90f3 |
export CFLAGS="$RPM_OPT_FLAGS -fopenmp"
|
|
mycae |
54b90f3 |
export CXXFLAGS="$RPM_OPT_FLAGS -fopenmp"
|
|
mycae |
1d74cb7 |
%configure --disable-debug-checks
|
|
builder |
b103e80 |
make %{?_smp_mflags}
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
pushd docs/manual-latex
|
|
builder |
b103e80 |
pdflatex manual.tex
|
|
mycae |
1d74cb7 |
bibtex manual
|
|
mycae |
1d74cb7 |
pdflatex manual.tex
|
|
builder |
b103e80 |
popd
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
%install
|
|
builder |
b103e80 |
rm -rf %{buildroot}
|
|
builder |
b103e80 |
make install DESTDIR=%{buildroot}
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
# Install the textures
|
|
builder |
b103e80 |
mkdir -p %{buildroot}%{_datadir}/%{name}/textures
|
|
builder |
b103e80 |
cp -p src/textures/* %{buildroot}%{_datadir}/%{name}/textures
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
#Install the manpage
|
|
builder |
b103e80 |
install -Dp -m 644 packaging/manpage/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
desktop-file-install \
|
|
builder |
b103e80 |
--dir %{buildroot}%{_datadir}/applications \
|
|
builder |
b103e80 |
packaging/%{name}.desktop
|
|
builder |
b103e80 |
mkdir -p %{buildroot}%{_datadir}/pixmaps/
|
|
mycae |
9a53466 |
install -Dp -m 644 src/tex-source/%{name}-icon.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
#install language files
|
|
mycae |
9a53466 |
#--
|
|
mycae |
9a53466 |
#Remap locale names
|
|
mycae |
9a53466 |
mv locales/de_DE/ locales/de/
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
mkdir -p %{buildroot}/%{_datadir}/locale/
|
|
mycae |
9a53466 |
cp -R locales/* %{buildroot}/%{_datadir}/locale/
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
#Restore the internal build's locale namign
|
|
mycae |
9a53466 |
mv locales/de/ locales/de_DE/
|
|
mycae |
9a53466 |
#--
|
|
mycae |
9a53466 |
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
#Move the documentation such that it is picked up by the doc macro
|
|
builder |
b103e80 |
mv docs/manual-latex/manual.pdf %{name}-%{version}-manual.pdf
|
|
builder |
b103e80 |
|
|
mycae |
9a53466 |
#Locale stuff
|
|
mycae |
9a53466 |
%find_lang %{name}
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
|
|
builder |
b103e80 |
%clean
|
|
builder |
b103e80 |
rm -rf %{buildroot}
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
|
|
mycae |
9a53466 |
%files -f %{name}.lang
|
|
builder |
b103e80 |
%defattr(-,root,root,-)
|
|
builder |
b103e80 |
%doc COPYING AUTHORS ChangeLog README TODO %{name}-%{version}-manual.pdf
|
|
builder |
b103e80 |
%{_bindir}/%{name}
|
|
builder |
b103e80 |
%dir %{_datadir}/%{name}/
|
|
builder |
b103e80 |
%dir %{_datadir}/%{name}/textures
|
|
builder |
b103e80 |
%{_datadir}/%{name}/textures/*.png
|
|
builder |
b103e80 |
%{_datadir}/applications/%{name}.desktop
|
|
builder |
b103e80 |
%{_mandir}/man1/%{name}.1.*
|
|
builder |
b103e80 |
%{_datadir}/pixmaps/*.svg
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
%changelog
|
|
mycae |
9a53466 |
* Sun Aug 14 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.7-1
|
|
mycae |
9a53466 |
- Update to 0.0.7
|
|
mycae |
9a53466 |
|
|
mycae |
9a53466 |
* Sun May 20 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.6-1
|
|
mycae |
963d78d |
- Update to 0.0.6
|
|
mycae |
963d78d |
|
|
mycae |
1d74cb7 |
* Mon Mar 27 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.5-1
|
|
mycae |
1d74cb7 |
- New upstream release
|
|
mycae |
1d74cb7 |
|
|
mycae |
91c0023 |
* Sat Mar 13 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-3
|
|
mycae |
91c0023 |
- Patch opengl startup code -- peek at gl context. Possible fix for bug 684390
|
|
mycae |
91c0023 |
|
|
mycae |
54b90f3 |
* Sat Feb 12 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-2
|
|
mycae |
54b90f3 |
- Fix bug 677016 - 3Depict no built with rpm opt flags
|
|
mycae |
54b90f3 |
|
|
mycae |
e424633 |
* Sat Jan 22 2011 D Haley <mycae(a!t)yahoo.com> - 0.0.4-1
|
|
mycae |
e424633 |
- Update to 0.0.4
|
|
mycae |
e424633 |
|
|
mycae |
2d85f41 |
* Fri Nov 26 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.3-1
|
|
mycae |
2d85f41 |
- Update to 0.0.3
|
|
mycae |
2d85f41 |
|
|
builder |
b103e80 |
* Tue Oct 5 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-3
|
|
builder |
b103e80 |
- Use tex(latex) virtual package in preference to texlive-latex
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
* Mon Oct 4 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-2
|
|
builder |
b103e80 |
- Add latex build for manual
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
* Sat Sep 25 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-1
|
|
builder |
b103e80 |
- Update to 0.0.2
|
|
builder |
b103e80 |
- Address comments in package review
|
|
builder |
b103e80 |
|
|
builder |
b103e80 |
* Sat Aug 08 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.1-1
|
|
builder |
b103e80 |
- Initial package
|