]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without odbc # disable odbc support | |
4 | %bcond_without xerces # disable xerces support | |
5 | # | |
6 | Summary: Geospatial Data Abstraction Library | |
7 | Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi | |
8 | Name: gdal | |
9 | Version: 1.4.1 | |
10 | Release: 1 | |
11 | License: BSD-like | |
12 | Group: Libraries | |
13 | #Source0: http://download.osgeo.org/gdal/%{name}-%{version}.tar.gz | |
14 | Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 688cf651c6f6efc2851b12f2e9c2e0d1 | |
16 | Patch0: %{name}-dods.patch | |
17 | Patch1: %{name}-ac.patch | |
18 | Patch2: %{name}-perl.patch | |
19 | Patch3: %{name}-ruby.patch | |
20 | URL: http://www.gdal.org/ | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: cfitsio-devel | |
23 | BuildRequires: doxygen | |
24 | BuildRequires: geos-devel >= 2.0 | |
25 | BuildRequires: giflib-devel >= 4.0 | |
26 | BuildRequires: hdf-devel >= 4.0 | |
27 | BuildRequires: jasper-devel | |
28 | BuildRequires: libcsf-devel | |
29 | BuildRequires: libdap-devel >= 3.5 | |
30 | BuildRequires: libgeotiff-devel >= 1.2.1 | |
31 | BuildRequires: libjpeg-devel >= 6b | |
32 | BuildRequires: libpng-devel >= 2:1.2.8 | |
33 | BuildRequires: libstdc++-devel | |
34 | BuildRequires: libtiff-devel >= 3.6.0 | |
35 | BuildRequires: netcdf-devel | |
36 | BuildRequires: ogdi-devel >= 3.1 | |
37 | BuildRequires: perl-devel | |
38 | BuildRequires: postgresql-devel | |
39 | BuildRequires: postgresql-backend-devel | |
40 | BuildRequires: python-Numeric-devel | |
41 | BuildRequires: python-devel | |
42 | BuildRequires: ruby-devel | |
43 | BuildRequires: sqlite3-devel >= 3 | |
44 | BuildRequires: swig-ruby | |
45 | %{?with_odbc:BuildRequires: unixODBC-devel} | |
46 | %{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0} | |
47 | BuildRequires: zlib-devel >= 1.1.4 | |
48 | Requires: geos >= 2.0 | |
49 | Requires: libgeotiff >= 1.2.1 | |
50 | Requires: libpng >= 2:1.2.8 | |
51 | Requires: libtiff >= 3.6.0 | |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
53 | ||
54 | %description | |
55 | GDAL is a translator library for raster geospatial data formats that | |
56 | is released under an Open Source license. As a library, it presents a | |
57 | single abstract data model to the calling application for all | |
58 | supported formats. The related OGR library (which lives within the | |
59 | GDAL source tree) provides a similar capability for simple features | |
60 | vector data. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | GDAL to biblioteka konwertująca między formatami rastrowych danych | |
64 | dotyczących powierzchni Ziemi, udostępniona na licencji Open Source. | |
65 | Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych | |
66 | do wszystkich obsługiwanych formatów. Powiązana z nią biblioteka OGR | |
67 | (której źródła są dołączone do drzewa źródeł GDAL) daje podobne | |
68 | możliwości dla danych wektorowych. | |
69 | ||
70 | %package devel | |
71 | Summary: GDAL library header files | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Requires: cfitsio-devel | |
76 | Requires: geos-devel >= 2.0 | |
77 | Requires: giflib-devel | |
78 | Requires: hdf-devel >= 4.0 | |
79 | Requires: jasper-devel | |
80 | Requires: libcsf-devel | |
81 | Requires: libdap-devel >= 3.5 | |
82 | Requires: libgeotiff-devel >= 1.2.1 | |
83 | Requires: libjpeg-devel | |
84 | Requires: libpng-devel >= 2:1.2.8 | |
85 | Requires: libstdc++-devel | |
86 | Requires: libtiff-devel >= 3.6.0 | |
87 | Requires: netcdf-devel | |
88 | Requires: ogdi-devel >= 3.1 | |
89 | Requires: postgresql-devel | |
90 | Requires: sqlite3-devel >= 3 | |
91 | %{?with_odbc:Requires: unixODBC-devel} | |
92 | %{?with_xerces:Requires: xerces-c-devel >= 2.2.0} | |
93 | ||
94 | %description devel | |
95 | GDAL library header files. | |
96 | ||
97 | %description devel -l pl.UTF-8 | |
98 | Pliki nagłówkowe biblioteki GDAL. | |
99 | ||
100 | %package static | |
101 | Summary: GDAL static libraries | |
102 | Summary(pl.UTF-8): Statyczne biblioteki GDAL | |
103 | Group: Development/Libraries | |
104 | Requires: %{name}-devel = %{version}-%{release} | |
105 | ||
106 | %description static | |
107 | GDAL static libraries. | |
108 | ||
109 | %description static -l pl.UTF-8 | |
110 | Statyczne biblioteki GDAL. | |
111 | ||
112 | %package -n perl-gdal | |
113 | Summary: Perl bindings for GDAL | |
114 | Summary(pl.UTF-8): Wiązania Perla do pakietu GDAL | |
115 | Group: Development/Languages/Perl | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | ||
118 | %description -n perl-gdal | |
119 | Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules. | |
120 | ||
121 | %description -n perl-gdal -l pl.UTF-8 | |
122 | Wiązania Perla do pakietu GDAL - moduły Geo::GDAL, Geo::OGR, | |
123 | Geo::OSR. | |
124 | ||
125 | %package -n python-gdal | |
126 | Summary: GDAL Python module | |
127 | Summary(pl.UTF-8): Moduł Pythona GDAL | |
128 | Group: Libraries/Python | |
129 | Requires: %{name} = %{version}-%{release} | |
130 | %pyrequires_eq python-libs | |
131 | ||
132 | %description -n python-gdal | |
133 | GDAL Python module. | |
134 | ||
135 | %description -n python-gdal -l pl.UTF-8 | |
136 | Moduł Pythona GDAL. | |
137 | ||
138 | %package -n ruby-gdal | |
139 | Summary: Ruby bindings for GDAL | |
140 | Summary(pl.UTF-8): Wiązania języka Ruby do pakietu GDAL | |
141 | Group: Development/Languages | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | %{?ruby_mod_ver_requires_eq} | |
144 | ||
145 | %description -n ruby-gdal | |
146 | Ruby bindings for GDAL - gdal, gdalconst, ogr and osr modules. | |
147 | ||
148 | %description -n ruby-gdal -l pl.UTF-8 | |
149 | Wiązania języka Ruby do pakietu GDAL - moduły gdal, gdalconst, ogr | |
150 | i osr. | |
151 | ||
152 | %prep | |
153 | %setup -q | |
154 | %patch0 -p1 | |
155 | %patch1 -p1 | |
156 | %patch2 -p1 | |
157 | %patch3 -p1 | |
158 | ||
159 | %build | |
160 | # disable grass/libgrass here, it can be built from separate gdal-grass package | |
161 | %{__autoconf} | |
162 | %configure \ | |
163 | --datadir=%{_datadir}/gdal \ | |
164 | --with-dods-root=/usr \ | |
165 | --with-perl \ | |
166 | --with-pymoddir=%{py_sitedir} \ | |
167 | --with-ruby \ | |
168 | --with-sqlite \ | |
169 | %{?with_xerces:--with-xerces} \ | |
170 | --with-xerces-inc=/usr/include/xercesc \ | |
171 | --with-xerces-lib="-lxerces-c" \ | |
172 | --without-grass \ | |
173 | --without-libgrass | |
174 | # --with-ngpython disables traditional python binding | |
175 | # --with-php needs Zend API update | |
176 | %{__make} | |
177 | ||
178 | %{__make} -C swig build \ | |
179 | OPTIMIZE="%{rpmcflags}" | |
180 | ||
181 | %{__make} docs | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT | |
188 | ||
189 | mv -f ogr/html html/org | |
190 | ||
191 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
192 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
193 | %py_postclean | |
194 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} | |
195 | ||
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
199 | %post -p /sbin/ldconfig | |
200 | %postun -p /sbin/ldconfig | |
201 | ||
202 | %files | |
203 | %defattr(644,root,root,755) | |
204 | %doc NEWS PROVENANCE.TXT | |
205 | %attr(755,root,root) %{_bindir}/* | |
206 | %exclude %{_bindir}/gdal-config | |
207 | %attr(755,root,root) %{_libdir}/libgdal.so.*.*.* | |
208 | %{_datadir}/gdal | |
209 | %{_mandir}/man1/* | |
210 | %exclude %{_mandir}/man1/gdal-config.1* | |
211 | ||
212 | %files devel | |
213 | %defattr(644,root,root,755) | |
214 | %doc html/* | |
215 | %attr(755,root,root) %{_bindir}/gdal-config | |
216 | %attr(755,root,root) %{_libdir}/libgdal.so | |
217 | %{_libdir}/libgdal.la | |
218 | %{_includedir}/*.h | |
219 | %{_mandir}/man1/gdal-config.1* | |
220 | ||
221 | %files static | |
222 | %defattr(644,root,root,755) | |
223 | %{_libdir}/libgdal.a | |
224 | ||
225 | %files -n perl-gdal | |
226 | %defattr(644,root,root,755) | |
227 | %dir %{perl_vendorarch}/Geo | |
228 | %{perl_vendorarch}/Geo/GDAL.pm | |
229 | %dir %{perl_vendorarch}/Geo/GDAL | |
230 | %{perl_vendorarch}/Geo/GDAL/Const.pm | |
231 | %{perl_vendorarch}/Geo/OGR.pm | |
232 | %{perl_vendorarch}/Geo/OSR.pm | |
233 | %dir %{perl_vendorarch}/auto/Geo | |
234 | %dir %{perl_vendorarch}/auto/Geo/GDAL | |
235 | %{perl_vendorarch}/auto/Geo/GDAL/GDAL.bs | |
236 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/GDAL.so | |
237 | %dir %{perl_vendorarch}/auto/Geo/GDAL/Const | |
238 | %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.bs | |
239 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/GDAL/Const/Const.so | |
240 | %dir %{perl_vendorarch}/auto/Geo/OGR | |
241 | %{perl_vendorarch}/auto/Geo/OGR/OGR.bs | |
242 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/OGR/OGR.so | |
243 | %dir %{perl_vendorarch}/auto/Geo/OSR | |
244 | %{perl_vendorarch}/auto/Geo/OSR/OSR.bs | |
245 | %attr(755,root,root) %{perl_vendorarch}/auto/Geo/OSR/OSR.so | |
246 | ||
247 | %files -n python-gdal | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{py_sitedir}/_gdalmodule.so | |
250 | %{py_sitedir}/*.py[co] | |
251 | ||
252 | %files -n ruby-gdal | |
253 | %defattr(644,root,root,755) | |
254 | %dir %{ruby_sitearchdir}/gdal | |
255 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/gdal.so | |
256 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/gdalconst.so | |
257 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/ogr.so | |
258 | %attr(755,root,root) %{ruby_sitearchdir}/gdal/osr.so |