1 # TODO: separate gltpd to -server package, add init script (requires portmap)
4 %bcond_without tcl # disable gui and nviz
5 %bcond_without odbc # disable unixODBC support
7 Summary: Open Geographic Datastore Interface
8 Summary(pl): OGDI - otwarty interfejs do danych geograficznych
14 Source0: http://dl.sourceforge.net/ogdi/%{name}-%{version}.tar.gz
15 # Source0-md5: 9ccf8202b63875a68ded23588bd49544
16 Source1: http://ogdi.sourceforge.net/ogdi.pdf
17 # Source1-md5: 029a8cdcd36bee73df92196ee769040e
18 Patch0: %{name}-driversdir.patch
19 Patch1: %{name}-pic.patch
20 URL: http://ogdi.sourceforge.net/
21 BuildRequires: autoconf
22 BuildRequires: expat-devel
23 BuildRequires: proj-devel
24 %{?with_tcl:BuildRequires: tcl-devel}
25 %{?with_odbc:BuildRequires: unixODBC-devel}
26 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 OGDI is the Open Geographic Datastore Interface. OGDI is an
31 application programming interface (API) that uses a standardized
32 access methods to work in conjunction with GIS software packages (the
33 application) and various geospatial data products. OGDI uses a
34 client/server architecture to facilitate the dissemination of
35 geospatial data products over any TCP/IP network, and a
36 driver-oriented approach to facilitate access to several geospatial
37 data products/formats.
40 OGDI (Open Geographic Datastore Interface) oznacza otwarty interfejs
41 do danych geograficznych. OGDI to API u¿ywaj±ce ustandaryzowanych
42 metod dostêpu do pracy z pakietami oprogramowania GIS i ró¿nymi danymi
43 geograficznymi. OGDI u¿ywa architektury klient-serwer aby udostêpniaæ
44 dane po dowolnej sieci TCP/IP oraz podej¶cia bazuj±cego na
45 sterownikach aby zapewniæ dostêp do ró¿nych produktów/formatów danych
49 Summary: OGDI header files and documentation
50 Summary(pl): Pliki nag³ówkowe i dokumentacja OGDI
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
56 OGDI header files and developer's documentation.
58 %description devel -l pl
59 Pliki nag³ówkowe i dokumentacja programisty do OGDI.
62 Summary: ODBC driver for OGDI
63 Summary(pl): Sterownik ODBC do OGDI
65 Requires: %{name} = %{version}-%{release}
70 %description odbc -l pl
71 Sterownik ODBC do OGDI.
74 Summary: Tcl wrapper for OGDI
75 Summary(pl): Interfejs Tcl do OGDI
77 Requires: %{name} = %{version}-%{release}
79 %description -n tcl-ogdi
82 %description -n tcl-ogdi -l pl
83 Interfejs Tcl do OGDI.
94 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
101 OPTIMIZATION="%{rpmcflags}"
104 %{__make} -C ogdi/tcl_interface \
105 OPTIMIZATION="%{rpmcflags}" \
108 %{__make} -C contrib/gdal \
109 OPTIMIZATION="%{rpmcflags}"
111 %{__make} -C ogdi/attr_driver/odbc \
112 OPTIMIZATION="%{rpmcflags}" \
113 ODBC_LINKLIB="-lodbc"
117 rm -rf $RPM_BUILD_ROOT
119 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
122 INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
123 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi \
124 INST_BIN=$RPM_BUILD_ROOT%{_bindir}
127 %{__make} install -C ogdi/tcl_interface \
128 INST_LIB=$RPM_BUILD_ROOT%{_libdir}
130 %{__make} install -C contrib/gdal \
131 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
133 %{__make} install -C ogdi/attr_driver/odbc \
134 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
137 # only libogdi* is common library, the rest are dlopened drivers
138 mv -f $RPM_BUILD_ROOT%{_libdir}/ogdi/libogdi*.so $RPM_BUILD_ROOT%{_libdir}
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
147 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_bindir}/gltpd
150 %attr(755,root,root) %{_bindir}/ogdi_*
151 %attr(755,root,root) %{_libdir}/libogdi*.so
153 %attr(755,root,root) %{_libdir}/ogdi/lib[^l]*.so
156 %defattr(644,root,root,755)
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/libecs_tcl.so