]> git.pld-linux.org Git - packages/spatialite_gis.git/blob - spatialite_gis.spec
- release 5 (by relup.sh)
[packages/spatialite_gis.git] / spatialite_gis.spec
1 Summary:        Minimalistic GIS tool built on top of SpatiaLite and RasterLite
2 Summary(pl.UTF-8):      Minimalistyczne narzędzie GIS stworzone w oparciu o SpatiaLite i RasterLite
3 Name:           spatialite_gis
4 Version:        1.0.0c
5 Release:        5
6 License:        GPL v3+
7 Group:          Applications/Databases
8 Source0:        http://www.gaia-gis.it/gaia-sins/spatialite-gis-sources/%{name}-%{version}.tar.gz
9 # Source0-md5:  81de8d7f3e20038bd2ec721edc02dfb0
10 Patch0:         wxWidgets3.patch
11 URL:            https://www.gaia-gis.it/fossil/spatialite_gis
12 BuildRequires:  freexl-devel
13 BuildRequires:  geos-devel
14 BuildRequires:  libgeotiff-devel
15 BuildRequires:  libharu-devel
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  librasterlite-devel
19 BuildRequires:  libspatialite-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtiff-devel
22 BuildRequires:  pkgconfig
23 BuildRequires:  proj-devel >= 4
24 BuildRequires:  wxGTK2-unicode-devel >= 2.8.12-4
25 BuildRequires:  zlib-devel
26 Requires:       wxGTK2-unicode >= 2.8.12-4
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Minimalistic GIS tool built on top of SpatiaLite and RasterLite.
31
32 %description -l pl.UTF-8
33 Minimalistyczne narzędzie GIS stworzone w oparciu o SpatiaLite i
34 RasterLite.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39
40 mkdir wx-bin
41 ln -sf /usr/bin/wx-gtk2-unicode-config wx-bin/wx-config
42
43 %build
44 %{__autoconf}
45 # configure refers to wx-config with no option to override
46 PATH=$(pwd)/wx-bin:$PATH
47 %configure
48
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
58 sed -ne '2,$p' gnome_resource/spatialite-gis.desktop >$RPM_BUILD_ROOT%{_desktopdir}/spatialite-gis.desktop
59 cp -p gnome_resource/spatialite-gis.png $RPM_BUILD_ROOT%{_pixmapsdir}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/spatialite_gis
67 %{_desktopdir}/spatialite-gis.desktop
68 %{_pixmapsdir}/spatialite-gis.png
This page took 0.027795 seconds and 3 git commands to generate.