commit eea9884dbb3ec3227031093b66f3c8d7cee373bf Author: MSVSphere Packaging Team Date: Wed Jan 10 01:50:27 2024 +0300 import ogdi-4.1.0-7.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..095b862 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/ogdi.pdf +SOURCES/ogdi_4_1_0.tar.gz diff --git a/.ogdi.metadata b/.ogdi.metadata new file mode 100644 index 0000000..41b1eab --- /dev/null +++ b/.ogdi.metadata @@ -0,0 +1,2 @@ +d46fd5c597a414e61595c7facdc8eccd44b7412a SOURCES/ogdi.pdf +d5b1313e16ccf504d5195266bf31ad5751d17529 SOURCES/ogdi_4_1_0.tar.gz diff --git a/SOURCES/ogdi-4.1.0-sailer.patch b/SOURCES/ogdi-4.1.0-sailer.patch new file mode 100644 index 0000000..0bdd75b --- /dev/null +++ b/SOURCES/ogdi-4.1.0-sailer.patch @@ -0,0 +1,33 @@ +--- a/contrib/gdal/gdalbridge.c.orig 2017-07-13 20:51:22.011367003 +0200 ++++ b/contrib/gdal/gdalbridge.c 2017-07-13 20:52:07.545483445 +0200 +@@ -124,7 +124,7 @@ + + if( pfnTest == NULL ) + { +- sprintf( szPath, papszSOFilenames[iSOFile] ); ++ strcpy( szPath, papszSOFilenames[iSOFile] ); + pfnTest = GBGetSymbol( szPath, "GDALOpen" ); + } + } +--- 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); + } diff --git a/SPECS/ogdi.spec b/SPECS/ogdi.spec new file mode 100644 index 0000000..a2c08a3 --- /dev/null +++ b/SPECS/ogdi.spec @@ -0,0 +1,199 @@ +%global gittag 4_1_0 + +Name: ogdi +Version: 4.1.0 +Release: 7%{?dist} +Summary: Open Geographic Datastore Interface +License: BSD +URL: http://ogdi.sourceforge.net/ +# new project location is https://github.com/libogdi/ogdi +Source0: https://github.com/libogdi/ogdi/archive/%{name}_%{gittag}.tar.gz +Source1: http://ogdi.sourceforge.net/ogdi.pdf +# https://bugzilla.redhat.com/show_bug.cgi?id=1470896 +Patch0: ogdi-%{version}-sailer.patch + +BuildRequires: make +BuildRequires: gcc +BuildRequires: unixODBC-devel +BuildRequires: zlib-devel +BuildRequires: expat-devel +BuildRequires: tcl-devel +BuildRequires: libtirpc-devel + +%description +OGDI is the Open Geographic Datastore Interface. OGDI is an +application programming interface (API) that uses a standardized +access methods to work in conjunction 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 over any TCP/IP network, and 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 +Requires: zlib-devel expat-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}_%{gittag} + +# include documentation +%{__cp} -p %{SOURCE1} . + + +%build +TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET +INST_LIB=%{_libdir}/;export INST_LIB +export CFG=debug # for -g + +# removal of -D_FORTIFY_SOURCE from preprocessor flags seems not needed any more +# ogdits-3.1 test suite produces same result with and without the flag +export CFLAGS="$RPM_OPT_FLAGS -DDONT_TD_VOID -DUSE_TERMIO" +%configure \ + --with-binconfigs \ + --with-expat \ + --with-zlib + +# WARNING !!! +# using %{?_smp_mflags} may break build +%{__make} + +# build tcl interface +%{__make} -C ogdi/tcl_interface \ + TCL_LINKLIB="-ltcl" + +# build contributions +%{__make} -C contrib/gdal + +# build odbc drivers +%{__make} -C ogdi/attr_driver/odbc \ + ODBC_LINKLIB="-lodbc" + +%install +# export env +TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET + +%{__make} install \ + INST_INCLUDE=%{buildroot}%{_includedir}/%{name} \ + INST_LIB=%{buildroot}%{_libdir} \ + INST_BIN=%{buildroot}%{_bindir} + +# install plugins olso +%{__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} + +# remove example binary +%{__rm} %{buildroot}%{_bindir}/example? + +# we have multilib ogdi-config +%if "%{_lib}" == "lib" +%global cpuarch 32 +%else +%global cpuarch 64 +%endif + +# fix file(s) for multilib issue +touch -r ogdi-config.in ogdi-config + +# install pkgconfig file and 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-%{cpuarch} +# ogdi-config wrapper for multiarch +cat > %{buildroot}%{_bindir}/%{name}-config < - 4.1.0-7 +- Rebuilt for MSVSphere 9.3 + +* Thu Jan 20 2022 Fedora Release Engineering - 4.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 4.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 4.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 4.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 4.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Sep 10 2019 Devrim Gündüz - 4.1.0-2 +- Remove PROJ dependency. The new OGDI does not use it. + +* Tue Sep 3 2019 Devrim Gündüz - 4.1.0-1 +- Initial packaging for EPEL 8 +- Update to 4.1.0