- converted to UTF-8
[packages/gdal.git] / gdal.spec
CommitLineData
655672e5 1#
2# Conditional build:
3%bcond_without odbc # disable odbc support
4%bcond_without xerces # disable xerces support
5#
faf5649c 6Summary: Geospatial Data Abstraction Library
d34f2ec8 7Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi
faf5649c 8Name: gdal
c0a384ef 9Version: 1.3.2
655672e5 10Release: 3
faf5649c
JB
11License: BSD-like
12Group: Libraries
9b5c0fd4 13Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz
c0a384ef 14# Source0-md5: 67ed02dcea21e93f5e123bb0d322898a
3a591acf
JB
15Patch0: %{name}-pgsql.patch
16Patch1: %{name}-DESTDIR.patch
d4d7a2c6 17Patch2: %{name}-dods.patch
9c9da48d 18Patch3: %{name}-gcc4.patch
374370d5 19Patch4: %{name}-ac.patch
9b5c0fd4 20URL: http://www.gdal.org/
faf5649c 21BuildRequires: autoconf
6b59fa88 22BuildRequires: cfitsio-devel
3a591acf 23BuildRequires: doxygen
d44ae2ef 24BuildRequires: geos-devel >= 2.0
b459f4d7 25BuildRequires: giflib-devel >= 4.0
6b59fa88
JB
26BuildRequires: hdf-devel >= 4.0
27BuildRequires: jasper-devel
d4d7a2c6
JB
28BuildRequires: libcsf-devel
29BuildRequires: libdap-devel >= 3.5
b3cbf6a3 30BuildRequires: libgeotiff-devel >= 1.2.1
6b59fa88 31BuildRequires: libjpeg-devel >= 6b
e354fe40 32BuildRequires: libpng-devel >= 2:1.2.8
b3cbf6a3 33BuildRequires: libstdc++-devel
6b59fa88 34BuildRequires: libtiff-devel >= 3.6.0
b3cbf6a3 35BuildRequires: netcdf-devel
6b59fa88 36BuildRequires: ogdi-devel >= 3.1
faf5649c
JB
37BuildRequires: postgresql-devel
38BuildRequires: postgresql-backend-devel
39BuildRequires: python-devel
d4d7a2c6 40BuildRequires: sqlite3-devel >= 3
655672e5 41%{?with_odbc:BuildRequires: unixODBC-devel}
42%{?with_xerces:BuildRequires: xerces-c-devel >= 2.2.0}
faf5649c 43BuildRequires: zlib-devel >= 1.1.4
d44ae2ef 44Requires: geos >= 2.0
b3cbf6a3 45Requires: libgeotiff >= 1.2.1
e354fe40 46Requires: libpng >= 2:1.2.8
b3cbf6a3 47Requires: libtiff >= 3.6.0
faf5649c
JB
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
51GDAL is a translator library for raster geospatial data formats that
52is released under an Open Source license. As a library, it presents a
53single abstract data model to the calling application for all
54supported formats. The related OGR library (which lives within the
55GDAL source tree) provides a similar capability for simple features
56vector data.
f05c79e8 57
d34f2ec8
JR
58%description -l pl.UTF-8
59GDAL to biblioteka konwertująca między formatami rastrowych danych
60dotyczących powierzchni Ziemi, udostępniona na licencji Open Source.
61Jako biblioteka udostępnia aplikacjom jeden abstrakcyjny model danych
62do 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
64możliwości dla danych wektorowych.
faf5649c 65
6b59fa88
JB
66%package devel
67Summary: GDAL library header files
d34f2ec8 68Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GDAL
6b59fa88 69Group: Development/Libraries
1673a634 70Requires: %{name} = %{version}-%{release}
b3cbf6a3 71Requires: cfitsio-devel
d44ae2ef 72Requires: geos-devel >= 2.0
b459f4d7 73Requires: giflib-devel
b3cbf6a3
JB
74Requires: hdf-devel >= 4.0
75Requires: jasper-devel
d4d7a2c6
JB
76Requires: libcsf-devel
77Requires: libdap-devel >= 3.5
b3cbf6a3
JB
78Requires: libgeotiff-devel >= 1.2.1
79Requires: libjpeg-devel
e354fe40 80Requires: libpng-devel >= 2:1.2.8
b3cbf6a3
JB
81Requires: libstdc++-devel
82Requires: libtiff-devel >= 3.6.0
b3cbf6a3
JB
83Requires: netcdf-devel
84Requires: ogdi-devel >= 3.1
85Requires: postgresql-devel
d4d7a2c6 86Requires: 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
91GDAL library header files.
92
d34f2ec8
JR
93%description devel -l pl.UTF-8
94Pliki nagłówkowe biblioteki GDAL.
6b59fa88
JB
95
96%package static
97Summary: GDAL static libraries
d34f2ec8 98Summary(pl.UTF-8): Statyczne biblioteki GDAL
6b59fa88 99Group: Development/Libraries
1673a634 100Requires: %{name}-devel = %{version}-%{release}
6b59fa88
JB
101
102%description static
103GDAL static libraries.
104
d34f2ec8 105%description static -l pl.UTF-8
6b59fa88
JB
106Statyczne biblioteki GDAL.
107
108%package -n python-gdal
109Summary: GDAL Python module
d34f2ec8 110Summary(pl.UTF-8): Moduł Pythona GDAL
6b59fa88 111Group: Libraries/Python
1673a634 112Requires: %{name} = %{version}-%{release}
faf2b39a 113%pyrequires_eq python-libs
6b59fa88
JB
114
115%description -n python-gdal
116GDAL Python module.
117
d34f2ec8
JR
118%description -n python-gdal -l pl.UTF-8
119Moduł 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
148rm -rf $RPM_BUILD_ROOT
faf5649c 149
3a591acf
JB
150%{__make} install \
151 DESTDIR=$RPM_BUILD_ROOT
152
153mv -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
158rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
159
faf5649c
JB
160%clean
161rm -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]
This page took 0.056369 seconds and 4 git commands to generate.