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}
50 OGDI header files and developer's documentation.
52 %description devel -l pl
53 Pliki nag³ówkowe i dokumentacja programisty do OGDI.
56 Summary: ODBC driver for OGDI
57 Summary(pl): Sterownik ODBC do OGDI
59 Requires: %{name} = %{version}-%{release}
64 %description odbc -l pl
65 Sterownik ODBC do OGDI.
68 Summary: Tcl wrapper for OGDI
69 Summary(pl): Interfejs Tcl do OGDI
71 Requires: %{name} = %{version}-%{release}
73 %description -n tcl-ogdi
76 %description -n tcl-ogdi -l pl
77 Interfejs Tcl do OGDI.
88 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
95 OPTIMIZATION="%{rpmcflags}"
97 %{__make} -C ogdi/tcl_interface \
98 OPTIMIZATION="%{rpmcflags}" \
100 %{__make} -C contrib/gdal \
101 OPTIMIZATION="%{rpmcflags}"
102 %{__make} -C ogdi/attr_driver/odbc \
103 OPTIMIZATION="%{rpmcflags}" \
104 ODBC_LINKLIB="-lodbc"
107 rm -rf $RPM_BUILD_ROOT
109 TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
112 INST_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
113 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi \
114 INST_BIN=$RPM_BUILD_ROOT%{_bindir}
116 %{__make} install -C ogdi/tcl_interface \
117 INST_LIB=$RPM_BUILD_ROOT%{_libdir}
118 %{__make} install -C contrib/gdal \
119 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
120 %{__make} install -C ogdi/attr_driver/odbc \
121 INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
123 # only libogdi* is common library, the rest are dlopened drivers
124 mv -f $RPM_BUILD_ROOT%{_libdir}/ogdi/libogdi*.so $RPM_BUILD_ROOT%{_libdir}
127 rm -rf $RPM_BUILD_ROOT
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/gltpd
136 %attr(755,root,root) %{_bindir}/ogdi_*
137 %attr(755,root,root) %{_libdir}/libogdi*.so
139 %attr(755,root,root) %{_libdir}/ogdi/lib[^l]*.so
142 %defattr(644,root,root,755)
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libecs_tcl.so