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