]> git.pld-linux.org Git - packages/grass.git/blame - grass.spec
- up to 7.2.1
[packages/grass.git] / grass.spec
CommitLineData
8c365099 1# TODO
d62d471a 2# - openDWG
26c03d6f 3#
4# Conditional build, see http://grass.itc.it/grass61/source/REQUIREMENTS.html
5# for description of optional requirements.
d62d471a
JB
6%bcond_without mysql # MySQL support
7%bcond_without odbc # unixODBC support
6c760b77 8
0e6ad8cb 9Summary: The Geographic Resources Analysis Support System
fc7b9e1a 10Summary(pl.UTF-8): System obsługujący analizę zasobów geograficznych
0e6ad8cb 11Name: grass
bd6b2588
JR
12Version: 7.2.1
13Release: 1
d5c59941 14Epoch: 1
aad468fb 15License: GPL v2+
0e6ad8cb 16Group: X11/Applications
bd6b2588
JR
17Source0: http://grass.osgeo.org/grass72/source/%{name}-%{version}.tar.gz
18# Source0-md5: 5c858c718d40a4f3e82741e60c9f7b97
b0084fa8 19Patch0: %{name}-soname.patch
91be88b5 20Patch1: %{name}-ac.patch
91be88b5 21Patch3: %{name}-ctypesgen.patch
21977e2e 22URL: http://grass.osgeo.org/
91be88b5 23BuildRequires: OpenGL-GLU-devel
7f1c1d86
JB
24BuildRequires: autoconf >= 2.13
25BuildRequires: automake
cf5583ca 26BuildRequires: bison
0e6ad8cb 27BuildRequires: blas-devel
1aadebaa 28BuildRequires: cairo-devel
d62d471a 29BuildRequires: fftw3-devel >= 3
cf5583ca 30BuildRequires: flex
f97defb0 31BuildRequires: freetype-devel >= 2.0.0
6c760b77
ER
32BuildRequires: gcc-fortran
33BuildRequires: gd-devel
6c5d0552 34BuildRequires: gdal-devel
0e6ad8cb 35BuildRequires: gdbm-devel
67735c53 36BuildRequires: geos-devel
0e6ad8cb
AM
37BuildRequires: lapack-devel
38BuildRequires: libjpeg-devel
39BuildRequires: libpng-devel
6c5d0552 40BuildRequires: libstdc++-devel
0e6ad8cb 41BuildRequires: libtiff-devel
d62d471a
JB
42# man or man-db
43BuildRequires: /usr/bin/man
26c03d6f 44%{?with_mysql:BuildRequires: mysql-devel}
d62d471a 45BuildRequires: pkgconfig
3962fae7 46BuildRequires: postgresql-backend-devel
0e6ad8cb 47BuildRequires: postgresql-devel
b0084fa8 48BuildRequires: proj-devel >= 4.4.6
6c5d0552 49BuildRequires: proj-progs
b0084fa8 50BuildRequires: python-devel >= 1:2.3
d62d471a 51BuildRequires: python-wxPython
6c5d0552
JB
52BuildRequires: readline-devel
53BuildRequires: sed >= 4.0
b0084fa8 54BuildRequires: sqlite3-devel >= 3.0
26c03d6f 55%{?with_odbc:BuildRequires: unixODBC-devel}
d62d471a
JB
56BuildRequires: wxGTK2-unicode-devel >= 2.8.1
57BuildRequires: xorg-lib-libX11-devel
58BuildRequires: xorg-lib-libXext-devel
59BuildRequires: xorg-lib-libXt-devel
0e6ad8cb 60BuildRequires: zlib-devel
b0084fa8
JB
61# R language?
62Requires: proj >= 4.4.6
0e6ad8cb
AM
63BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
21977e2e 65%define gver %{version}
1f82d375 66%define _noautoreqdep libGL.so.1 libGLU.so.1
0e6ad8cb
AM
67%define _sysconfdir /etc/X11
68
69%description
70GRASS (the Geographic Resources Analysis Support System) is a software
71raster- and vector-based GIS (Geographic Information System), image
72processing system, graphics production system, and spatial modeling
73system. GRASS contains many modules for raster data manipulation,
74vector data manipulation, rendering images on the monitor or paper,
75multispectral image processing, point data management and general data
76management. It also has tools for interfacing with digitizers,
77scanners, and the RIM, Informix, Postgres, and Oracle databases.
78
fcef3eec
JR
79%description -l pl.UTF-8
80GRASS (System Wspierania Analiz Zasobów Geograficznych) jest rastrowym
6cbacda2 81oraz wektorowym systemem GIS (System Informacji Geograficznej),
fcef3eec
JR
82obróbki obrazów, tworzenia grafiki oraz modelowania przestrzennego.
83GRASS zawiera wiele modułów wspomagających manipulację danymi
84rastrowymi i wektorowymi, renderowanie obrazów na monitorze lub
85papierze, obróbkę multispektralnych obrazów, punktowe oraz ogólne
86zarządzanie danymi. Zawiera również narzędzia do współpracy z
0e6ad8cb
AM
87digitizerami, skanerami oraz bazami RIM, Informix, Postgres oraz
88Oracle.
89
90%package OpenGL
6cbacda2 91Summary: NVIZ - a 3D-tool for GRASS
fc7b9e1a 92Summary(pl.UTF-8): NVIZ - narzędzie 3D dla GRASSa
0e6ad8cb 93Group: X11/Applications
b0084fa8 94Requires: %{name} = %{epoch}:%{version}-%{release}
0e6ad8cb
AM
95
96%description OpenGL
6cbacda2 97Package contains nviz, which is a GRASS module-in-progress which
98allows users to realistically render multiple surfaces in a 3D space,
99optionally using thematic coloring, draping GRASS vector files over
100the surfaces, and displaying GRASS site files either draped on the
101surfaces or as 3D point locations.
102
fcef3eec
JR
103%description OpenGL -l pl.UTF-8
104Pakiet zawiera moduł nviz, który rozszerza funkcjonalność systemu
105GRASS o możliwość realistycznego renderowania wielu powierzchni w
106trójwymiarowej przestrzeni. Na renderowanych powierzchniach, które
107mogą być tematycznie kolorowane, można zawieszać pliki wektorowe
6cbacda2 108GRASSa.
0e6ad8cb
AM
109
110%package pg
6cbacda2 111Summary: PostgreSQL database interface
fc7b9e1a 112Summary(pl.UTF-8): Interfejs do bazy PostgreSQL
0e6ad8cb 113Group: X11/Applications
b0084fa8 114Requires: %{name} = %{epoch}:%{version}-%{release}
0e6ad8cb
AM
115
116%description pg
6cbacda2 117PostgreSQL database interface for GRASS.
0e6ad8cb 118
fcef3eec 119%description pg -l pl.UTF-8
0e6ad8cb
AM
120Interfejs do bazy PostgreSQL dla GRASSa.
121
122%package odbc
123Summary: ODBC database interface
fc7b9e1a 124Summary(pl.UTF-8): Interfejs ODBC dla GRASSa
0e6ad8cb 125Group: X11/Applications
b0084fa8 126Requires: %{name} = %{epoch}:%{version}-%{release}
0e6ad8cb
AM
127
128%description odbc
129ODBC database interface for GRASS.
130
fcef3eec 131%description odbc -l pl.UTF-8
0e6ad8cb
AM
132Interfejs ODBC dla GRASSa.
133
73fefc86 134%package devel
049fac3f 135Summary: Header files and static libraries for GRASS
fc7b9e1a 136Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki statyczne systemu GRASS
73fefc86 137Group: X11/Development/Libraries
0ba83fa3 138Requires: %{name} = %{epoch}:%{version}-%{release}
73fefc86 139
2948fa7c 140%description devel
049fac3f 141Header files and static libraries for GRASS.
73fefc86 142
fcef3eec
JR
143%description devel -l pl.UTF-8
144Pliki nagłówkowe i biblioteki statyczne systemu GRASS.
73fefc86 145
0e6ad8cb 146%prep
58fd06c5 147%setup -q
6c5d0552 148%patch0 -p1
6c760b77 149%patch1 -p1
7f1c1d86 150%patch3 -p1
6c760b77 151
91be88b5
JB
152%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
153 display/d.text/test.pl
154 raster/r.topidx/gridatb.to.arc.pl \
155 raster/r.topidx/arc.to.gridatb.pl
156
157find general gui imagery lib/python/pygrass lib/init raster scripts temporal tools -name '*.py' | xargs grep -l '/usr/bin/env python' | xargs %{__sed} -i -e '1s,/usr/bin/env python,%{__python},'
0e6ad8cb
AM
158
159%build
6c760b77
ER
160%{__libtoolize}
161%{__aclocal}
162%{__autoconf}
7f1c1d86
JB
163%configure \
164%if "%{_lib}" == "lib64"
733c08e3
TP
165 --enable-64bit \
166%endif
b0084fa8 167 --enable-largefile \
0e6ad8cb
AM
168 --with-includes=%{_includedir} \
169 --with-libs=%{_libdir} \
6c5d0552 170 --with-blas \
1aadebaa 171 --with-cairo \
6c5d0552
JB
172 --with-cxx \
173 --with-freetype \
174 --with-freetype-includes=/usr/include/freetype2 \
d62d471a 175 --with-geos=/usr/bin/geos-config \
6c5d0552 176 --with-lapack \
26c03d6f 177 %{?with_mysql:--with-mysql} \
178 %{?with_mysql:--with-mysql-includes=/usr/include/mysql} \
6c5d0552 179 --with-nls \
26c03d6f 180 %{?with_odbc:--with-odbc} \
91be88b5 181 --with-opengl \
21977e2e 182 --with-postgres \
0e6ad8cb 183 --with-postgres-includes=/usr/include/postgresql/server \
b0084fa8 184 --with-proj-share=/usr/share/proj \
b0084fa8 185 --with-readline \
26c03d6f 186 --with-sqlite \
1aadebaa 187 --with-wxwidgets=/usr/bin/wx-gtk2-unicode-config
d62d471a 188
0e6ad8cb
AM
189%{__make}
190
191%install
192rm -rf $RPM_BUILD_ROOT
193
6c5d0552
JB
194%{__make} install \
195 prefix=$RPM_BUILD_ROOT%{_libdir} \
196 BINDIR=$RPM_BUILD_ROOT%{_bindir} \
197 PREFIX=$RPM_BUILD_ROOT%{_libdir}
cf5583ca 198
bd6b2588
JR
199install -d $RPM_BUILD_ROOT{%{_datadir},%{_includedir}/grass72}
200%{__mv} $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/include/* $RPM_BUILD_ROOT%{_includedir}/grass72
329538b4
JB
201%{__mv} $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/lib/* $RPM_BUILD_ROOT%{_libdir}
202%{__mv} $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/locale $RPM_BUILD_ROOT%{_datadir}
91be88b5
JB
203%{__mv} $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/docs/man $RPM_BUILD_ROOT%{_datadir}
204%{__mv} $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/share/{appdata,applications,icons} $RPM_BUILD_ROOT%{_datadir}
73fefc86 205
91be88b5
JB
206# these manual cover topics, not programs, so shouldn't exist in section 1
207# (maybe in section 7, but names are too common anyway); keep HTML version only
bd6b2588 208%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{cairodriver,database,databaseintro,display,displaydrivers,full_index,general,helptext,htmldriver,imagery,imageryintro,index,keywords,pngdriver,postscript,projectionintro,psdriver,raster,rasterintro,raster3d,raster3dintro,sql,temporal,temporalintro,topics,variables,vector,vectorascii,vectorintro}.1
73fefc86 209
91be88b5 210%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/grass-%{gver}/docs
0e6ad8cb 211
329538b4
JB
212%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{pt_br,pt_BR}
213%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN}
b0084fa8 214
7f1c1d86
JB
215%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/AUTHORS
216%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/CHANGES
217%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/COPYING
218%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/GPL.TXT
219%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/REQUIREMENTS.html
6c760b77 220
049fac3f 221%find_lang %{name} --all-name
0e6ad8cb
AM
222
223%clean
224rm -rf $RPM_BUILD_ROOT
225
6c5d0552
JB
226%post -p /sbin/ldconfig
227%postun -p /sbin/ldconfig
228
049fac3f 229%files -f %{name}.lang
0e6ad8cb 230%defattr(644,root,root,755)
91be88b5 231%doc AUTHORS CHANGES COPYING README TODO
bd6b2588 232#%attr(755,root,root) %{_bindir}/grass72
7f1c1d86 233%attr(755,root,root) %{_libdir}/libgrass_*.%{version}.so
21977e2e 234%dir %{_libdir}/grass-%{gver}
7f1c1d86 235%dir %{_libdir}/grass-%{gver}/*.csv
91be88b5 236%attr(755,root,root) %{_libdir}/grass-%{gver}/config.status
21977e2e 237%attr(755,root,root) %{_libdir}/grass-%{gver}/bin
21977e2e 238%attr(755,root,root) %{_libdir}/grass-%{gver}/driver
239%dir %{_libdir}/grass-%{gver}/etc
1aadebaa 240%{_libdir}/grass-%{gver}/etc/VERSIONNUMBER
1aadebaa
JB
241%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/clean_temp
242%{_libdir}/grass-%{gver}/etc/colors
243%{_libdir}/grass-%{gver}/etc/colors.desc
244%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/current_time_s_ms
245%{_libdir}/grass-%{gver}/etc/d.polar
1aadebaa
JB
246%{_libdir}/grass-%{gver}/etc/db.test
247%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/echo
248%{_libdir}/grass-%{gver}/etc/element_list
21977e2e 249%{_libdir}/grass-%{gver}/etc/fontcap
bd6b2588 250%{_libdir}/grass-%{gver}/etc/grass72.py
1aadebaa 251%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/i.find
1aadebaa
JB
252%{_libdir}/grass-%{gver}/etc/license
253%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/lister
254%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/lock
1aadebaa 255%{_libdir}/grass-%{gver}/etc/paint
91be88b5 256%{_libdir}/grass-%{gver}/etc/proj
21977e2e 257%{_libdir}/grass-%{gver}/etc/psdriver.ps
1aadebaa
JB
258%{_libdir}/grass-%{gver}/etc/python
259%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/r.in.wms
91be88b5
JB
260%dir %{_libdir}/grass-%{gver}/etc/r.watershed
261%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/r.watershed/ram
262%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/r.watershed/seg
263%{_libdir}/grass-%{gver}/etc/renamed_options
1aadebaa 264%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/run
91be88b5 265%{_libdir}/grass-%{gver}/etc/sql
1aadebaa 266%{_libdir}/grass-%{gver}/etc/symbol
91be88b5 267%attr(755,root,root) %{_libdir}/grass-%{gver}/etc/wxpyimgview_gui.py
21977e2e 268%{_libdir}/grass-%{gver}/fonts
91be88b5
JB
269%dir %{_libdir}/grass-%{gver}/gui
270%{_libdir}/grass-%{gver}/gui/icons
271%{_libdir}/grass-%{gver}/gui/images
272%dir %{_libdir}/grass-%{gver}/gui/scripts
273%attr(755,root,root) %{_libdir}/grass-%{gver}/gui/scripts/d.*
274%dir %{_libdir}/grass-%{gver}/gui/wxpython
275%{_libdir}/grass-%{gver}/gui/wxpython/README
276%{_libdir}/grass-%{gver}/gui/wxpython/animation
277%{_libdir}/grass-%{gver}/gui/wxpython/core
278%{_libdir}/grass-%{gver}/gui/wxpython/dbmgr
279%{_libdir}/grass-%{gver}/gui/wxpython/gcp
280%{_libdir}/grass-%{gver}/gui/wxpython/gmodeler
281%{_libdir}/grass-%{gver}/gui/wxpython/gui_core
282%{_libdir}/grass-%{gver}/gui/wxpython/iclass
283%{_libdir}/grass-%{gver}/gui/wxpython/icons
284%{_libdir}/grass-%{gver}/gui/wxpython/iscatt
285%{_libdir}/grass-%{gver}/gui/wxpython/lmgr
286%{_libdir}/grass-%{gver}/gui/wxpython/location_wizard
287%{_libdir}/grass-%{gver}/gui/wxpython/mapdisp
288%{_libdir}/grass-%{gver}/gui/wxpython/mapswipe
289%{_libdir}/grass-%{gver}/gui/wxpython/mapwin
290%{_libdir}/grass-%{gver}/gui/wxpython/modules
291%{_libdir}/grass-%{gver}/gui/wxpython/nviz
292%{_libdir}/grass-%{gver}/gui/wxpython/psmap
293%{_libdir}/grass-%{gver}/gui/wxpython/rlisetup
294%{_libdir}/grass-%{gver}/gui/wxpython/timeline
295%{_libdir}/grass-%{gver}/gui/wxpython/tplot
296%{_libdir}/grass-%{gver}/gui/wxpython/vdigit
297%{_libdir}/grass-%{gver}/gui/wxpython/vnet
298%{_libdir}/grass-%{gver}/gui/wxpython/web_services
299%{_libdir}/grass-%{gver}/gui/wxpython/wxplot
300%{_libdir}/grass-%{gver}/gui/wxpython/xml
301%{_libdir}/grass-%{gver}/gui/wxpython/gis_set*.py*
302%{_libdir}/grass-%{gver}/gui/wxpython/wxgui.py*
303%{_libdir}/grass-%{gver}/gui/xml
21977e2e 304%attr(755,root,root) %{_libdir}/grass-%{gver}/scripts
1aadebaa 305%dir %{_libdir}/grass-%{gver}/tools
d62d471a 306%attr(755,root,root) %{_libdir}/grass-%{gver}/tools/g.echo
91be88b5
JB
307%attr(755,root,root) %{_libdir}/grass-%{gver}/tools/g.html2man.py
308%{_libdir}/grass-%{gver}/tools/groff.py*
309%{_libdir}/grass-%{gver}/tools/html.py*
310%attr(755,root,root) %{_libdir}/grass-%{gver}/tools/mkhtml.py
311%{_libdir}/grass-%{gver}/translation_status.json
312# default (demo?) database - subpackage?
313%{_libdir}/grass-%{gver}/demolocation
314%{_datadir}/appdata/grass.appdata.xml
315%{_desktopdir}/grass.desktop
bd6b2588
JR
316%{_iconsdir}/hicolor/*x*/apps/grass.png
317%{_iconsdir}/hicolor/scalable/apps/grass.svg
1aadebaa 318%{_mandir}/man1/d.*.1*
1aadebaa 319%{_mandir}/man1/db.*.1*
1aadebaa 320%{_mandir}/man1/g.*.1*
91be88b5 321%{_mandir}/man1/grass7.1*
1aadebaa 322%{_mandir}/man1/grass-*.1*
1aadebaa 323%{_mandir}/man1/i.*.1*
1aadebaa
JB
324%{_mandir}/man1/lrs.1*
325%{_mandir}/man1/m.*.1*
1aadebaa
JB
326%{_mandir}/man1/ps.map.1*
327%{_mandir}/man1/r.*.1*
328%{_mandir}/man1/r3.*.1*
91be88b5
JB
329%{_mandir}/man1/t.*.1*
330%{_mandir}/man1/topic_*.1*
1aadebaa 331%{_mandir}/man1/v.*.1*
91be88b5 332%{_mandir}/man1/wxpyimgview.1*
1aadebaa 333%{_mandir}/man1/wxGUI*.1*
91be88b5 334%{_mandir}/man1/ximgview.1*
26c03d6f 335
73fefc86 336%files devel
337%defattr(644,root,root,755)
bd6b2588 338%doc dist.*/docs/html/*
7f1c1d86 339%attr(755,root,root) %{_libdir}/libgrass_*[!0-9].so
91be88b5 340%attr(755,root,root) %{_libdir}/libgrass_btree2.so
7f1c1d86
JB
341%attr(755,root,root) %{_libdir}/libgrass_dig2.so
342%{_libdir}/libgrass_iostream.%{version}.a
bd6b2588 343%{_includedir}/grass72
This page took 0.103495 seconds and 4 git commands to generate.