- Fix "invalid lvalue in assignment" for GCC4.

epel9
Michael Schwendt 20 years ago
parent f4a01c037c
commit 42782479af

@ -0,0 +1,12 @@
diff -Nur shapelib-1.2.10-orig/contrib/shpgeo.c shapelib-1.2.10/contrib/shpgeo.c
--- shapelib-1.2.10-orig/contrib/shpgeo.c 2003-04-07 15:03:22.000000000 +0200
+++ shapelib-1.2.10/contrib/shpgeo.c 2005-04-11 20:41:37.000000000 +0200
@@ -543,7 +543,7 @@
nextring = 0;
cParts=0;
while ( nextring >= 0 ) {
- (SHPObject*) ppsC[cParts] = SHPUnCompound ( psCShape, &nextring );
+ ppsC[cParts] = SHPUnCompound ( psCShape, &nextring );
cParts++;
}

@ -2,12 +2,12 @@
Summary: API in "C" for Shapefile handling Summary: API in "C" for Shapefile handling
Name: shapelib Name: shapelib
Version: 1.2.10 Version: 1.2.10
Release: 7 Release: 8
URL: http://shapelib.maptools.org/ URL: http://shapelib.maptools.org/
Source: http://shapelib.maptools.org/dl/shapelib-%{version}.tar.gz Source: http://shapelib.maptools.org/dl/shapelib-%{version}.tar.gz
Patch0: shapelib-%{version}.patch Patch0: shapelib-%{version}.patch
Patch1: shapelib-1.2.10-endian.patch Patch1: shapelib-1.2.10-endian.patch
Patch2: shapelib-1.2.10-gcc4.patch
License: LGPL/MIT License: LGPL/MIT
Group: Development/Libraries Group: Development/Libraries
Buildrequires: libtool Buildrequires: libtool
@ -32,6 +32,7 @@ This package contains libshp and the appropriate header files.
%setup -q -T -b 0 %setup -q -T -b 0
%patch -p1 -b .buildroot %patch -p1 -b .buildroot
%patch1 -p1 -b .endian %patch1 -p1 -b .endian
%patch2 -p1 -b .gcc4
%build %build
make %{?_smp_mflags} libdir=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" lib make %{?_smp_mflags} libdir=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" lib
@ -72,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_libdir}/libshp.la %exclude %{_libdir}/libshp.la
%changelog %changelog
* Mon Apr 11 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.10-8
- Fix "invalid lvalue in assignment" for GCC4.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt - rebuilt

Loading…
Cancel
Save