diff --git a/3Depict-0.0.10-font-path.patch b/3Depict-0.0.10-font-path.patch new file mode 100644 index 0000000..70252ee --- /dev/null +++ b/3Depict-0.0.10-font-path.patch @@ -0,0 +1,11 @@ +diff -r dfc04b8b14b2 src/wxcomponents.cpp +--- src/wxcomponents.cpp Fri May 20 22:26:38 2011 +0100 ++++ src/wxcomponents.cpp Fri May 20 22:27:00 2011 +0100 +@@ -666,6 +666,7 @@ + //This is a list of possible target dirs to search + //(Oh look Ma, I'm autoconf!) + const char *dirs[] = { ".", ++ "/usr/share/fonts/dejavu", //Fedora + "/usr/share/fonts/truetype", + "/usr/local/share/fonts/truetype", + "/usr/X11R6/lib/X11/fonts/truetype", diff --git a/3Depict-0.0.10-manual-pdf-loc.patch b/3Depict-0.0.10-manual-pdf-loc.patch new file mode 100644 index 0000000..a819a9c --- /dev/null +++ b/3Depict-0.0.10-manual-pdf-loc.patch @@ -0,0 +1,16 @@ +diff -r 634db475333f src/3Depict.cpp +--- src/3Depict.cpp Sun Oct 23 17:43:37 2011 +0100 ++++ src/3Depict.cpp Sun Oct 23 17:44:33 2011 +0100 +@@ -2142,9 +2142,9 @@ + string s; + s=locateDataFile("3Depict-manual.pdf"); + +- //Also Debian makes us use the lowercase "D", so check there too. +- if(!s.size()) +- s=locateDataFile("3depict-manual.pdf"); ++ //Also Fedora has diff dir ++ if(!wxFileExists(wxStr(s))) ++ s="/usr/share/doc/3Depict-0.0.8/3Depict-0.0.8-manual.pdf"; + + + //If we found it, use the default program associated with that data file diff --git a/3Depict-0.0.10-png-gray.patch b/3Depict-0.0.10-png-gray.patch new file mode 100644 index 0000000..5c0e793 --- /dev/null +++ b/3Depict-0.0.10-png-gray.patch @@ -0,0 +1,15 @@ +diff -r src/pngread.c src/pngread.c +--- src/pngread.c ++++ src/pngread.c +@@ -132,11 +132,7 @@ int read_png(FILE *fp, unsigned int sig_read, png_bytep **row_pointers, + /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ + if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +-#if defined(__APPLE__) || defined(__WIN32) || defined(__WIN64) + png_set_expand_gray_1_2_4_to_8(png_ptr); +-#else +- png_set_gray_1_2_4_to_8(png_ptr); +-#endif + } + + /* Expand paletted or RGB images with transparency to full alpha for RGBA */ diff --git a/3Depict-0.0.9-font-path.patch b/3Depict-0.0.9-font-path.patch deleted file mode 100644 index 70252ee..0000000 --- a/3Depict-0.0.9-font-path.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -r dfc04b8b14b2 src/wxcomponents.cpp ---- src/wxcomponents.cpp Fri May 20 22:26:38 2011 +0100 -+++ src/wxcomponents.cpp Fri May 20 22:27:00 2011 +0100 -@@ -666,6 +666,7 @@ - //This is a list of possible target dirs to search - //(Oh look Ma, I'm autoconf!) - const char *dirs[] = { ".", -+ "/usr/share/fonts/dejavu", //Fedora - "/usr/share/fonts/truetype", - "/usr/local/share/fonts/truetype", - "/usr/X11R6/lib/X11/fonts/truetype", diff --git a/3Depict-0.0.9-manual-pdf-loc.patch b/3Depict-0.0.9-manual-pdf-loc.patch deleted file mode 100644 index a819a9c..0000000 --- a/3Depict-0.0.9-manual-pdf-loc.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -r 634db475333f src/3Depict.cpp ---- src/3Depict.cpp Sun Oct 23 17:43:37 2011 +0100 -+++ src/3Depict.cpp Sun Oct 23 17:44:33 2011 +0100 -@@ -2142,9 +2142,9 @@ - string s; - s=locateDataFile("3Depict-manual.pdf"); - -- //Also Debian makes us use the lowercase "D", so check there too. -- if(!s.size()) -- s=locateDataFile("3depict-manual.pdf"); -+ //Also Fedora has diff dir -+ if(!wxFileExists(wxStr(s))) -+ s="/usr/share/doc/3Depict-0.0.8/3Depict-0.0.8-manual.pdf"; - - - //If we found it, use the default program associated with that data file diff --git a/3Depict-0.0.9-png-gray.patch b/3Depict-0.0.9-png-gray.patch deleted file mode 100644 index 5c0e793..0000000 --- a/3Depict-0.0.9-png-gray.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -r src/pngread.c src/pngread.c ---- src/pngread.c -+++ src/pngread.c -@@ -132,11 +132,7 @@ int read_png(FILE *fp, unsigned int sig_read, png_bytep **row_pointers, - /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ - if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - { --#if defined(__APPLE__) || defined(__WIN32) || defined(__WIN64) - png_set_expand_gray_1_2_4_to_8(png_ptr); --#else -- png_set_gray_1_2_4_to_8(png_ptr); --#endif - } - - /* Expand paletted or RGB images with transparency to full alpha for RGBA */ diff --git a/3Depict.spec b/3Depict.spec index fac06d3..7ab11dc 100644 --- a/3Depict.spec +++ b/3Depict.spec @@ -1,5 +1,5 @@ Name: 3Depict -Version: 0.0.9 +Version: 0.0.10 Release: 1%{?dist} Summary: Valued 3D point cloud visualization and analysis Group: Applications/Engineering @@ -33,14 +33,14 @@ BuildRequires: tex(latex) BuildRequires: qhull-devel #Fedora specific PDF dir. -Patch0: %{name}-0.0.9-manual-pdf-loc.patch +Patch0: %{name}-%{version}-manual-pdf-loc.patch #Fedora specific font dir -Patch1: %{name}-0.0.9-font-path.patch -#Patch for libpng 1.4.0 removing png_set_gray_1_2_4_to_8 -#libpng.sourceforge.net/ANNOUNCE-1.4.0.txt -Patch2: %{name}-0.0.9-png-gray.patch +Patch1: %{name}-%{version}-font-path.patch +#libpng API change patch +Patch2: %{name}-%{version}-png-gray.patch + %description -This program is designed to help users visualize and analyze 3D point clouds +This software 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. @@ -53,12 +53,7 @@ useful for general scalar valued point data purposes. %patch1 %patch2 -#Fix permissions erorrs in tarball -chmod a-x src/*.cpp src/*.h - %build -#export CFLAGS="$RPM_OPT_FLAGS -fopenmp" -#export CXXFLAGS="$RPM_OPT_FLAGS -fopenmp" %configure --disable-debug-checks --enable-openmp-parallel make %{?_smp_mflags} @@ -124,8 +119,20 @@ rm -rf %{buildroot} %changelog -* Tue Dec 06 2011 Adam Jackson - 0.0.9-1 -- Rebuild for new libpng +* Sun Apr 1 2012 D Haley - 0.0.10-1 +- Update to 0.0.10 + +* Tue Feb 28 2012 Fedora Release Engineering - 0.0.9-4 +- Rebuilt for c++ ABI breakage + +* Thu Jan 12 2012 D Haley - 0.0.9-3 +- Patch to fix FTFBS for gcc 4.7 + +* Thu Jan 12 2012 Fedora Release Engineering - 0.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Dec 20 2011 D Haley - 0.0.9-1 +- Update to 0.0.9 * Tue Dec 06 2011 Adam Jackson - 0.0.8-3 - Rebuild for new libpng diff --git a/sources b/sources index 2959acd..9fbd835 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9be57d2690cfe81398362f371fc681e3 3Depict-0.0.9.tar.gz +f9d433f04ddadb2f2d0cc5330b2b2790 3Depict-0.0.10.tar.gz