]> git.pld-linux.org Git - packages/gdal.git/blob - gdal.spec
- updated to 1.3.2, updated pgsql,DESTDIR,gcc4 patches
[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:        1
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        ftp://ftp.remotesensing.org/pub/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 URL:            http://www.remotesensing.org/gdal/
15 BuildRequires:  autoconf
16 BuildRequires:  cfitsio-devel
17 BuildRequires:  doxygen
18 BuildRequires:  geos-devel >= 2.0
19 BuildRequires:  giflib-devel >= 4.0
20 BuildRequires:  hdf-devel >= 4.0
21 BuildRequires:  jasper-devel
22 BuildRequires:  libcsf-devel
23 BuildRequires:  libdap-devel >= 3.5
24 BuildRequires:  libgeotiff-devel >= 1.2.1
25 BuildRequires:  libjpeg-devel >= 6b
26 BuildRequires:  libpng-devel >= 2:1.2.8
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libtiff-devel >= 3.6.0
29 BuildRequires:  netcdf-devel
30 BuildRequires:  ogdi-devel >= 3.1
31 BuildRequires:  postgresql-devel
32 BuildRequires:  postgresql-backend-devel
33 BuildRequires:  python-devel
34 BuildRequires:  sqlite3-devel >= 3
35 BuildRequires:  unixODBC-devel
36 BuildRequires:  xerces-c-devel >= 2.2.0
37 BuildRequires:  zlib-devel >= 1.1.4
38 Requires:       geos >= 2.0
39 Requires:       libgeotiff >= 1.2.1
40 Requires:       libpng >= 2:1.2.8
41 Requires:       libtiff >= 3.6.0
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 GDAL is a translator library for raster geospatial data formats that
46 is released under an Open Source license. As a library, it presents a
47 single abstract data model to the calling application for all
48 supported formats. The related OGR library (which lives within the
49 GDAL source tree) provides a similar capability for simple features
50 vector data.
51
52 %description -l pl
53 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
54 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
55 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
56 do wszystkich obs³ugiwanych formatów. Powi±zana z ni± biblioteka OGR
57 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
58 mo¿liwo¶ci dla danych wektorowych.
59
60 %package devel
61 Summary:        GDAL library header files
62 Summary(pl):    Pliki nag³ówkowe biblioteki GDAL
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       cfitsio-devel
66 Requires:       geos-devel >= 2.0
67 Requires:       giflib-devel
68 Requires:       hdf-devel >= 4.0
69 Requires:       jasper-devel
70 Requires:       libcsf-devel
71 Requires:       libdap-devel >= 3.5
72 Requires:       libgeotiff-devel >= 1.2.1
73 Requires:       libjpeg-devel
74 Requires:       libpng-devel >= 2:1.2.8
75 Requires:       libstdc++-devel
76 Requires:       libtiff-devel >= 3.6.0
77 Requires:       netcdf-devel
78 Requires:       ogdi-devel >= 3.1
79 Requires:       postgresql-devel
80 Requires:       sqlite3-devel >= 3
81 Requires:       unixODBC-devel
82 Requires:       xerces-c-devel >= 2.2.0
83
84 %description devel
85 GDAL library header files.
86
87 %description devel -l pl
88 Pliki nag³ówkowe biblioteki GDAL.
89
90 %package static
91 Summary:        GDAL static libraries
92 Summary(pl):    Statyczne biblioteki GDAL
93 Group:          Development/Libraries
94 Requires:       %{name}-devel = %{version}-%{release}
95
96 %description static
97 GDAL static libraries.
98
99 %description static -l pl
100 Statyczne biblioteki GDAL.
101
102 %package -n python-gdal
103 Summary:        GDAL Python module
104 Summary(pl):    Modu³ Pythona GDAL
105 Group:          Libraries/Python
106 Requires:       %{name} = %{version}-%{release}
107 %pyrequires_eq  python-libs
108
109 %description -n python-gdal
110 GDAL Python module.
111
112 %description -n python-gdal -l pl
113 Modu³ Pythona GDAL.
114
115 %prep
116 %setup -q
117 %patch0 -p1
118 %patch1 -p1
119 %patch2 -p1
120 %patch3 -p1
121
122 %{__perl} -pi -e "s/PYLIB=lib/PYLIB=%{_lib}/" aclocal.m4
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 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
151
152 %clean
153 rm -rf $RPM_BUILD_ROOT
154
155 %post   -p /sbin/ldconfig
156 %postun -p /sbin/ldconfig
157
158 %files
159 %defattr(644,root,root,755)
160 %doc NEWS PROVENANCE.TXT
161 %attr(755,root,root) %{_bindir}/*
162 %exclude %{_bindir}/gdal-config
163 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
164 %{_datadir}/gdal
165 %{_mandir}/man1/*
166 %exclude %{_mandir}/man1/gdal-config.1*
167
168 %files devel
169 %defattr(644,root,root,755)
170 %doc html/*
171 %attr(755,root,root) %{_bindir}/gdal-config
172 %attr(755,root,root) %{_libdir}/libgdal.so
173 %{_libdir}/libgdal.la
174 %{_includedir}/*.h
175 %{_mandir}/man1/gdal-config.1*
176
177 %files static
178 %defattr(644,root,root,755)
179 %{_libdir}/*.a
180
181 %files -n python-gdal
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so
184 %{py_sitedir}/*.py
This page took 0.118441 seconds and 4 git commands to generate.