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