[3Depict/f12/master] f12 intial commit

mycae mycae at fedoraproject.org
Thu Oct 7 18:21:34 UTC 2010


commit c00a5c7af9816eb67d273e22edb2612f666625df
Author: builder <builder at localhost.localdomain>
Date:   Sat Sep 25 19:11:27 2010 +0100

     f12 intial commit

 .gitignore                       |    1 +
 3Depict-0.0.2-texture-path.patch |   12 ++++
 3Depict.spec                     |  106 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 4 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..18981d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/3Depict-0.0.2.tar.gz
diff --git a/3Depict-0.0.2-texture-path.patch b/3Depict-0.0.2-texture-path.patch
new file mode 100644
index 0000000..f9d6862
--- /dev/null
+++ b/3Depict-0.0.2-texture-path.patch
@@ -0,0 +1,12 @@
+diff -r 4f6cd3300e33 src/basics.h
+--- src/basics.h	Tue Sep 21 22:48:50 2010 +0100
++++ src/basics.h	Tue Sep 21 22:49:52 2010 +0100
+@@ -106,7 +106,7 @@
+ 
+ 	//Mac
+ 	//	- Look in cwd
+-	return std::string(name);
++	return std::string("/usr/share/3Depict/") + std::string(name);
+ }
+ 
+ template<class T1, class T2>
diff --git a/3Depict.spec b/3Depict.spec
new file mode 100644
index 0000000..e8812cf
--- /dev/null
+++ b/3Depict.spec
@@ -0,0 +1,106 @@
+Name:		3Depict
+Version:	0.0.2
+Release:	3%{?dist}
+Summary:	Valued 3D point cloud visualization and analysis
+Group:		Applications/Engineering
+
+
+License:	GPLv3+
+URL:		http://threedepict.sourceforge.net
+Source0:	http://downloads.sourceforge.net/threedepict/%{name}-%{version}.tar.gz
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#Fedora specific texture path install location
+Patch0:	%{name}-%{version}-texture-path.patch
+
+#Mathgl for plotting
+BuildRequires:	mathgl-devel 
+#Mesa for GLU
+BuildRequires:	libGL-devel 
+#Libxml2 for file parsing
+BuildRequires:	libxml2-devel 
+#FTGL for 3d fonts
+BuildRequires:	ftgl-devel 
+#libpng for textures
+BuildRequires: libpng-devel
+#Desktop file utils for installing desktop file
+BuildRequires: desktop-file-utils
+#WX widgets
+BuildRequires: wxGTK-devel
+#PDF latex build
+BuildRequires: tex(latex)
+
+
+%description
+This program is designed to help users visualize and analyze 3D point clouds
+with an associated real value, in a fast and flexible fashion. It is 
+specifically targeted to atom probe tomography applications, but may be 
+useful for general scalar valued point data purposes.
+
+%prep
+%setup -q 
+%patch0
+
+%build
+#enable parallel build
+export CFLAGS="$CFLAGS %{optflags} -fopenmp" 
+export CXXFLAGS+="$CXXFLAGS %{optflags} -fopenmp -DGLIBCXX_PARALLEL"
+%configure 
+make %{?_smp_mflags}
+
+pushd docs/manual-latex
+pdflatex manual.tex
+popd
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# Install the textures
+mkdir -p %{buildroot}%{_datadir}/%{name}/textures
+cp -p src/textures/* %{buildroot}%{_datadir}/%{name}/textures
+
+
+#Install the manpage
+install -Dp -m 644 packaging/manpage/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+
+desktop-file-install \
+		--dir %{buildroot}%{_datadir}/applications \
+		packaging/%{name}.desktop
+mkdir -p %{buildroot}%{_datadir}/pixmaps/
+install -Dp -m 644 src/tex-source/3Depict-icon.svg %{buildroot}%{_datadir}/pixmaps/3Depict.svg
+
+#Move the documentation such that it is picked up by the doc macro
+mv docs/manual-latex/manual.pdf %{name}-%{version}-manual.pdf
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS ChangeLog README TODO %{name}-%{version}-manual.pdf
+%{_bindir}/%{name}
+%dir %{_datadir}/%{name}/
+%dir %{_datadir}/%{name}/textures
+%{_datadir}/%{name}/textures/*.png
+%{_datadir}/applications/%{name}.desktop
+%{_mandir}/man1/%{name}.1.*
+%{_datadir}/pixmaps/*.svg
+
+
+%changelog
+* Tue Oct 5 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-3
+- Use tex(latex) virtual package in preference to texlive-latex
+
+* Mon Oct 4 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-2
+- Add latex build for manual
+
+* Sat Sep 25 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-1
+- Update to 0.0.2
+- Address comments in package review 
+
+* Sat Aug 08 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b2fdce2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+49cb2a46bafcc8afa13889490f341963  3Depict-0.0.2.tar.gz


More information about the scm-commits mailing list