[packages/ogdi] - up to 4.1.1

baggins baggins at pld-linux.org
Fri Dec 6 10:55:08 CET 2024


commit 4deee7a11df1a2ed3985a2aa9016619ab68357e8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 6 09:47:56 2024 +0100

    - up to 4.1.1
    
    Fix headers location to match what pkgconfig says.

 nullptr.patch | 22 ++++++++++++++++++++++
 ogdi.spec     | 38 ++++++++------------------------------
 2 files changed, 30 insertions(+), 30 deletions(-)
---
diff --git a/ogdi.spec b/ogdi.spec
index 7bb7604..fde525b 100644
--- a/ogdi.spec
+++ b/ogdi.spec
@@ -2,21 +2,21 @@
 #
 # Conditional build:
 %bcond_without	tcl	# disable gui and nviz
-%bcond_without	odbc	# disable unixODBC support
 #
 Summary:	Open Geographic Datastore Interface
 Summary(pl.UTF-8):	OGDI - otwarty interfejs do danych geograficznych
 Name:		ogdi
-Version:	4.1.0
+Version:	4.1.1
 %define	tagver	%(echo %{version} | tr . _)
 Release:	1
 License:	BSD-like
 Group:		Applications/Databases
 #Source0Download: https://github.com/libogdi/ogdi/releases/
 Source0:	https://github.com/libogdi/ogdi/releases/download/ogdi_%{tagver}/%{name}-%{version}.tar.gz
-# Source0-md5:	0e6259d55694f90b2099bbd901bdb161
+# Source0-md5:	af4e307565ef0cd846fd75927dea4d8b
 Source1:	http://ogdi.sourceforge.net/ogdi.pdf
 # Source1-md5:	029a8cdcd36bee73df92196ee769040e
+Patch0:		nullptr.patch
 Patch1:		%{name}-format.patch
 URL:		http://ogdi.sourceforge.net/
 BuildRequires:	autoconf
@@ -26,6 +26,7 @@ BuildRequires:	rpmbuild(macros) >= 1.446
 %{?with_tcl:BuildRequires:	tcl-devel}
 %{?with_odbc:BuildRequires:	unixODBC-devel}
 BuildRequires:	zlib-devel
+Obsoletes:	ogdi-odbc < 4.1.1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -60,18 +61,6 @@ OGDI header files and developer's documentation.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe i dokumentacja programisty do OGDI.
 
-%package odbc
-Summary:	ODBC driver for OGDI
-Summary(pl.UTF-8):	Sterownik ODBC do OGDI
-Group:		Libraries
-Requires:	%{name} = %{version}-%{release}
-
-%description odbc
-ODBC driver for OGDI.
-
-%description odbc -l pl.UTF-8
-Sterownik ODBC do OGDI.
-
 %package -n tcl-ogdi
 Summary:	Tcl wrapper for OGDI
 Summary(pl.UTF-8):	Interfejs Tcl do OGDI
@@ -86,7 +75,8 @@ Interfejs Tcl do OGDI.
 
 %prep
 %setup -q
-%patch1 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
 
 cp -f %{SOURCE1} .
 
@@ -109,11 +99,6 @@ TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
 %endif
 %{__make} -j 1 -C contrib/gdal \
 	OPTIMIZATION="%{rpmcflags}"
-%if %{with odbc}
-%{__make} -j 1 -C ogdi/attr_driver/odbc \
-	OPTIMIZATION="%{rpmcflags} -DDONT_TD_VOID" \
-	ODBC_LINKLIB="-lodbc"
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -122,7 +107,7 @@ TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
 
 %{__make} -j 1 install \
 	SHELL=/bin/bash \
-	INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
+	INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir}/%{name} \
 	INST_LIB=$RPM_BUILD_ROOT%{_libdir} \
 	INST_BIN=$RPM_BUILD_ROOT%{_bindir}
 
@@ -170,16 +155,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc ogdi.pdf
 %attr(755,root,root) %{_bindir}/ogdi-config
 %attr(755,root,root) %{_libdir}/libogdi.so
-%{_includedir}/ecs.h
-%{_includedir}/ecs_util.h
+%{_includedir}/ogdi
 %{_pkgconfigdir}/ogdi.pc
 
-%if %{with odbc}
-%files odbc
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
-%endif
-
 %if %{with tcl}
 %files -n tcl-ogdi
 %defattr(644,root,root,755)
diff --git a/nullptr.patch b/nullptr.patch
new file mode 100644
index 0000000..fbdb596
--- /dev/null
+++ b/nullptr.patch
@@ -0,0 +1,22 @@
+--- a/ogdi/driver/vrf/feature.c.sailer	2007-05-09 22:46:28.000000000 +0200
++++ b/ogdi/driver/vrf/feature.c	2017-07-13 21:01:57.790235052 +0200
+@@ -1385,7 +1385,8 @@
+ 	  return NULL;
+ 	}
+ 	strcat(returnString,"{ ");
+-	strcat(returnString,ptr1);
++	if (ptr1)
++	  strcat(returnString,ptr1);
+ 	strcat(returnString," } ");
+ 	free(ptr1);
+       }    
+@@ -1414,7 +1415,8 @@
+ 	  return NULL;
+ 	}
+ 	strcat(returnString,"{ ");
+-	strcat(returnString,ptr1);
++	if (ptr1)
++	  strcat(returnString,ptr1);
+ 	strcat(returnString," } ");
+ 	free(ptr1);
+       }    
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ogdi.git/commitdiff/4deee7a11df1a2ed3985a2aa9016619ab68357e8



More information about the pld-cvs-commit mailing list