]>
Commit | Line | Data |
---|---|---|
26c03d6f | 1 | # |
2 | # Conditional build, see http://grass.itc.it/grass61/source/REQUIREMENTS.html | |
3 | # for description of optional requirements. | |
4 | %bcond_without tcl # disable gui and nviz | |
5 | %bcond_without mysql # disable mysql support | |
6 | %bcond_without odbc # disable unixODBC support | |
7 | %bcond_without xanim # disable xanim module | |
8 | # | |
0e6ad8cb | 9 | Summary: The Geographic Resources Analysis Support System |
fc7b9e1a | 10 | Summary(pl.UTF-8): System obsługujący analizę zasobów geograficznych |
0e6ad8cb | 11 | Name: grass |
c778a52e | 12 | # see DEVEL branch before upgrading to 6.3.0 |
abbe3d39 | 13 | Version: 6.2.2 |
b0084fa8 | 14 | Release: 1 |
d5c59941 | 15 | Epoch: 1 |
0e6ad8cb AM |
16 | License: GPL |
17 | Group: X11/Applications | |
b0084fa8 | 18 | Source0: http://grass.itc.it/grass62/source/%{name}-%{version}.tar.gz |
abbe3d39 | 19 | # Source0-md5: abae40eff2b99b44e8d85f6eb9007c12 |
b0084fa8 JB |
20 | Patch0: %{name}-soname.patch |
21 | Patch1: %{name}-link.patch | |
e9da32ed | 22 | Patch2: %{name}-ffmpeg.patch |
0e6ad8cb | 23 | URL: http://grass.itc.it/ |
26c03d6f | 24 | %{?with_tcl:BuildRequires: OpenGL-GLU-devel} |
cf5583ca | 25 | BuildRequires: awk |
26 | BuildRequires: bison | |
0e6ad8cb | 27 | BuildRequires: blas-devel |
b0084fa8 | 28 | BuildRequires: ffmpeg-devel |
26c03d6f | 29 | BuildRequires: fftw3-devel |
cf5583ca | 30 | BuildRequires: flex |
f97defb0 | 31 | BuildRequires: freetype-devel >= 2.0.0 |
cf5583ca | 32 | BuildRequires: gcc-g77 |
6c5d0552 | 33 | BuildRequires: gdal-devel |
0e6ad8cb | 34 | BuildRequires: gdbm-devel |
cf5583ca | 35 | BuildRequires: gd-devel |
0e6ad8cb AM |
36 | BuildRequires: lapack-devel |
37 | BuildRequires: libjpeg-devel | |
38 | BuildRequires: libpng-devel | |
6c5d0552 | 39 | BuildRequires: libstdc++-devel |
0e6ad8cb | 40 | BuildRequires: libtiff-devel |
88e30566 | 41 | BuildRequires: man |
26c03d6f | 42 | %{?with_xanim:BuildRequires: motif-devel} |
43 | %{?with_mysql:BuildRequires: mysql-devel} | |
cf5583ca | 44 | BuildRequires: ncurses-devel |
3962fae7 | 45 | BuildRequires: postgresql-backend-devel |
0e6ad8cb | 46 | BuildRequires: postgresql-devel |
b0084fa8 | 47 | BuildRequires: proj-devel >= 4.4.6 |
6c5d0552 | 48 | BuildRequires: proj-progs |
b0084fa8 | 49 | BuildRequires: python-devel >= 1:2.3 |
6c5d0552 JB |
50 | BuildRequires: readline-devel |
51 | BuildRequires: sed >= 4.0 | |
b0084fa8 | 52 | BuildRequires: sqlite3-devel >= 3.0 |
26c03d6f | 53 | %{?with_tcl:BuildRequires: tcl-devel >= 8.4} |
54 | %{?with_tcl:BuildRequires: tk-devel >= 8.4} | |
55 | %{?with_odbc:BuildRequires: unixODBC-devel} | |
0e6ad8cb | 56 | BuildRequires: zlib-devel |
b0084fa8 JB |
57 | # R language? |
58 | Requires: proj >= 4.4.6 | |
0e6ad8cb AM |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
61 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
0e6ad8cb | 62 | %define _sysconfdir /etc/X11 |
b7cd003d | 63 | %define _target_platform %(echo %{_target_cpu}-%{_target_vendor}-%{_host_os} | sed -e 's/athlon/i686/;s/ppc/powerpc/;s/amd64/x86_64/') |
0e6ad8cb AM |
64 | |
65 | %description | |
66 | GRASS (the Geographic Resources Analysis Support System) is a software | |
67 | raster- and vector-based GIS (Geographic Information System), image | |
68 | processing system, graphics production system, and spatial modeling | |
69 | system. GRASS contains many modules for raster data manipulation, | |
70 | vector data manipulation, rendering images on the monitor or paper, | |
71 | multispectral image processing, point data management and general data | |
72 | management. It also has tools for interfacing with digitizers, | |
73 | scanners, and the RIM, Informix, Postgres, and Oracle databases. | |
74 | ||
fcef3eec JR |
75 | %description -l pl.UTF-8 |
76 | GRASS (System Wspierania Analiz Zasobów Geograficznych) jest rastrowym | |
6cbacda2 | 77 | oraz wektorowym systemem GIS (System Informacji Geograficznej), |
fcef3eec JR |
78 | obróbki obrazów, tworzenia grafiki oraz modelowania przestrzennego. |
79 | GRASS zawiera wiele modułów wspomagających manipulację danymi | |
80 | rastrowymi i wektorowymi, renderowanie obrazów na monitorze lub | |
81 | papierze, obróbkę multispektralnych obrazów, punktowe oraz ogólne | |
82 | zarządzanie danymi. Zawiera również narzędzia do współpracy z | |
0e6ad8cb AM |
83 | digitizerami, skanerami oraz bazami RIM, Informix, Postgres oraz |
84 | Oracle. | |
85 | ||
86 | %package OpenGL | |
6cbacda2 | 87 | Summary: NVIZ - a 3D-tool for GRASS |
fc7b9e1a | 88 | Summary(pl.UTF-8): NVIZ - narzędzie 3D dla GRASSa |
0e6ad8cb | 89 | Group: X11/Applications |
b0084fa8 | 90 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0e6ad8cb AM |
91 | |
92 | %description OpenGL | |
6cbacda2 | 93 | Package contains nviz, which is a GRASS module-in-progress which |
94 | allows users to realistically render multiple surfaces in a 3D space, | |
95 | optionally using thematic coloring, draping GRASS vector files over | |
96 | the surfaces, and displaying GRASS site files either draped on the | |
97 | surfaces or as 3D point locations. | |
98 | ||
fcef3eec JR |
99 | %description OpenGL -l pl.UTF-8 |
100 | Pakiet zawiera moduł nviz, który rozszerza funkcjonalność systemu | |
101 | GRASS o możliwość realistycznego renderowania wielu powierzchni w | |
102 | trójwymiarowej przestrzeni. Na renderowanych powierzchniach, które | |
103 | mogą być tematycznie kolorowane, można zawieszać pliki wektorowe | |
6cbacda2 | 104 | GRASSa. |
0e6ad8cb AM |
105 | |
106 | %package pg | |
6cbacda2 | 107 | Summary: PostgreSQL database interface |
fc7b9e1a | 108 | Summary(pl.UTF-8): Interfejs do bazy PostgreSQL |
0e6ad8cb | 109 | Group: X11/Applications |
b0084fa8 | 110 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0e6ad8cb AM |
111 | |
112 | %description pg | |
6cbacda2 | 113 | PostgreSQL database interface for GRASS. |
0e6ad8cb | 114 | |
fcef3eec | 115 | %description pg -l pl.UTF-8 |
0e6ad8cb AM |
116 | Interfejs do bazy PostgreSQL dla GRASSa. |
117 | ||
118 | %package odbc | |
119 | Summary: ODBC database interface | |
fc7b9e1a | 120 | Summary(pl.UTF-8): Interfejs ODBC dla GRASSa |
0e6ad8cb | 121 | Group: X11/Applications |
b0084fa8 | 122 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0e6ad8cb AM |
123 | |
124 | %description odbc | |
125 | ODBC database interface for GRASS. | |
126 | ||
fcef3eec | 127 | %description odbc -l pl.UTF-8 |
0e6ad8cb AM |
128 | Interfejs ODBC dla GRASSa. |
129 | ||
73fefc86 | 130 | %package devel |
049fac3f | 131 | Summary: Header files and static libraries for GRASS |
fc7b9e1a | 132 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki statyczne systemu GRASS |
73fefc86 | 133 | Group: X11/Development/Libraries |
73fefc86 | 134 | |
2948fa7c | 135 | %description devel |
049fac3f | 136 | Header files and static libraries for GRASS. |
73fefc86 | 137 | |
fcef3eec JR |
138 | %description devel -l pl.UTF-8 |
139 | Pliki nagłówkowe i biblioteki statyczne systemu GRASS. | |
73fefc86 | 140 | |
0e6ad8cb | 141 | %prep |
58fd06c5 | 142 | %setup -q |
6c5d0552 JB |
143 | %patch0 -p1 |
144 | %patch1 -p1 | |
e9da32ed | 145 | %patch2 -p1 |
0e6ad8cb AM |
146 | |
147 | %build | |
b0084fa8 | 148 | CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS |
0e6ad8cb | 149 | %configure2_13 \ |
b0084fa8 | 150 | --enable-largefile \ |
0e6ad8cb AM |
151 | --with-includes=%{_includedir} \ |
152 | --with-libs=%{_libdir} \ | |
6c5d0552 JB |
153 | --with-blas \ |
154 | --with-cxx \ | |
b0084fa8 JB |
155 | --with-ffmpeg \ |
156 | --with-ffmpeg-includes=/usr/include/ffmpeg \ | |
6c5d0552 JB |
157 | --with-freetype \ |
158 | --with-freetype-includes=/usr/include/freetype2 \ | |
159 | --with-lapack \ | |
26c03d6f | 160 | %{?with_xanim:--with-motif} \ |
161 | %{?with_mysql:--with-mysql} \ | |
162 | %{?with_mysql:--with-mysql-includes=/usr/include/mysql} \ | |
6c5d0552 | 163 | --with-nls \ |
26c03d6f | 164 | %{?with_odbc:--with-odbc} \ |
165 | --with%{!?with_tcl:out}-opengl \ | |
0e6ad8cb | 166 | --with-postgres-includes=/usr/include/postgresql/server \ |
b0084fa8 JB |
167 | --with-proj-share=/usr/share/proj \ |
168 | --with-python \ | |
169 | --with-readline \ | |
26c03d6f | 170 | --with-sqlite \ |
171 | --with%{!?with_tcl:out}-tcltk | |
0e6ad8cb AM |
172 | %{__make} |
173 | ||
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
6c5d0552 JB |
177 | %{__make} install \ |
178 | prefix=$RPM_BUILD_ROOT%{_libdir} \ | |
179 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ | |
180 | PREFIX=$RPM_BUILD_ROOT%{_libdir} | |
cf5583ca | 181 | |
b0084fa8 JB |
182 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_includedir}/grass62} |
183 | mv $RPM_BUILD_ROOT%{_libdir}/grass-%{version}/include/* $RPM_BUILD_ROOT%{_includedir}/grass62 | |
6c5d0552 JB |
184 | mv $RPM_BUILD_ROOT%{_libdir}/grass-%{version}/lib/* $RPM_BUILD_ROOT%{_libdir} |
185 | mv $RPM_BUILD_ROOT%{_libdir}/grass-%{version}/locale $RPM_BUILD_ROOT%{_datadir} | |
186 | mv $RPM_BUILD_ROOT%{_libdir}/grass-%{version}/man $RPM_BUILD_ROOT%{_datadir} | |
73fefc86 | 187 | |
b0084fa8 | 188 | sed -i -e 's,^GISBASE=.*,GISBASE=%{_libdir}/grass-%{version},' $RPM_BUILD_ROOT%{_bindir}/grass62 |
73fefc86 | 189 | |
6c5d0552 JB |
190 | cp -f lib/external/bwidget/CHANGES.txt bwidget.CHANGES.TXT |
191 | cp -f lib/external/bwidget/README.grass bwidget.README.grass | |
049fac3f | 192 | |
6c5d0552 | 193 | rm -rf $RPM_BUILD_ROOT%{_libdir}/grass-%{version}/{bwidget/{*.txt,README.grass},docs} |
0e6ad8cb | 194 | |
b0084fa8 JB |
195 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{pt_br,pt_BR} |
196 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN} | |
197 | ||
049fac3f | 198 | %find_lang %{name} --all-name |
0e6ad8cb AM |
199 | |
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
6c5d0552 JB |
203 | %post -p /sbin/ldconfig |
204 | %postun -p /sbin/ldconfig | |
205 | ||
049fac3f | 206 | %files -f %{name}.lang |
0e6ad8cb | 207 | %defattr(644,root,root,755) |
6c5d0552 | 208 | %doc AUTHORS CHANGES COPYING README TODO bwidget.CHANGES.TXT bwidget.README.grass dist.%{_target_platform}/docs/html |
cf5583ca | 209 | %attr(755,root,root) %{_bindir}/* |
6c5d0552 JB |
210 | %attr(755,root,root) %{_libdir}/*.so |
211 | %dir %{_libdir}/grass-%{version} | |
212 | %attr(755,root,root) %{_libdir}/grass-%{version}/bin | |
213 | %dir %{_libdir}/grass-%{version}/bwidget | |
214 | %{_libdir}/grass-%{version}/bwidget/*.tcl | |
215 | %{_libdir}/grass-%{version}/bwidget/images | |
216 | %dir %{_libdir}/grass-%{version}/bwidget/lang | |
217 | %lang(de) %{_libdir}/grass-%{version}/bwidget/lang/de.rc | |
218 | %{_libdir}/grass-%{version}/bwidget/lang/en.rc | |
219 | %lang(es) %{_libdir}/grass-%{version}/bwidget/lang/es.rc | |
220 | %lang(fr) %{_libdir}/grass-%{version}/bwidget/lang/fr.rc | |
221 | %attr(755,root,root) %{_libdir}/grass-%{version}/driver | |
222 | %dir %{_libdir}/grass-%{version}/etc | |
223 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/c[!e]* | |
224 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/d[.b]* | |
225 | %{_libdir}/grass-%{version}/etc/d[ai]* | |
b0084fa8 | 226 | %{_libdir}/grass-%{version}/etc/gintro.gif |
b0084fa8 | 227 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/grass-xterm-wrapper |
26c03d6f | 228 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/file_option.tcl |
229 | %{_libdir}/grass-%{version}/etc/gem | |
b0084fa8 JB |
230 | %{_libdir}/grass-%{version}/etc/grass_write_ascii.style |
231 | %dir %{_libdir}/grass-%{version}/etc/gui | |
232 | %{_libdir}/grass-%{version}/etc/gui/icons | |
6c5d0552 JB |
233 | %{_libdir}/grass-%{version}/etc/gtcltk |
234 | %dir %{_libdir}/grass-%{version}/etc/msgs | |
b0084fa8 JB |
235 | %lang(cs) %{_libdir}/grass-%{version}/etc/msgs/cs.msg |
236 | %lang(de) %{_libdir}/grass-%{version}/etc/msgs/de.msg | |
e9da32ed | 237 | %lang(es) %{_libdir}/grass-%{version}/etc/msgs/es.msg |
b0084fa8 JB |
238 | %lang(fr) %{_libdir}/grass-%{version}/etc/msgs/fr.msg |
239 | %lang(it) %{_libdir}/grass-%{version}/etc/msgs/it.msg | |
240 | %lang(ja) %{_libdir}/grass-%{version}/etc/msgs/ja.msg | |
e9da32ed | 241 | %lang(lv) %{_libdir}/grass-%{version}/etc/msgs/lv.msg |
b0084fa8 JB |
242 | %lang(pl) %{_libdir}/grass-%{version}/etc/msgs/pl.msg |
243 | %lang(pt_BR) %{_libdir}/grass-%{version}/etc/msgs/pt_br.msg | |
6c5d0552 | 244 | %lang(ru) %{_libdir}/grass-%{version}/etc/msgs/ru.msg |
b0084fa8 JB |
245 | %lang(tr) %{_libdir}/grass-%{version}/etc/msgs/tr.msg |
246 | %lang(vi) %{_libdir}/grass-%{version}/etc/msgs/vi.msg | |
6c5d0552 | 247 | %{_libdir}/grass-%{version}/etc/nad |
6c5d0552 JB |
248 | %{_libdir}/grass-%{version}/etc/ogr_csv |
249 | %dir %{_libdir}/grass-%{version}/etc/paint | |
b0084fa8 | 250 | %{_libdir}/grass-%{version}/etc/paint/patterns |
6c5d0552 | 251 | %{_libdir}/grass-%{version}/etc/paint/prolog.ps |
b0084fa8 | 252 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/prompt.sh |
6c5d0552 JB |
253 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/water |
254 | %{_libdir}/grass-%{version}/etc/FIPS.code | |
255 | %{_libdir}/grass-%{version}/etc/VERSION* | |
256 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/[Iilv]* | |
257 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/echo | |
258 | %{_libdir}/grass-%{version}/etc/el* | |
259 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/epsg_option.tcl | |
260 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/frame.* | |
261 | %{_libdir}/grass-%{version}/etc/freetypecap | |
262 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/g.mapsets.tcl | |
263 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/gis_set.tcl | |
264 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/grass-run.sh | |
265 | %{_libdir}/grass-%{version}/etc/grass_intro | |
266 | %{_libdir}/grass-%{version}/etc/gui.tcl | |
267 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/help.tcl | |
268 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/mon.* | |
269 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/make_location_epsg.sh | |
270 | %{_libdir}/grass-%{version}/etc/monitorcap | |
271 | %{_libdir}/grass-%{version}/etc/projections | |
272 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/r[!g]* | |
273 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/photo.* | |
274 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/s[!t]* | |
275 | %{_libdir}/grass-%{version}/etc/state* | |
276 | %{_libdir}/grass-%{version}/etc/welcome | |
277 | %{_libdir}/grass-%{version}/fonts | |
278 | %attr(755,root,root) %{_libdir}/grass-%{version}/scripts | |
73fefc86 | 279 | %{_mandir}/man1/* |
280 | ||
26c03d6f | 281 | %if %{with tcl} |
282 | %dir %{_libdir}/grass-%{version}/etc/dm | |
283 | %{_libdir}/grass-%{version}/etc/dm/*.gif | |
284 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/dm/*.tcl | |
285 | %dir %{_libdir}/grass-%{version}/etc/dm/script | |
286 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/dm/script/* | |
287 | %dir %{_libdir}/grass-%{version}/etc/form | |
288 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/form/form | |
289 | %{_libdir}/grass-%{version}/etc/form/*.tcl | |
290 | %dir %{_libdir}/grass-%{version}/etc/gm | |
291 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/gm/*.tcl | |
292 | %{_libdir}/grass-%{version}/etc/gm/*.gif | |
293 | %dir %{_libdir}/grass-%{version}/etc/gm/script | |
294 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/gm/script/* | |
295 | %dir %{_libdir}/grass-%{version}/etc/gui/menus | |
296 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/gui/menus/menu.tcl | |
297 | %dir %{_libdir}/grass-%{version}/etc/nviz2.2 | |
298 | %{_libdir}/grass-%{version}/etc/nviz2.2/bitmaps | |
299 | %dir %{_libdir}/grass-%{version}/etc/nviz2.2/scripts | |
300 | %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/[!ns]* | |
301 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/nviz2.2_script | |
302 | %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/nviz_init.tcl | |
303 | %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/nviz_params | |
304 | %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/s[!c]* | |
305 | %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/script_support.tcl | |
306 | %attr(755,root,root) %{_libdir}/grass-%{version}/etc/nviz2.2/scripts/script_[!s]* | |
307 | %endif | |
308 | ||
73fefc86 | 309 | %files devel |
310 | %defattr(644,root,root,755) | |
b0084fa8 | 311 | %{_includedir}/grass62 |
73fefc86 | 312 | %{_libdir}/*.a |