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