]> git.pld-linux.org Git - packages/libreatlas.git/blob - libreatlas.spec
- release 2 (by relup.sh)
[packages/libreatlas.git] / libreatlas.spec
1 Summary:        Geography Education application built on top of SpatiaLite and RasterLite
2 Summary(pl.UTF-8):      Geograficzny program edukacyjny stworzony w oparciu o SpatiaLite i RasterLite
3 Name:           libreatlas
4 Version:        1.0.0a
5 Release:        2
6 License:        GPL v3+
7 Group:          Applications
8 Source0:        http://www.gaia-gis.it/gaia-sins/libreatlas-sources/%{name}-%{version}.tar.gz
9 # Source0-md5:  d09d57d2cbb0b05be0e3ff9ad925d86a
10 Patch0:         %{name}-link.patch
11 URL:            https://www.gaia-gis.it/fossil/libreatlas
12 BuildRequires:  autoconf >= 2.61
13 BuildRequires:  automake
14 BuildRequires:  freexl-devel
15 BuildRequires:  geos-devel
16 BuildRequires:  libgeotiff-devel >= 1.2.5
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  libpng-devel
19 BuildRequires:  librasterlite-devel
20 BuildRequires:  libspatialite-devel
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtiff-devel
23 BuildRequires:  libtool >= 2:1.5
24 BuildRequires:  pkgconfig
25 BuildRequires:  proj-devel >= 4
26 BuildRequires:  wxGTK2-unicode-devel >= 2.8.12-4
27 BuildRequires:  zlib-devel
28 Requires:       libgeotiff-devel >= 1.2.5
29 Requires:       wxGTK2-unicode >= 2.8.12-4
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 LibreAtlas is an open source Geography Education application built on
34 top of SpatiaLite and RasterLite. It uses LibreAtlas databases which
35 are a digital alternative to a paper atlas.
36
37 %description -l pl.UTF-8
38 LibreAtlas to mający otwarte źródła geograficzny program edukacyjny,
39 stworzony w oparciu o SpatiaLite i RasterLite. Wykorzystuje bazy
40 danych LibreAtlas, będące cyfrową alternatywą dla atlasu papierowego.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45
46 mkdir wx-bin
47 ln -sf /usr/bin/wx-gtk2-unicode-config wx-bin/wx-config
48
49 %build
50 %{__libtoolize}
51 %{__aclocal} -I m4
52 %{__autoconf}
53 %{__autoheader}
54 %{__automake}
55 # configure refers to wx-config with no option to override
56 PATH=$(pwd)/wx-bin:$PATH
57 %configure
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
68 sed -ne '2,$p' gnome_resource/LibreAtlas.desktop >$RPM_BUILD_ROOT%{_desktopdir}/LibreAtlas.desktop
69 cp -p gnome_resource/LibreAtlas.png $RPM_BUILD_ROOT%{_pixmapsdir}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_bindir}/LibreAtlas
77 %{_desktopdir}/LibreAtlas.desktop
78 %{_pixmapsdir}/LibreAtlas.png
This page took 1.285133 seconds and 3 git commands to generate.