]>
Commit | Line | Data |
---|---|---|
655672e5 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without odbc # disable odbc support | |
4 | %bcond_without xerces # disable xerces support | |
5 | # | |
faf5649c | 6 | Summary: Geospatial Data Abstraction Library |
a28c1bee | 7 | Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi |
faf5649c | 8 | Name: gdal |
c0a384ef | 9 | Version: 1.3.2 |
655672e5 | 10 | Release: 3 |
faf5649c JB |
11 | License: BSD-like |
12 | Group: Libraries | |
9b5c0fd4 | 13 | Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz |
c0a384ef | 14 | # Source0-md5: 67ed02dcea21e93f5e123bb0d322898a |
3a591acf JB |
15 | Patch0: %{name}-pgsql.patch |
16 | Patch1: %{name}-DESTDIR.patch | |
d4d7a2c6 | 17 | Patch2: %{name}-dods.patch |
9c9da48d | 18 | Patch3: %{name}-gcc4.patch |
374370d5 | 19 | Patch4: %{name}-ac.patch |
9b5c0fd4 | 20 | URL: http://www.gdal.org/ |
faf5649c | 21 | BuildRequires: autoconf |
6b59fa88 | 22 | BuildRequires: cfitsio-devel |
3a591acf | 23 | BuildRequires: doxygen |
d44ae2ef | 24 | BuildRequires: geos-devel >= 2.0 |
b459f4d7 | 25 | BuildRequires: giflib-devel >= 4.0 |
6b59fa88 JB |
26 | BuildRequires: hdf-devel >= 4.0 |
27 | BuildRequires: jasper-devel | |
d4d7a2c6 JB |
28 | BuildRequires: libcsf-devel |
29 | BuildRequires: libdap-devel >= 3.5 | |
b3cbf6a3 | 30 | BuildRequires: libgeotiff-devel >= 1.2.1 |
6b59fa88 | 31 | BuildRequires: libjpeg-devel >= 6b |
e354fe40 | 32 | BuildRequires: libpng-devel >= 2:1.2.8 |
b3cbf6a3 | 33 | BuildRequires: libstdc++-devel |
6b59fa88 | 34 | BuildRequires: libtiff-devel >= 3.6.0 |
b3cbf6a3 | 35 | BuildRequires: netcdf-devel |
6b59fa88 | 36 | BuildRequires: ogdi-devel >= 3.1 |
faf5649c JB |
37 | BuildRequires: postgresql-devel |
38 | BuildRequires: postgresql-backend-devel | |
39 | BuildRequires: python-devel | |
d4d7a2c6 | 40 | BuildRequires: sqlite3-devel >= 3 |
655672e5 | 41 | %{?with_odbc:BuildRequires: unixODBC-devel} |
42 | %{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0} | |
faf5649c | 43 | BuildRequires: zlib-devel >= 1.1.4 |
d44ae2ef | 44 | Requires: geos >= 2.0 |
b3cbf6a3 | 45 | Requires: libgeotiff >= 1.2.1 |
e354fe40 | 46 | Requires: libpng >= 2:1.2.8 |
b3cbf6a3 | 47 | Requires: libtiff >= 3.6.0 |
faf5649c JB |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | GDAL is a translator library for raster geospatial data formats that | |
52 | is released under an Open Source license. As a library, it presents a | |
53 | single abstract data model to the calling application for all | |
54 | supported formats. The related OGR library (which lives within the | |
55 | GDAL source tree) provides a similar capability for simple features | |
56 | vector data. | |
f05c79e8 | 57 | |
d34f2ec8 JR |
58 | %description -l pl.UTF-8 |
59 | GDAL to biblioteka konwertująca między formatami rastrowych danych | |
60 | dotyczących powierzchni Ziemi, udostępniona na licencji Open Source. | |
61 | Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych | |
62 | do wszystkich obsługiwanych formatów. Powiązana z nią biblioteka OGR | |
63 | (której źródła są dołączone do drzewa źródeł GDAL) daje podobne | |
64 | możliwości dla danych wektorowych. | |
faf5649c | 65 | |
6b59fa88 JB |
66 | %package devel |
67 | Summary: GDAL library header files | |
a28c1bee | 68 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL |
6b59fa88 | 69 | Group: Development/Libraries |
1673a634 | 70 | Requires: %{name} = %{version}-%{release} |
b3cbf6a3 | 71 | Requires: cfitsio-devel |
d44ae2ef | 72 | Requires: geos-devel >= 2.0 |
b459f4d7 | 73 | Requires: giflib-devel |
b3cbf6a3 JB |
74 | Requires: hdf-devel >= 4.0 |
75 | Requires: jasper-devel | |
d4d7a2c6 JB |
76 | Requires: libcsf-devel |
77 | Requires: libdap-devel >= 3.5 | |
b3cbf6a3 JB |
78 | Requires: libgeotiff-devel >= 1.2.1 |
79 | Requires: libjpeg-devel | |
e354fe40 | 80 | Requires: libpng-devel >= 2:1.2.8 |
b3cbf6a3 JB |
81 | Requires: libstdc++-devel |
82 | Requires: libtiff-devel >= 3.6.0 | |
b3cbf6a3 JB |
83 | Requires: netcdf-devel |
84 | Requires: ogdi-devel >= 3.1 | |
85 | Requires: postgresql-devel | |
d4d7a2c6 | 86 | Requires: sqlite3-devel >= 3 |
655672e5 | 87 | %{?with_odbc:Requires: unixODBC-devel} |
88 | %{?with_xerces:Requires: xerces-c-devel >= 2.2.0} | |
6b59fa88 JB |
89 | |
90 | %description devel | |
91 | GDAL library header files. | |
92 | ||
d34f2ec8 JR |
93 | %description devel -l pl.UTF-8 |
94 | Pliki nagłówkowe biblioteki GDAL. | |
6b59fa88 JB |
95 | |
96 | %package static | |
97 | Summary: GDAL static libraries | |
a28c1bee | 98 | Summary(pl.UTF-8): Statyczne biblioteki GDAL |
6b59fa88 | 99 | Group: Development/Libraries |
1673a634 | 100 | Requires: %{name}-devel = %{version}-%{release} |
6b59fa88 JB |
101 | |
102 | %description static | |
103 | GDAL static libraries. | |
104 | ||
d34f2ec8 | 105 | %description static -l pl.UTF-8 |
6b59fa88 JB |
106 | Statyczne biblioteki GDAL. |
107 | ||
108 | %package -n python-gdal | |
109 | Summary: GDAL Python module | |
a28c1bee | 110 | Summary(pl.UTF-8): Moduł Pythona GDAL |
6b59fa88 | 111 | Group: Libraries/Python |
1673a634 | 112 | Requires: %{name} = %{version}-%{release} |
faf2b39a | 113 | %pyrequires_eq python-libs |
6b59fa88 JB |
114 | |
115 | %description -n python-gdal | |
116 | GDAL Python module. | |
117 | ||
d34f2ec8 JR |
118 | %description -n python-gdal -l pl.UTF-8 |
119 | Moduł Pythona GDAL. | |
6b59fa88 | 120 | |
faf5649c JB |
121 | %prep |
122 | %setup -q | |
123 | %patch0 -p1 | |
124 | %patch1 -p1 | |
d4d7a2c6 | 125 | %patch2 -p1 |
9c9da48d | 126 | %patch3 -p1 |
374370d5 | 127 | %patch4 -p1 |
4ed54fac | 128 | |
faf5649c | 129 | %build |
a3027d62 | 130 | # disable grass/libgrass here, it can be built from separate gdal-grass package |
faf5649c | 131 | %{__autoconf} |
6b59fa88 | 132 | %configure \ |
5014b82a | 133 | --datadir=%{_datadir}/gdal \ |
d4d7a2c6 | 134 | --with-dods-root=/usr \ |
1673a634 | 135 | --with-pymoddir=%{py_sitedir} \ |
d4d7a2c6 | 136 | --with-sqlite \ |
655672e5 | 137 | %{?with_xerces:--with-xerces} \ |
6b59fa88 | 138 | --with-xerces-inc=/usr/include/xercesc \ |
80faacbe | 139 | --with-xerces-lib="-lxerces-c" \ |
a3027d62 JB |
140 | --without-grass \ |
141 | --without-libgrass | |
faf5649c JB |
142 | |
143 | %{__make} | |
144 | ||
3a591acf JB |
145 | %{__make} docs |
146 | ||
faf5649c JB |
147 | %install |
148 | rm -rf $RPM_BUILD_ROOT | |
faf5649c | 149 | |
3a591acf JB |
150 | %{__make} install \ |
151 | DESTDIR=$RPM_BUILD_ROOT | |
152 | ||
153 | mv -f ogr/html html/org | |
faf5649c | 154 | |
374370d5 JB |
155 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
156 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
157 | %py_postclean | |
5014b82a JB |
158 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
159 | ||
faf5649c JB |
160 | %clean |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
6b59fa88 JB |
163 | %post -p /sbin/ldconfig |
164 | %postun -p /sbin/ldconfig | |
165 | ||
faf5649c JB |
166 | %files |
167 | %defattr(644,root,root,755) | |
c0a384ef | 168 | %doc NEWS PROVENANCE.TXT |
faf5649c | 169 | %attr(755,root,root) %{_bindir}/* |
5014b82a JB |
170 | %exclude %{_bindir}/gdal-config |
171 | %attr(755,root,root) %{_libdir}/libgdal.so.*.*.* | |
6b59fa88 | 172 | %{_datadir}/gdal |
5014b82a JB |
173 | %{_mandir}/man1/* |
174 | %exclude %{_mandir}/man1/gdal-config.1* | |
6b59fa88 JB |
175 | |
176 | %files devel | |
177 | %defattr(644,root,root,755) | |
3a591acf | 178 | %doc html/* |
5014b82a | 179 | %attr(755,root,root) %{_bindir}/gdal-config |
6b59fa88 | 180 | %attr(755,root,root) %{_libdir}/libgdal.so |
5014b82a | 181 | %{_libdir}/libgdal.la |
faf5649c | 182 | %{_includedir}/*.h |
5014b82a | 183 | %{_mandir}/man1/gdal-config.1* |
6b59fa88 JB |
184 | |
185 | %files static | |
186 | %defattr(644,root,root,755) | |
9b5c0fd4 | 187 | %{_libdir}/libgdal.a |
6b59fa88 JB |
188 | |
189 | %files -n python-gdal | |
190 | %defattr(644,root,root,755) | |
faf5649c | 191 | %attr(755,root,root) %{py_sitedir}/_gdalmodule.so |
374370d5 | 192 | %{py_sitedir}/*.py[co] |