]> git.pld-linux.org Git - packages/gdal.git/blob - gdal.spec
- added aclocal.m4 hack - there are some hardcoded 'lib' beside pymoddir
[packages/gdal.git] / gdal.spec
1 #
2 # TODO:
3 # - consider using GRASS (or GDAL in GRASS? build trap possible)
4 #
5 %include        /usr/lib/rpm/macros.python
6 Summary:        Geospatial Data Abstraction Library
7 Summary(pl):    Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
8 Name:           gdal
9 Version:        1.1.9
10 Release:        1
11 License:        BSD-like
12 Group:          Libraries
13 Source0:        ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz
14 # Source0-md5:  2183e206affc7bf25e0d33459ccb8572
15 Patch0:         %{name}-pgsql.patch
16 Patch1:         %{name}-DESTDIR.patch
17 Patch2:         %{name}-soname.patch
18 Patch3:         %{name}-xerces.patch
19 URL:            http://www.remotesensing.org/gdal/
20 BuildRequires:  autoconf
21 BuildRequires:  cfitsio-devel
22 BuildRequires:  doxygen
23 BuildRequires:  hdf-devel >= 4.0
24 BuildRequires:  jasper-devel
25 BuildRequires:  libgeotiff-devel
26 BuildRequires:  libjpeg-devel >= 6b
27 BuildRequires:  libpng-devel >= 1.0.6
28 BuildRequires:  libtiff-devel >= 3.6.0
29 BuildRequires:  libungif-devel >= 4.0
30 BuildRequires:  ogdi-devel >= 3.1
31 BuildRequires:  postgresql-devel
32 BuildRequires:  postgresql-backend-devel
33 BuildRequires:  python-devel
34 BuildRequires:  rpm-pythonprov
35 BuildRequires:  xerces-c-devel >= 2.2.0
36 BuildRequires:  zlib-devel >= 1.1.4
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 GDAL is a translator library for raster geospatial data formats that
41 is released under an Open Source license. As a library, it presents a
42 single abstract data model to the calling application for all
43 supported formats. The related OGR library (which lives within the
44 GDAL source tree) provides a similar capability for simple features
45 vector data.
46
47 %description -l pl
48 GDAL to biblioteka konwertuj±ca miêdzy formatami rastrowych danych
49 dotycz±cych powierzchni Ziemi, udostêpniona na licencji Open Source.
50 Jako biblioteka udostêpnia aplikacjom jeden abstrakcyjny model danych
51 do wszystkich obs³ugiwanych formatów. Powi±zana z nia biblioteka OGR
52 (której ¼ród³a s± do³±czone do drzewa ¼róde³ GDAL) daje podobne
53 mo¿liwo¶ci dla danych wektorowych.
54
55 %package devel
56 Summary:        GDAL library header files
57 Summary(pl):    Pliki nag³ówkowe biblioteki GDAL
58 Group:          Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60
61 %description devel
62 GDAL library header files.
63
64 %description devel -l pl
65 Pliki nag³ówkowe biblioteki GDAL.
66
67 %package static
68 Summary:        GDAL static libraries
69 Summary(pl):    Statyczne biblioteki GDAL
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72
73 %description static
74 GDAL static libraries.
75
76 %description static -l pl
77 Statyczne biblioteki GDAL.
78
79 %package -n python-gdal
80 Summary:        GDAL Python module
81 Summary(pl):    Modu³ Pythona GDAL
82 Group:          Libraries/Python
83 Requires:       %{name} = %{version}-%{release}
84
85 %description -n python-gdal
86 GDAL Python module.
87
88 %description -n python-gdal -l pl
89 Modu³ Pythona GDAL.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 %patch1 -p1
95 %patch2 -p1
96 %patch3 -p1
97
98 %{__perl} -pi -e "s@lib/python@%{_lib}/python@" aclocal.m4
99
100 %build
101 %{__autoconf}
102 %configure \
103         --with-pymoddir=%{py_sitedir} \
104         --with-xerces \
105         --with-xerces-inc=/usr/include/xercesc \
106         --with-xerces-lib="-lxerces-c" \
107         --without-grass
108
109 %{__make}
110
111 %{__make} docs
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 mv -f ogr/html html/org
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
128 %defattr(644,root,root,755)
129 %doc ChangeLog NEWS
130 %attr(755,root,root) %{_bindir}/*
131 %attr(755,root,root) %{_libdir}/libgdal.*.so
132 %{_datadir}/gdal
133
134 %files devel
135 %defattr(644,root,root,755)
136 %doc html/*
137 %attr(755,root,root) %{_libdir}/libgdal.so
138 %{_includedir}/*.h
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/*.a
143
144 %files -n python-gdal
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{py_sitedir}/_gdalmodule.so
147 %{py_sitedir}/*.py
This page took 0.06317 seconds and 4 git commands to generate.