%global gittag 4_1_0 Name: ogdi Version: 4.1.0 Release: 4%{?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: 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-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