[mathgl/f13/master] * Update to 1.11.0.1

mycae mycae at fedoraproject.org
Sun Nov 28 00:52:50 UTC 2010


commit 6dec5041eb0dee142278f35c181a92d847ea18b3
Author: D Haley <mycae at yahoo.com>
Date:   Sun Nov 28 00:52:28 2010 +0000

    * Update to 1.11.0.1

 mathgl-examples-ldflags.patch |   34 ----------------------------------
 mathgl-hdf4-datatype.patch    |   18 ++++++++++++++++++
 mathgl-io.patch               |   33 ---------------------------------
 mathgl-mglview-ldflags.patch  |   14 --------------
 mathgl-no-mglwx.patch         |   17 -----------------
 mathgl-novfm-fonts.patch      |   11 -----------
 mathgl-png.patch              |   11 -----------
 mathgl.spec                   |   38 +++++++++++++++++---------------------
 8 files changed, 35 insertions(+), 141 deletions(-)
---
diff --git a/mathgl-hdf4-datatype.patch b/mathgl-hdf4-datatype.patch
new file mode 100644
index 0000000..836f460
--- /dev/null
+++ b/mathgl-hdf4-datatype.patch
@@ -0,0 +1,18 @@
+--- mgl/mgl_data_io.cpp	2010-11-16 13:02:05.000000000 +0000
++++ mgl/mgl_data_io.cpp.new	2010-11-26 23:40:52.821155381 +0000
+@@ -914,13 +914,13 @@
+ void mglData::ReadHDF4(const char *fname,const char *data)
+ {
+ #ifdef HAVE_HDF4
+-	int sd = SDstart(fname,DFACC_READ), nn, i;
++	int32 sd = SDstart(fname,DFACC_READ), nn, i;
+ 	if(sd==-1)	return;	// is not a HDF4 file
+ 	char name[64];
+ 	SDfileinfo(sd,&nn,&i);
+ 	for(i=0;i<nn;i++)
+ 	{
+-		int sds, rank, dims[32], type, attr, in[2]={0,0};
++		int32 sds, rank, dims[32], type, attr, in[2]={0,0};
+ 		sds = SDselect(sd,i);
+ 		SDgetinfo(sds,name,&rank,dims,&type,&attr);
+ 		if(!strcmp(name,data))	// as I understand there are possible many datas with the same name
diff --git a/mathgl.spec b/mathgl.spec
index dc41dda..8508064 100644
--- a/mathgl.spec
+++ b/mathgl.spec
@@ -1,7 +1,7 @@
 %{!?octave_api:%global octave_api %(octave-config -p API_VERSION || echo 0)}
 Name: mathgl
-Version: 1.10.2.1
-Release: 3%{?dist}
+Version: 1.11.0.1
+Release: 1%{?dist}
 Summary: Cross-platform library for making high-quality scientific graphics
 Summary(ru): MathGL - это библиотека для осуществления высококачественной визуализации данных
 License: GPLv2+
@@ -11,13 +11,8 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
 
 #Uncomment mathgl dif listing (fix warning) also from pts
 Patch0: %{name}-info.patch
-#Remove empty libmgl-wx from compilation
-Patch1: %{name}-no-mglwx.patch
-#Fix DSO linking in mglview util  & examples (linker flags) (2 and 3 reseectively)
-Patch2: %{name}-mglview-ldflags.patch
-Patch3: %{name}-examples-ldflags.patch
-#Remove missing file from install.
-Patch4: %{name}-novfm-fonts.patch
+#Datatype conversion (int->int32) on x86 in hdf4 read func
+Patch1: %{name}-hdf4-datatype.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -26,7 +21,7 @@ BuildRequires: gsl-devel libpng-devel libtool-ltdl-devel libtool
 BuildRequires: swig 
 
 # optional packages
-BuildRequires: freeglut-devel hdf5-devel libjpeg-devel libtiff-devel fltk-devel qt4-devel
+BuildRequires: freeglut-devel hdf-devel hdf5-devel libjpeg-devel libtiff-devel fltk-devel qt4-devel
 BuildRequires: wxGTK-devel giflib-devel octave-devel
 
 #For autoreconf (required for patches, libtool)
@@ -85,11 +80,7 @@ done
 
 %patch0
 %patch1
-%patch2
-%patch3
-%patch4
 
-autoreconf
 
 
 %build
@@ -98,6 +89,7 @@ QMAKE=/usr/bin/qmake-qt4
 LUPDATE=/usr/bin/lupdate-qt4
 LRELEASE=/usr/bin/lrelease-qt4
 
+export LDFLAGS="-L/usr/lib64/hdf/ -L/usr/lib/hdf"
 %configure	--disable-static \
 		--enable-shared \
 		--enable-all --enable-octave --disable-rpath
@@ -137,16 +129,16 @@ echo "pkg load mathgl" > %{name}/PKG_ADD
 echo "mathgl;" >> %{name}/PKG_ADD
 
 #fix wrong version number in description
-sed -i 's/1.9/1.10.1/'  %{name}/DESCRIPTION 
+sed -i 's/1.9/1.11.0.1/'  %{name}/DESCRIPTION 
 
 #We cannot use version macro with octave package search,
 # as pkg.m assumes a x.y.z format for packages. Failing
 # to do this renders the plugin inoperable
-cp -pR %{name}/inst/* $RPM_BUILD_ROOT/%{_prefix}/libexec/octave/packages/%{name}-1.10.1/
+cp -pR %{name}/inst/* $RPM_BUILD_ROOT/%{_prefix}/libexec/octave/packages/%{name}-1.11.0/
 
 #packinfo dir is required, or octave will not find the dir in recursive search
-mkdir -p $RPM_BUILD_ROOT/%{_datadir}/octave/packages/%{name}-1.10.1/packinfo
-cp -p %{name}/[A-Z]* $RPM_BUILD_ROOT/%{_datadir}/octave/packages/%{name}-1.10.1/packinfo
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/octave/packages/%{name}-1.11.0/packinfo
+cp -p %{name}/[A-Z]* $RPM_BUILD_ROOT/%{_datadir}/octave/packages/%{name}-1.11.0/packinfo
 
 popd
 
@@ -157,7 +149,6 @@ pushd .
 mkdir -p  texinfo/docs
 cd texinfo/docs/
 cp -pr ../mathgl_en.html .
-cp -pr ../png_static .
 cp -pr ../png/ .
 
 #remove zero length faux PNG file
@@ -179,6 +170,8 @@ do
 	mv $i `echo $i | sed s/mathgl_en/mathgl/`
 done
 
+rm mgl_*.info*
+
 popd
 
 %post 
@@ -205,8 +198,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/*.so.*
 %{_bindir}/mgl*
 %{_datadir}/%{name}/
-%{_prefix}/libexec/octave/packages/%{name}-1.10.1/
-%{_datadir}/octave/packages/%{name}-1.10.1/
+%{_prefix}/libexec/octave/packages/%{name}-1.11.0/
+%{_datadir}/octave/packages/%{name}-1.11.0/
 %{_infodir}/%{name}.*.gz
 %{_infodir}/%{name}_ru.*.gz
 
@@ -221,6 +214,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc texinfo/docs/*
 
 %changelog
+* Sat Nov 27 2010 <mycae(a!t)yahoo.com> - 1.11.0.1-1
+- Update to 1.11.0.1
+
 * Sun Aug 08 2010 <mycae(a!t)yahoo.com> - 1.10.2.1-3
 - Add gsl-devel to requires
 


More information about the scm-commits mailing list