1 # TODO: separate gltpd to -server package, add init script (requires portmap)
2 Summary: Open Geographic Datastore Interface
3 Summary(pl): OGDI - otwarty interfejs do danych geograficznych
9 Source0: http://dl.sourceforge.net/ogdi/%{name}-%{version}.tar.gz
10 # Source0-md5: ff7ee9f2ed68699ca13d568ab8e3393d
11 Source1: http://ogdi.sourceforge.net/ogdi.pdf
12 # Source1-md5: 029a8cdcd36bee73df92196ee769040e
13 Patch0: %{name}-driversdir.patch
14 URL: http://ogdi.sourceforge.net/
15 BuildRequires: autoconf
16 BuildRequires: expat-devel
17 BuildRequires: proj-devel
18 BuildRequires: tcl-devel
19 BuildRequires: unixODBC-devel
20 BuildRequires: zlib-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 OGDI is the Open Geographic Datastore Interface. OGDI is an
25 application programming interface (API) that uses a standardized
26 access methods to work in conjunction with GIS software packages (the
27 application) and various geospatial data products. OGDI uses a
28 client/server architecture to facilitate the dissemination of
29 geospatial data products over any TCP/IP network, and a
30 driver-oriented approach to facilitate access to several geospatial
31 data products/formats.
34 OGDI (Open Geographic Datastore Interface) oznacza otwarty interfejs
35 do danych geograficznych. OGDI to API u¿ywaj±ce ustandaryzowanych
36 metod dostêpu do pracy z pakietami oprogramowania GIS i ró¿nymi danymi
37 geograficznymi. OGDI u¿ywa architektury klient-serwer aby udostêpniaæ
38 dane po dowolnej sieci TCP/IP oraz podej¶cia bazuj±cego na
39 sterownikach aby zapewniæ dostêp do ró¿nych produktów/formatów danych
43 Summary: OGDI header files and documentation
44 Summary(pl): Pliki nag³ówkowe i dokumentacja OGDI
45 Group: Development/Libraries
46 Requires: %{name} = %{version}
49 OGDI header files and developer's documentation.
51 %description devel -l pl
52 Pliki nag³ówkowe i dokumentacja programisty do OGDI.
55 Summary: ODBC driver for OGDI
56 Summary(pl): Sterownik ODBC do OGDI
58 Requires: %{name} = %{version}
63 %description odbc -l pl
64 Sterownik ODBC do OGDI.
67 Summary: TCL wrapper for OGDI
68 Summary(pl): Interfejs TCL do OGDI
70 Requires: %{name} = %{version}
72 %description -n tcl-ogdi
75 %description -n tcl-ogdi -l pl
76 Interfejs TCL do OGDI.
86 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
93 OPTIMIZATION="%{rpmcflags}"
95 %{__make} -C ogdi/tcl_interface \
96 OPTIMIZATION="%{rpmcflags}" \
98 %{__make} -C contrib/gdal \
99 OPTIMIZATION="%{rpmcflags}"
100 %{__make} -C ogdi/attr_driver/odbc \
101 OPTIMIZATION="%{rpmcflags}" \
102 ODBC_LINKLIB="-lodbc"
105 rm -rf $RPM_BUILD_ROOT
107 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
110 INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
111 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi \
112 INST_BIN=$RPM_BUILD_ROOT%{_bindir}
114 %{__make} install -C ogdi/tcl_interface \
115 INST_LIB=$RPM_BUILD_ROOT%{_libdir}
116 %{__make} install -C contrib/gdal \
117 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
118 %{__make} install -C ogdi/attr_driver/odbc \
119 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
121 # only libogdi* is common library, the rest are dlopened drivers
122 mv -f $RPM_BUILD_ROOT%{_libdir}/ogdi/libogdi*.so $RPM_BUILD_ROOT%{_libdir}
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/gltpd
134 %attr(755,root,root) %{_bindir}/ogdi_*
135 %attr(755,root,root) %{_libdir}/libogdi*.so
137 %attr(755,root,root) %{_libdir}/ogdi/lib[^l]*.so
140 %defattr(644,root,root,755)
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_libdir}/libecs_tcl.so