File bb.spec of Package bb

#
# spec file for package bb (Version 1.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           bb
BuildRequires:  aalib-devel libmikmod-devel lzo-devel xorg-x11-devel
Url:            http://aa-project.sourceforge.net/bb/
Summary:        Audio-Visual Demonstration for Text Terminal
Version:        1.3
Release:        555
License:        GPLv2+
Group:          Amusements/Toys/Graphics
Source:         bb-1.3rc1.tar.bz2
Patch:          bb-1.3.0.diff
Patch1:         bb-1.3.0-timer.diff
Patch2:         warn.patch
Patch3:         undefined-operation.diff
Patch4:         bb-1.3.0-no-minilzo-or-builddates.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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



Authors:
--------
    Filip Kupsa <kupsaf@feld.cvut.cz>
    Jan Hubicka <hubicka@paru.cas.cz>
    Mojmir Svoboda <titania@horac.ta.jcu.cz>
    Kamil Toman <toman@horac.ta.jcu.cz>

%prep
%setup -q -n %{name}-1.3.0
%patch
%patch1
%patch2
%patch3
%patch4

%build
autoreconf -fiv
CFLAGS="$RPM_OPT_FLAGS -DDATADIR='\"/usr/share/bb/\"'" \
%configure
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
/usr/bin/bb
%{_mandir}/man1/bb.1.gz
%dir /usr/share/bb
/usr/share/bb/*.s3m

%changelog