Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37769192
en ru br
ALT Linux repos
S:0.21.0-alt1.1
D:0.9.0-alt2
5.0: 0.10.0-alt0.2
4.1: 0.9.1-alt1
4.0: 0.9.0-alt2.2
3.0: 0.6.2-alt1

Group :: Education
RPM: stellarium

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _optlevel 2

Name: stellarium
Version: 0.6.2
Release: alt1

Group: Education
Summary: Planetarium
Url: http://stellarium.free.fr/
License: GPL

Source0: %name-%version.tar.bz2
Source2: %name.16.xpm
Source3: %name.32.xpm
Source4: %name.48.xpm

Patch1: flags.patch

# Automatically added by buildreq on Wed Oct 01 2003 (-bi)

#BuildRequires: XFree86-devel-static XFree86-libs esound gcc-c++ libGLU-devel libSDL-devel libalsa libaudiofile libstdc++-devel stellarium

BuildRequires: XFree86-devel XFree86-libs esound gcc-c++ libGLU-devel libSDL-devel libalsa
BuildRequires: libaudiofile libstdc++-devel

%description
Stellaruim provides planetarium on your desktop.
It renders 3D photo-realistic skies in real time:
- Over 120000 stars from the Hipparcos Catalogue with name and infos for the brightest ones.
- Planets in real time, with a powerfull zoom mode to see them like in a telescope.
- Drawing of the 88 constellations with their names.
- Drawing of more than 40 messiers objects (Orion, M31 etc..).
- Photorealistic Milky Way.
- Ground, fog, and landscape.
- Star twinkling.
- Grids in Equatorial and Azimuthal coordinates.
- Time control (real time and accelered time modes).
- Graphical menu for simple utilisation.
- Clikable stars, planets and nebulas with informations.
- Ecliptic and celestrial equator lines.
- Smooth real time navigation.

%prep
%setup -q
%patch1 -p0
%__aclocal
%__autoconf
%__automake

%build
%add_optflags -I%_includedir/SDL -D_REENTRANT
export LDFLAGS="-L/usr/X11R6/lib"
%configure \
   --datadir=%_gamesdatadir \
   --bindir=%_gamesbindir
%make_build
# datadir=%_gamesdatadir bindir=%_gamesbindir

%install
%make install \
   DESTDIR=%buildroot \
   datadir=%_gamesdatadir \
   bindir=%_gamesbindir \


mkdir -p %buildroot/%_gamesdatadir/%name
#cp -R {textures,data,config} %buildroot/%_gamesdatadir/%name
#rm -f  %buildroot/%_gamesdatadir/%name/{textures,data,config}/Makefile*

mkdir -p $RPM_BUILD_ROOT%_menudir
cat <<EOF >$RPM_BUILD_ROOT%_menudir/%name
?package(%name):command="%name" \
 icon="%name.xpm" \
 needs="x11" \
 section="Applications/Edutainment/Science" \
 title="Stellarium" \
 longtitle="Planetarium"
EOF

mkdir -p %buildroot/%_iconsdir/hicolor/apps/{16x16,32x32,48x48}
install -m 644 %SOURCE2 %buildroot/%_iconsdir/hicolor/apps/16x16/%name.xpm
install -m 644 %SOURCE3 %buildroot/%_iconsdir/hicolor/apps/32x32/%name.xpm
install -m 644 %SOURCE4 %buildroot/%_iconsdir/hicolor/apps/48x48/%name.xpm

%post
%update_menus
%postun
%clean_menus

%files
%doc AUTHORS ChangeLog TODO
%_gamesbindir/*
%_gamesdatadir/*
%_menudir/*
%_iconsdir/hicolor/apps/*/%name.*
%_man1dir/%name.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin