# TODO: separate gltpd to -server package, add init script (requires portmap) # # 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: 3.1.6 Release: 6 License: BSD-like Group: Applications/Databases Source0: http://downloads.sourceforge.net/ogdi/%{name}-%{version}.tar.gz # Source0-md5: 212ad71896aa70528ed139c95bed6511 Source1: http://ogdi.sourceforge.net/ogdi.pdf # Source1-md5: 029a8cdcd36bee73df92196ee769040e Patch0: %{name}-pic.patch Patch1: %{name}-proj480.patch Patch2: %{name}-format.patch URL: http://ogdi.sourceforge.net/ BuildRequires: autoconf BuildRequires: expat-devel BuildRequires: proj-devel >= 4.8 %{?with_tcl:BuildRequires: tcl-devel} %{?with_odbc:BuildRequires: unixODBC-devel} BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl.UTF-8 OGDI (Open Geographic Datastore Interface) oznacza otwarty interfejs do danych geograficznych. OGDI to API używające ustandaryzowanych metod dostępu do pracy z pakietami oprogramowania GIS i różnymi danymi geograficznymi. OGDI używa architektury klient-serwer aby udostępniać dane po dowolnej sieci TCP/IP oraz podejścia bazującego na sterownikach aby zapewnić dostęp do różnych produktów/formatów danych geograficznych. %package devel Summary: OGDI header files and documentation Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja OGDI Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: proj-devel >= 4.8 %description devel 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 Group: Libraries Requires: %{name} = %{version}-%{release} %description -n tcl-ogdi Tcl wrapper for OGDI. %description -n tcl-ogdi -l pl.UTF-8 Interfejs Tcl do OGDI. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 cp -f %{SOURCE1} . %build %{__autoconf} TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET %configure \ --with-expat \ --with-proj \ --with-zlib # bash because of pushd/popd used in makefiles %{__make} -j 1 \ SHELL=/bin/bash \ INST_LIB=%{_libdir} \ OPTIMIZATION="%{rpmcflags}" %if %{with tcl} %{__make} -j 1 -C ogdi/tcl_interface \ OPTIMIZATION="%{rpmcflags}" \ TCL_LINKLIB="-ltcl" %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 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET %{__make} -j 1 install \ SHELL=/bin/bash \ INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \ INST_LIB=$RPM_BUILD_ROOT%{_libdir} \ INST_BIN=$RPM_BUILD_ROOT%{_bindir} %if %{with tcl} %{__make} -j 1 install -C ogdi/tcl_interface \ INST_LIB=$RPM_BUILD_ROOT%{_libdir} %endif %{__make} -j 1 install -C contrib/gdal \ INST_LIB=$RPM_BUILD_ROOT%{_libdir} %if %{with odbc} %{__make} -j 1 install -C ogdi/attr_driver/odbc \ INST_LIB=$RPM_BUILD_ROOT%{_libdir} %endif %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc LICENSE NEWS %attr(755,root,root) %{_bindir}/gltpd %attr(755,root,root) %{_bindir}/ogdi_* %attr(755,root,root) %{_libdir}/libogdi.so.*.* %attr(755,root,root) %ghost %{_libdir}/libogdi.so.3 %dir %{_libdir}/ogdi %attr(755,root,root) %{_libdir}/ogdi/libadrg.so %attr(755,root,root) %{_libdir}/ogdi/libdtcanada.so %attr(755,root,root) %{_libdir}/ogdi/libdted.so %attr(755,root,root) %{_libdir}/ogdi/libdtusa.so %attr(755,root,root) %{_libdir}/ogdi/libgdal.so %attr(755,root,root) %{_libdir}/ogdi/libremote.so %attr(755,root,root) %{_libdir}/ogdi/librpf.so %attr(755,root,root) %{_libdir}/ogdi/libskeleton.so %attr(755,root,root) %{_libdir}/ogdi/libvrf.so %files devel %defattr(644,root,root,755) %doc ogdi.pdf %attr(755,root,root) %{_libdir}/libogdi.so %{_includedir}/ecs.h %{_includedir}/ecs_util.h %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) %attr(755,root,root) %{_libdir}/ogdi/libecs_tcl.so %endif