File pydance.spec of Package pydance
#
# spec file for package pydance
#
# Copyright (c) 2013 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/
#
Name: pydance
Version: 1.1.0
Release: 0
Summary: Fun dancing game for experience asian dance beat!
License: MIT
Group: Amusements/Games/Action/Arcade
Url: http://icculus.org/pyddr/
Source: http://icculus.org/pyddr/%{name}-%{version}.tar.gz
Source1: %{name}-songs.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: %{name}-1.1.0-config.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: %{name}-1.1.0-makefile.patch
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
BuildRequires: fdupes python-rpm-macros
BuildRequires: python3-pygame
Requires: python3-pygame
BuildArch: noarch
%{py_requires}
%description
pydance is fun dancing game for experience asian dance beat!
Showing friends your hot move with big score! Highly configurable,
colorful animated arrow motion, limitless numbers of dance steps,
1 or 2 players, professionally written music, laughter provoking
sound effects, and yes, even graphical transitions.
%prep
%setup -q -a 1
%patch0
%patch1
%build
python3 setup.py
%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir} install
mkdir -p %{buildroot}%{_datadir}/pydance/songs
cp songs/* %{buildroot}%{_datadir}/pydance/songs
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%files -f %{name}.lang
%defattr(-,root,root)
%doc BUGS ChangeLog CREDITS HACKING LICENSE README TODO
%config(noreplace) %{_sysconfdir}/pydance.cfg
%{_bindir}/findbpm
%{_bindir}/pydance
%{_datadir}/pydance/
%doc %{_mandir}/man?/*
%changelog