Sisyphus
: 13 2019 | : 17515 | : 15263752
en ru br
ALT
S:0.7.6-alt2.1
5.1: 0.7.2-alt3
4.1: 0.7.2-alt1
4.0: 0.7.0-alt0.1cvs20060721
3.0: 0.6.0-alt6
www.altlinux.org/Changes

:: /
: pingus

             Sources      Gear   Bugs and FR  Repocop 

%define snapshot_date 20060721
%define srcname %name-%version

Name: pingus
Version: 0.7.6
Release: alt1.6.2


Summary: A free Lemmings clone
Summary(ru_RU.UTF8): Свободный клон Lemmings
License: GPL
Group: Games/Arcade
Url: http://pingus.seul.org
Packager: Ilya Mashkin <oddity at altlinux.ru>

Source: %name-%version.tar.bz2
Source1: %name.16.xpm
Source2: %name.32.xpm
Source3: %name.48.xpm

Source7:        pingus.png

Patch0:         pingus-0.7.0-cflags.patch
Patch6:         pingus-0.7.2-gcc43.patch

Patch7:         pingus-0.7.2-gcc44.patch
Patch8:         pingus-0.7.6-alt-VERSION.patch

#Patch1: pingus-0.6.0-alt-gcc33.patch

#Patch2: pingus-0.6.0-alt-gcc34.patch

# remove 25092007:

#Patch3:         pingus-20060721-gettext.patch
#Patch4:         pingus-20060721-datapath.patch

# old, remove 28092007:

#BuildPreReq: gcc3.2-c++
#requires: clanlib0.8 clanlib0.8-sdl clanlib0.8-gui clanlib0.8-mikmod clanlib0.8-sound clanlib0.8-vorbis libxml2 zlib
#ruildRequires: xorg-x11-libs xorg-x11-devel clanlib0.8-devel clanlib0.8-gui clanlib0.8-sdl clanlib0.8-mikmod clanlib0.8-sound clanlib0.8-vorbis gcc-c++ libjpeg libmikmod-devel libogg libpng-devel libstdc++-devel libvorbis libxml2-devel zlib-devel gettext

# Automatically added by buildreq on Fri Sep 28 2007

BuildRequires: esound flex gcc-c++ ghostscript-utils libSDL-devel rcs

BuildRequires:  libSDL_mixer-devel libSDL_image-devel boost-devel libpng-devel
BuildRequires:  libphysfs-devel scons boost-signals-devel

#BuildPreReq: libssl-devel


%description
Pingus is a free Lemmings clone covered under the GPL. Pingus uses SDL,
which should make it portable over a lot of operating systems in the future. At
the moment the main target is Linux. It is possible to play Pingus in a X
window or in fullscreen.

%description -l ru_RU.UTF8
Pingus - свободный клон Lemmings, выпускаемый под GPL. Pingus использует
SDL, что должно сделать его портируемым на множество других операционных
систем в будущем. На данный момент главная цель - Linux. В Pingus возможно
играть в X в окне или в полноэкранном режиме.

%prep
%setup -q
#patch6 -p1
#patch7 -p1
%patch8 -p2

%build

export CCFLAGS="%optflags"
scons


%install


mkdir -p $RPM_BUILD_ROOT%_man6dir
#./install.sh $RPM_BUILD_ROOT%_prefix
make PREFIX=%prefix DESTDIR=$RPM_BUILD_ROOT install
# DESTDIR=%buildroot install
#prefix=%buildroot%prefix

install -p -m 644 doc/man/%name.6 $RPM_BUILD_ROOT%_man6dir/


install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_miconsdir/%name.xpm
install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_niconsdir/%name.xpm
install -pD -m644 %SOURCE3 $RPM_BUILD_ROOT%_liconsdir/%name.xpm


#mkdir -p $RPM_BUILD_ROOT%_datadir/%name

#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/themes/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/metamap/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/wordmaps/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/prefabs/

#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/controller/

#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/credits/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/images/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/levels/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/levelsets/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/music/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/sounds/
#mkdir -p $RPM_BUILD_ROOT%_datadir/%name/data/stories/



#mv data/sounds/*  $RPM_BUILD_ROOT%_datadir/%name/data/sounds/

#mv data/controller/*  $RPM_BUILD_ROOT%_datadir/%name/data/controller/
#mv data/prefabs/*  $RPM_BUILD_ROOT%_datadir/%name/data/prefabs/

#mv data/credits/*  $RPM_BUILD_ROOT%_datadir/%name/data/credits/

#mv data/levelsets/*  $RPM_BUILD_ROOT%_datadir/%name/data/levelsets/
#mv data/music/*  $RPM_BUILD_ROOT%_datadir/%name/data/music/


#install -m 644 data/metamap/metamap.xml \

#  $RPM_BUILD_ROOT%_datadir/%name/data/metamap

install -m755 -d %buildroot%_desktopdir/
cat > %buildroot%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Pingus
Comment=Guide the penguins safely home before they drop of the cliff
Exec=pingus
Icon=pingus
Terminal=false
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

%find_lang %name

%files -f %name.lang
%_bindir/*
%_datadir/%name
%_man1dir/*
%_man6dir/*
%_desktopdir/%{name}.desktop
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%doc AUTHORS NEWS README TODO

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin