LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pykaraoke.spec of Package pykaraoke (Project home:zhonghuaren)

Name:           pykaraoke
License:        LGPL
Group:          Applications/Multimedia
Version:        0.7.5
Release:        1
Summary:	Free karaoke player
URL:		http://www.kibosh.org/pykaraoke/
Source:         http://sourceforge.net/projects/pykaraoke/files/%name/%version/%name-%version.zip
BuildRoot:      %{_tmppath}/%name-%version-build
Requires:       pygame wxPython libtimidity liberation-sans-fonts
BuildRequires:  gcc python-devel pygame-devel wxPython-devel SDL-devel desktop-file-utils atlas-devel

%description
PyKaraoke is a free karaoke player for Linux, FreeBSD, NetBSD, Windows, OSX
and GP2X. You can use this program to play your collection of CDG, MIDI and
MPEG karaoke songs. No songs are provided, you must obtain these from elsewhere.
Warning - this version uses 1251 codepage for kar files!

%prep
%setup -q

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT
chmod +x $RPM_BUILD_ROOT/usr/bin/cdg2mpg
chmod +x $RPM_BUILD_ROOT/usr/bin/py*

%post
ln -sf /usr/share/fonts/truetype/LiberationSans-Regular.ttf /usr/share/%name/fonts/DejaVuSans.ttf
ln -sf /usr/share/fonts/truetype/LiberationSans-Bold.ttf /usr/share/%name/fonts/DejaVuSansCondensed-Bold.ttf
ln -sf /usr/share/fonts/truetype/LiberationSans-Bold.ttf /usr/share/%name/fonts/DejaVuSansCondensed.ttf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.txt PKG-INFO
%{_bindir}/cdg2mpg
%{_bindir}/py*
%{python_sitearch}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%name

%changelog
* Sun Jul 08 2012 Huaren Zhong <huaren.zhong@gmail.com> - 0.7.5
- Rebuild for Fedora
* Sun Dec 28 2008 Dmitry Stropaloff <helions8@gmail.com>
- initial version 0.6