]>
Commit | Line | Data |
---|---|---|
c0eee56d ER |
1 | Summary: Map client displaying a 3D model of the world |
2 | Name: earth3d | |
3 | Version: 1.0.5 | |
4 | Release: 0.1 | |
5 | License: GPL v2 | |
6 | Group: Applications/Graphics | |
7 | Source0: http://downloads.sourceforge.net/earth3d/%{name}_client-%{version}-src.tar.bz2 | |
8 | # Source0-md5: d273437a473f66401b01acf7521808c3 | |
9c77557f | 9 | Patch0: gcc.patch |
c0e1faf5 | 10 | Patch1: libpng.patch |
216ef88b | 11 | Patch2: libs.patch |
c0eee56d ER |
12 | URL: http://www.earth3d.org/ |
13 | BuildRequires: ImageMagick-devel | |
14 | BuildRequires: qt-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | The map data is fetched from a server on the net, and the client will | |
19 | display recent satellite images and map data. | |
20 | ||
21 | %prep | |
22 | %setup -q -n %{name} | |
9c77557f | 23 | %patch0 -p1 |
c0e1faf5 | 24 | %patch1 -p1 |
216ef88b | 25 | %patch2 -p1 |
1ac145f7 | 26 | echo "#include <gltest.h>" > gltestwidget.h |
c0eee56d ER |
27 | |
28 | %build | |
29 | export QTDIR=/usr | |
30 | qmake earth3d.pro | |
31 | %{__make} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | %{__make} install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | # The qmake install target is empty. Do the install here instead. | |
17fa403d | 39 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} |
c0eee56d | 40 | install -p earth3d $RPM_BUILD_ROOT%{_bindir} |
17fa403d | 41 | cp -p earth3d.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
c0eee56d ER |
42 | |
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
17fa403d ER |
48 | %doc Changelog README |
49 | %attr(755,root,root) %{_bindir}/earth3d | |
50 | %{_mandir}/man1/earth3d.1* |