/[packages]/cauldron/xplanet/current/SPECS/xplanet.spec
ViewVC logotype

Contents of /cauldron/xplanet/current/SPECS/xplanet.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33307 - (show annotations) (download)
Sat Jan 22 22:31:27 2011 UTC (10 years, 10 months ago) by ahmad
File size: 1602 byte(s)
- drop BR X11-devel
- add BR libxscrnsaver-devel libice-devel libnetpbm-devel

1 Name: xplanet
2 Version: 1.2.1
3 Release: %mkrel 6
4 Summary: OpenGL based planet renderer
5 Source0: http://freefr.dl.sourceforge.net/sourceforge/xplanet/%{name}-%{version}.tar.gz
6 Patch0: xplanet-1.2.1-fix-gcc44.patch
7 URL: http://xplanet.sourceforge.net/
8 License: GPLv2+
9 Group: Toys
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
11 BuildRequires: png-devel pango-devel jpeg-devel tiff-devel
12 BuildRequires: libxscrnsaver-devel
13 BuildRequires: libnetpbm-devel libice-devel
14
15 %description
16 Xplanet is similar to Xearth, where an image of the earth is rendered into
17 an X window. Azimuthal, Mercator, Mollweide, orthographic, or rectangular
18 projections can be displayed as well as a window with a globe the user can
19 rotate interactively. The other planets and some satellites may also be
20 displayed. The latest version, as well as maps for other planets can be
21 found at http://xplanet.sourceforge.net. Xplanet can support separate
22 night and day maps, as well as a separate cloud map.
23
24 %prep
25 %setup -q
26 %patch0 -p0
27
28 # fix netpbm includes
29 sed -i 's,#include <pnm.h>,#include <netpbm/pnm.h>,' \
30 src/libimage/WriteImage.cpp\
31 src/libimage/pnm.c\
32 configure
33
34 %build
35 # the macro break X output
36 %configure2_5x --with-xscreensaver --with-x
37 %make
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %makeinstall
42
43 #mkdir -p $RPM_BUILD_ROOT/%_prefix/man/man1
44 #mv $RPM_BUILD_ROOT/%_prefix/man/*.1 $RPM_BUILD_ROOT/%_prefix/man/man1/
45 #bzip2 $RPM_BUILD_ROOT/%_mandir/man1/*
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(-,root,root,-)
52 %doc COPYING ChangeLog INSTALL
53 %{_mandir}/man1/%{name}.1.*
54 %{_bindir}/*
55 %{_datadir}/*
56
57

  ViewVC Help
Powered by ViewVC 1.1.28