Name: ogdi Version: 4.1.0 Release: 1 Summary: Open Geographic Datastore Interface License: BSD URL: http://ogdi.sourceforge.net/ Source0: https://github.com/libogdi/ogdi/archive/refs/tags/ogdi_4_1_0.tar.gz Source1: http://ogdi.sourceforge.net/ogdi.pdf Patch0000: ogdi-4.1.0-sailer.patch BuildRequires: gcc unixODBC-devel zlib-devel expat-devel BuildRequires: tcl-devel libtirpc-devel %description OGDI is an open geographic data storage interface. OGDI is an application programming interface (API) that uses standardized access methods in combination with GIS software packages (the application) and various geospatial data products. OGDI uses a client / server architecture to facilitate the dissemination of geospatial data products on any TCP / IP network, and uses a driver-oriented approach to facilitate access to several geospatial data products / formats. %package devel Summary: OGDI header files and documentation Requires: %{name} = %{version}-%{release} Requires: pkgconfig zlib-devel expat-devel proj-devel %description devel OGDI header files and developer's documentation. %package odbc Summary: ODBC driver for OGDI Requires: %{name} = %{version}-%{release} %description odbc ODBC driver for OGDI. %package tcl Summary: TCL wrapper for OGDI Requires: %{name} = %{version}-%{release} %description tcl TCL wrapper for OGDI. %prep %autosetup -p1 -n %{name}-%{name}_4_1_0 cp -p %{SOURCE1} . %build TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET INST_LIB=%{_libdir}/;export INST_LIB export CFG=debug export CFLAGS="$RPM_OPT_FLAGS -DDONT_TD_VOID -DUSE_TERMIO" %configure --with-binconfigs --with-expat \ --with-zlib make make -C ogdi/tcl_interface \ TCL_LINKLIB="-ltcl" make -C contrib/gdal make -C ogdi/attr_driver/odbc \ ODBC_LINKLIB="-lodbc" %install TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET make install INST_INCLUDE=%{buildroot}%{_includedir}/%{name} \ INST_LIB=%{buildroot}%{_libdir} INST_BIN=%{buildroot}%{_bindir} make install -C ogdi/tcl_interface INST_LIB=%{buildroot}%{_libdir} make install -C contrib/gdal INST_LIB=%{buildroot}%{_libdir} make install -C ogdi/attr_driver/odbc INST_LIB=%{buildroot}%{_libdir} rm %{buildroot}%{_bindir}/example? touch -r ogdi-config.in ogdi-config mkdir -p %{buildroot}%{_libdir}/pkgconfig install -p -m 644 ogdi.pc %{buildroot}%{_libdir}/pkgconfig/ install -p -m 755 ogdi-config %{buildroot}%{_bindir}/ogdi-config-64 cat > %{buildroot}%{_bindir}/%{name}-config < - 4.1.0-1 - Upgrade ogdi to 4.1.0 to solve compilation failure. * Wed Mar 04 2020 yangjian - 3.2.1-3 - Package init