]>
Commit | Line | Data |
---|---|---|
135facb3 JB |
1 | Summary: Graphical User Interface tool supporting SpatiaLite |
2 | Summary(pl.UTF-8): Graficzny interfejs użytkownika obsługujący bazy SpatiaLite | |
3 | Name: spatialite_gui | |
74944cd5 | 4 | Version: 1.7.1 |
e7c9335b | 5 | Release: 4 |
135facb3 JB |
6 | License: GPL v3+ |
7 | Group: Applications/Databases | |
924c698e | 8 | Source0: http://www.gaia-gis.it/gaia-sins/spatialite-gui-sources/%{name}-%{version}.tar.gz |
74944cd5 | 9 | # Source0-md5: c917f40810607784528b4db58cd36efb |
1040adfb | 10 | Patch0: wxWidgets3.patch |
135facb3 JB |
11 | URL: https://www.gaia-gis.it/fossil/spatialite_gui |
12 | BuildRequires: freexl-devel | |
924c698e | 13 | BuildRequires: geos-devel |
135facb3 JB |
14 | BuildRequires: libgaiagraphics-devel |
15 | BuildRequires: libspatialite-devel | |
16 | BuildRequires: libstdc++-devel | |
924c698e | 17 | BuildRequires: libxml2-devel >= 2.0 |
135facb3 JB |
18 | BuildRequires: pkgconfig |
19 | BuildRequires: proj-devel >= 4 | |
20 | BuildRequires: wxGTK2-unicode-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Graphical User Interface tool supporting SpatiaLite. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Graficzny interfejs użytkownika obsługujący bazy SpatiaLite. | |
28 | ||
29 | %prep | |
924c698e | 30 | %setup -q |
1040adfb | 31 | %patch0 -p1 |
135facb3 JB |
32 | |
33 | mkdir wx-bin | |
34 | ln -sf /usr/bin/wx-gtk2-unicode-config wx-bin/wx-config | |
35 | ||
36 | %build | |
1040adfb | 37 | %{__autoconf} |
135facb3 JB |
38 | # configure refers to wx-config with no option to override |
39 | PATH=$(pwd)/wx-bin:$PATH | |
40 | %configure | |
41 | ||
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
51 | sed -ne '2,$p' gnome_resource/spatialite-gui.desktop >$RPM_BUILD_ROOT%{_desktopdir}/spatialite-gui.desktop | |
52 | cp -p gnome_resource/spatialite-gui.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %attr(755,root,root) %{_bindir}/spatialite_gui | |
60 | %{_desktopdir}/spatialite-gui.desktop | |
61 | %{_pixmapsdir}/spatialite-gui.png |