4 # 1. Manuals conflicts with ImageMagick
5 # file /usr/X11R6/man/man1/display.1.gz from install of grass-5.0.0pre3-1
6 # conflicts with file from package ImageMagick-5.4.4-1
7 # file /usr/X11R6/man/man1/import.1.gz from install of grass-5.0.0pre3-1
8 # conflicts with file from package ImageMagick-5.4.4-1
10 # 2. see %install section :-\
11 # 3. 755 for etc/bin/cmd/*
14 Summary: The Geographic Resources Analysis Support System
15 Summary(pl): System obs³uguj±cy analizê zasobów geograficznych
20 Group: X11/Applications
21 Source0: http://grass.itc.it/grass5/source/%{name}%{version}_src.tar.gz
22 URL: http://grass.itc.it/
23 BuildRequires: OpenGL-devel
26 BuildRequires: blas-devel
27 BuildRequires: fftw-devel
29 BuildRequires: freetype-devel >= 2.0.0
30 BuildRequires: gcc-g77
31 #BuildRequires: gdal-devel
32 BuildRequires: gdbm-devel
33 BuildRequires: gd-devel
34 BuildRequires: lapack-devel
35 BuildRequires: libjpeg-devel
36 BuildRequires: libpng-devel
37 BuildRequires: libtiff-devel
38 BuildRequires: motif-devel
39 BuildRequires: ncurses-devel
40 BuildRequires: postgresql-backend-devel
41 BuildRequires: postgresql-devel
42 BuildRequires: tcl-devel
43 BuildRequires: tk-devel
44 BuildRequires: unixODBC-devel
45 BuildRequires: zlib-devel
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define _noautoreqdep libGL.so.1 libGLU.so.1
49 %define _prefix /usr/X11R6
50 %define _mandir %{_prefix}/man
51 %define _sysconfdir /etc/X11
54 GRASS (the Geographic Resources Analysis Support System) is a software
55 raster- and vector-based GIS (Geographic Information System), image
56 processing system, graphics production system, and spatial modeling
57 system. GRASS contains many modules for raster data manipulation,
58 vector data manipulation, rendering images on the monitor or paper,
59 multispectral image processing, point data management and general data
60 management. It also has tools for interfacing with digitizers,
61 scanners, and the RIM, Informix, Postgres, and Oracle databases.
64 GRASS (System Wspierania Analiz Zasobów Geograficznych) jest rastrowym
65 oraz wektorowym systemem GIS (System Informacji Geograficznej),
66 obróbki obrazów, tworzenia grafiki oraz modelowania przestrzennego.
67 GRASS zawiera wiele modu³ów wspomagaj±cych manipulacjê danymi
68 rastrowymi i wektorowymi, renderowanie obrazów na monitorze lub
69 papierze, obróbkê multispektralnych obrazów, punktowe oraz ogólne
70 zarz±dzanie danymi. Zawiera równie¿ narzêdzia do wspó³pracy z
71 digitizerami, skanerami oraz bazami RIM, Informix, Postgres oraz
75 Summary: NVIZ - a 3D-tool for GRASS
76 Summary(pl): NVIZ - narzêdzie 3D dla GRASSa
77 Group: X11/Applications
78 Requires: %{name} = %{version}
81 Package contains nviz, which is a GRASS module-in-progress which
82 allows users to realistically render multiple surfaces in a 3D space,
83 optionally using thematic coloring, draping GRASS vector files over
84 the surfaces, and displaying GRASS site files either draped on the
85 surfaces or as 3D point locations.
87 %description OpenGL -l pl
88 Pakiet zawiera modu³ nviz, który rozszerza funkcjonalno¶æ systemu
89 GRASS o mo¿liwo¶æ realistycznego renderowania wielu powierzchni w
90 trójwymiarowej przestrzeni. Na renderowanych powierzchniach, które
91 mog± byæ tematycznie kolorowane, mo¿na zawieszaæ pliki wektorowe
95 Summary: PostgreSQL database interface
96 Summary(pl): Interfejs do bazy PostgreSQL
97 Group: X11/Applications
98 Requires: %{name} = %{version}
101 PostgreSQL database interface for GRASS.
103 %dewscription pg -l pl
104 Interfejs do bazy PostgreSQL dla GRASSa.
107 Summary: ODBC database interface
108 Summary(pl): Interfejs ODBC dla GRASSa
109 Group: X11/Applications
110 Requires: %{name} = %{version}
113 ODBC database interface for GRASS.
115 %description odbc -l pl
116 Interfejs ODBC dla GRASSa.
119 Summary: Header files for GRASS
120 Summary(pl): Pliki nag³ówkowe systemu GRASS
121 Group: X11/Development/Libraries
122 Requires: %{name} = %{version}
125 Header files for GRASS.
127 %description devel -l pl
128 Pliki nag³ówkowe systemu GRASS.
131 Summary: GRASS static libraries
132 Summary(pl): Biblioteki statyczne systemu GRASS
133 Group: X11/Development/Libraries
134 Requires: %{name} = %{version}
137 GRASS static libraries.
139 %description static -l pl
140 Biblioteki statyczne systemu GRASS.
143 %setup -q -n %{name}%{version}
146 if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
147 CPPFLAGS="`pkg-config libpng12 --cflags`"; export CPPFLAGS
149 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"; export CFLAGS
150 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"; export CPPFLAGS
156 --with-includes=%{_includedir} \
157 --with-libs=%{_libdir} \
158 --with-postgres-includes=/usr/include/postgresql/server \
159 --with-freetype-includes=/usr/include/freetype2
163 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_includedir}/grass5,%{_libdir}/grass5,%{_bindir}}
169 awk '// {if (/^GISBASE/) { print "GISBASE=%{_libdir}/grass5" } else { print $0 }}' < grass5.in > grass5
170 install grass5 $RPM_BUILD_ROOT%{_bindir}
175 # bin: there are many binaries with the same content, i.e. d.*, i.* -
176 # create symlinks instead of binaries?
177 # etc: it is a big mess; do not move the content of "etc" dir to /etc
178 # txt: move to %docdir?
179 # tcltkgrass: separate package?
180 # bwidget: move to devel or separate package?
181 # dev: move the content to /dev or leave it as below?
182 cp -a bin bwidget etc dev driver fonts scripts tcltkgrass txt $RPM_BUILD_ROOT%{_libdir}/grass5
184 install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
185 install lib/* $RPM_BUILD_ROOT%{_libdir}
186 install include/* $RPM_BUILD_ROOT%{_includedir}/grass5
190 gzip -9nf AUTHORS BUGS COPYING NEWS.html ONGOING TODO.txt documents/*.*
193 rm -rf $RPM_BUILD_ROOT
196 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/*
199 %attr(-,root,root) %{_libdir}/grass5
202 #%dir %{_libdir}/grass5
203 #%dir %{_libdir}/grass5/bin
204 #%attr(755,root,root) %{_libdir}/grass5/bin/*
205 #%{_libdir}/grass5/bwidget
206 #%{_libdir}/grass5/etc
207 #%{_libdir}/grass5/dev
208 #%{_libdir}/grass5/driver
209 #%{_libdir}/grass5/fonts
210 #%{_libdir}/grass5/scripts
211 #%{_libdir}/grass5/tcltkgrass
212 #%{_libdir}/grass5/txt
216 %defattr(644,root,root,755)
217 %{_includedir}/grass5
220 %defattr(644,root,root,755)