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: d54a5dcce211e37b8ba317531312ff55
11 Source1: http://ogdi.sourceforge.net/ogdi.pdf
12 # Source1-md5: 029a8cdcd36bee73df92196ee769040e
13 Patch0: %{name}-driversdir.patch
14 Patch1: %{name}-pic.patch
15 URL: http://ogdi.sourceforge.net/
16 BuildRequires: autoconf
17 BuildRequires: expat-devel
18 BuildRequires: proj-devel
19 BuildRequires: tcl-devel
20 BuildRequires: unixODBC-devel
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 OGDI is the Open Geographic Datastore Interface. OGDI is an
26 application programming interface (API) that uses a standardized
27 access methods to work in conjunction with GIS software packages (the
28 application) and various geospatial data products. OGDI uses a
29 client/server architecture to facilitate the dissemination of
30 geospatial data products over any TCP/IP network, and a
31 driver-oriented approach to facilitate access to several geospatial
32 data products/formats.
35 OGDI (Open Geographic Datastore Interface) oznacza otwarty interfejs
36 do danych geograficznych. OGDI to API u¿ywaj±ce ustandaryzowanych
37 metod dostêpu do pracy z pakietami oprogramowania GIS i ró¿nymi danymi
38 geograficznymi. OGDI u¿ywa architektury klient-serwer aby udostêpniaæ
39 dane po dowolnej sieci TCP/IP oraz podej¶cia bazuj±cego na
40 sterownikach aby zapewniæ dostêp do ró¿nych produktów/formatów danych
44 Summary: OGDI header files and documentation
45 Summary(pl): Pliki nag³ówkowe i dokumentacja OGDI
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
51 OGDI header files and developer's documentation.
53 %description devel -l pl
54 Pliki nag³ówkowe i dokumentacja programisty do OGDI.
57 Summary: ODBC driver for OGDI
58 Summary(pl): Sterownik ODBC do OGDI
60 Requires: %{name} = %{version}-%{release}
65 %description odbc -l pl
66 Sterownik ODBC do OGDI.
69 Summary: Tcl wrapper for OGDI
70 Summary(pl): Interfejs Tcl do OGDI
72 Requires: %{name} = %{version}-%{release}
74 %description -n tcl-ogdi
77 %description -n tcl-ogdi -l pl
78 Interfejs Tcl do OGDI.
89 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
96 OPTIMIZATION="%{rpmcflags}"
98 %{__make} -C ogdi/tcl_interface \
99 OPTIMIZATION="%{rpmcflags}" \
101 %{__make} -C contrib/gdal \
102 OPTIMIZATION="%{rpmcflags}"
103 %{__make} -C ogdi/attr_driver/odbc \
104 OPTIMIZATION="%{rpmcflags}" \
105 ODBC_LINKLIB="-lodbc"
108 rm -rf $RPM_BUILD_ROOT
110 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
113 INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
114 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi \
115 INST_BIN=$RPM_BUILD_ROOT%{_bindir}
117 %{__make} install -C ogdi/tcl_interface \
118 INST_LIB=$RPM_BUILD_ROOT%{_libdir}
119 %{__make} install -C contrib/gdal \
120 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
121 %{__make} install -C ogdi/attr_driver/odbc \
122 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
124 # only libogdi* is common library, the rest are dlopened drivers
125 mv -f $RPM_BUILD_ROOT%{_libdir}/ogdi/libogdi*.so $RPM_BUILD_ROOT%{_libdir}
128 rm -rf $RPM_BUILD_ROOT
130 %post -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
134 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/gltpd
137 %attr(755,root,root) %{_bindir}/ogdi_*
138 %attr(755,root,root) %{_libdir}/libogdi*.so
140 %attr(755,root,root) %{_libdir}/ogdi/lib[^l]*.so
143 %defattr(644,root,root,755)
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libecs_tcl.so