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