commit
3a81ac6de3
@ -0,0 +1 @@
|
||||
SOURCES/ogdi_4_1_0.tar.gz
|
@ -0,0 +1 @@
|
||||
d5b1313e16ccf504d5195266bf31ad5751d17529 SOURCES/ogdi_4_1_0.tar.gz
|
@ -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);
|
||||
}
|
Binary file not shown.
@ -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 <<EOF
|
||||
#!/bin/bash
|
||||
|
||||
ARCH=\$(uname -m)
|
||||
case \$ARCH in
|
||||
x86_64 | ppc64 | ppc64le | ia64 | s390x | sparc64 | alpha | alphaev6 | aarch64 )
|
||||
ogdi-config-64 \${*}
|
||||
;;
|
||||
*)
|
||||
ogdi-config-32 \${*}
|
||||
;;
|
||||
esac
|
||||
EOF
|
||||
chmod 755 %{buildroot}%{_bindir}/%{name}-config
|
||||
touch -r ogdi-config.in %{buildroot}%{_bindir}/%{name}-config
|
||||
|
||||
|
||||
%files
|
||||
%doc LICENSE NEWS ChangeLog README
|
||||
%{_bindir}/gltpd
|
||||
%{_bindir}/ogdi_*
|
||||
%{_libdir}/libogdi.so.*
|
||||
%dir %{_libdir}/ogdi
|
||||
%exclude %{_libdir}/%{name}/liblodbc.so
|
||||
%exclude %{_libdir}/%{name}/libecs_tcl.so
|
||||
%{_libdir}/%{name}/lib*.so
|
||||
|
||||
%files devel
|
||||
%doc ogdi.pdf
|
||||
%doc ogdi/examples/example1/example1.c
|
||||
%doc ogdi/examples/example2/example2.c
|
||||
%{_bindir}/%{name}-config
|
||||
%{_bindir}/%{name}-config-%{cpuarch}
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%dir %{_includedir}/%{name}
|
||||
%{_includedir}/%{name}/*.h
|
||||
%{_libdir}/libogdi.so
|
||||
|
||||
%files odbc
|
||||
%{_libdir}/%{name}/liblodbc.so
|
||||
|
||||
%files tcl
|
||||
%{_libdir}/%{name}/libecs_tcl.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 20 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.1.0-7
|
||||
- Rebuilt for MSVSphere 9.2
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Sep 10 2019 Devrim Gündüz <devrim@gunduz.org> - 4.1.0-2
|
||||
- Remove PROJ dependency. The new OGDI does not use it.
|
||||
|
||||
* Tue Sep 3 2019 Devrim Gündüz <devrim@gunduz.org> - 4.1.0-1
|
||||
- Initial packaging for EPEL 8
|
||||
- Update to 4.1.0
|
Loading…
Reference in new issue