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