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