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