Package bb: Specfile

Name: bb
Version: 1.3
Release: alt0.5

Summary: BB - the portable AAlib demo
License: GPL
Group: Toys

%define realver %{version}rc1

Url: http://aa-project.sourceforge.net/bb
Source: http://unc.dl.sourceforge.net/sourceforge/aa-project/%name-%realver.tar.gz
Patch: bb-1.3.0-alt-gcc34.patch
Packager: Michael Shigorin <mike@altlinux.org>

Summary(ru_RU.KOI8-R): BB - \xc4\xc5\xcd\xcf AAlib
Summary(uk_UA.KOI8-U): BB - \xc4\xc5\xcd\xcf AAlib
Summary(pl): BB - przeno\xb6ne demo

# see .desktop
Requires: sound_handler

# Automatically added by buildreq on Thu May 15 2008
BuildRequires: aalib-devel libX11-devel libgpm-devel libmikmod-devel libslang-devel
BuildRequires: chrpath

%description
BB is an high quality audio-visual demonstration for your text
terminal. It is portable demo, so you can run it on plenty of
operating systems.

%description -l ru_RU.KOI8-R
BB - \xd7\xd9\xd3\xcf\xcb\xcf\xcb\xc1\xde\xc5\xd3\xd4\xd7\xc5\xce\xce\xc1\xd1 \xc1\xd5\xc4\xc9\xcf\xd7\xc9\xda\xd5\xc1\xcc\xd8\xce\xc1\xd1 \xc4\xc5\xcd\xcf\xce\xd3\xd4\xd2\xc1\xc3\xc9\xd1 \xd7\xcf\xda\xcd\xcf\xd6\xce\xcf\xd3\xd4\xc5\xca
aalib \xc4\xcc\xd1 \xd4\xc5\xcb\xd3\xd4\xcf\xd7\xd9\xc8 \xd4\xc5\xd2\xcd\xc9\xce\xc1\xcc\xcf\xd7.

%description -l uk_UA.KOI8-U
BB - \xd7\xc9\xd3\xcf\xcb\xcf\xd1˦\xd3\xce\xc1 \xc1\xd5Ħ\xcfצ\xda\xd5\xc1\xcc\xd8\xce\xc1 \xc4\xc5\xcd\xcf\xce\xd3\xd4\xd2\xc1æ\xd1 \xcd\xcf\xd6\xcc\xc9\xd7\xcf\xd3\xd4\xc5\xca
aalib \xc4\xcc\xd1 \xd4\xc5\xcb\xd3\xd4\xcf\xd7\xc9\xc8 \xd4\xc5\xd2ͦ\xce\xc1̦\xd7.

%description -l pl
BB jest wysokiej jako\xb6ci demem z grafik\xb1 i d\xbcwi\xeakiem, dzia\xb3aj\xb1cym na
terminalu tekstowym. Jest przeno\xb6ne - dzia\xb3a na wielu systemach
operacyjnych.

%prep
%setup -n %name-1.3.0
%patch -p1

%build
%autoreconf
%configure
%make_build
# and just in case
chrpath -d %name

%install
%makeinstall

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=BB
Comment=BB -- AA demo
Icon=%{name}
Exec=sound_wrapper %_bindir/%name -dim -bold -boldfont
Terminal=false
Categories=Game;Amusement;
EOF

%files
%doc AUTHORS ChangeLog NEWS README
%_datadir/%name/
%_bindir/*
%_desktopdir/%name.desktop
%_man1dir/*

%changelog
* Thu Dec 15 2011 Michael Shigorin <mike@altlinux.org> 1.3-alt0.5
- dropped RPATH on the floor
- minor spec cleanup

* Sat Apr 16 2011 Igor Vlasenko <viy@altlinux.ru> 1.3-alt0.4.qa1
- NMU: converted menu to desktop file

* Wed Dec 03 2008 Michael Shigorin <mike@altlinux.org> 1.3-alt0.4
- applied repocop patch

* Thu May 15 2008 Michael Shigorin <mike@altlinux.org> 1.3-alt0.3
- buildreq
- spec macro abuse cleanup

* Thu Feb 24 2005 Michael Shigorin <mike@altlinux.ru> 1.3-alt0.2
- rebuilt with gcc3.4 (thanks Stanislav Ievlev for fix suggestion)

* Mon Apr 12 2004 Michael Shigorin <mike@altlinux.ru> 1.3-alt0.1
- built for ALT Linux (1.3rc1)
- heh, it was Mon Apr 28 2003 when this package was basically done :-D
  still minor spec fixes/cleanups...
- spec adapted from PLD <feedback@pld.org.pl>
  All persons listed below can be reached at <cvs_login>@pld.org.pl
  arturs, filon, kloczek, qboosh