diff --git a/.gitignore b/.gitignore index e69de29..8f02146 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lyricwiki-0.1.35.tar.gz diff --git a/python-lyricwiki.spec b/python-lyricwiki.spec new file mode 100644 index 0000000..8903c8f --- /dev/null +++ b/python-lyricwiki.spec @@ -0,0 +1,51 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%global realname lyricwiki + +Name: python-%{realname} +Version: 0.1.35 +Release: 1%{?dist} +Summary: A Python interface to the http://lyrics.wikia.com +Group: Development/Languages +License: GPLv2+ +URL: http://pypi.python.org/pypi/lyricwiki +Source0: http://pypi.python.org/packages/source/l/%{realname}/%{realname}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildArch: noarch + + +%description +A Python interface which provides simple access to lyrics from +http://lyrics.wikia.com + + +%prep +%setup -q -n %{realname}-%{version} + + +%build +%{__python} -c 'import setuptools; execfile("setup.py")' build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING +%{python_sitelib}/%{realname}.py* +%{python_sitelib}/%{realname}-%{version}-*.egg-info/ + + + +%changelog +* Fri Jun 03 2011 Peter Lemenkov - 0.1.35-1 +- Initial package + diff --git a/sources b/sources index e69de29..9af5af7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8729749836e74b125c91e3e8645b0b7b lyricwiki-0.1.35.tar.gz