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