[pylast] Initial build (see rhbz #710772)

Peter Lemenkov peter at fedoraproject.org
Mon Jun 6 03:55:51 UTC 2011


commit 5c044734de1c272845ceae9ca3ed8afb99b38906
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Mon Jun 6 07:55:30 2011 +0400

    Initial build (see rhbz #710772)
    
    Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>

 .gitignore         |    1 +
 python-pylast.spec |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f78f1f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pylast-0.5.11.tar.gz
diff --git a/python-pylast.spec b/python-pylast.spec
new file mode 100644
index 0000000..985966e
--- /dev/null
+++ b/python-pylast.spec
@@ -0,0 +1,50 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:		pylast
+Version:	0.5.11
+Release:	1%{?dist}
+Summary:	A Python interface to Last.fm API compatible social networks
+Group:		Development/Languages
+License:	ASL 2.0
+URL:		http://pypi.python.org/pypi/pylast
+Source0:	http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildArch:	noarch
+
+
+%description
+A Python interface to Last.fm (and other API compatible social networks)
+
+
+%prep
+%setup -q
+chmod 644 README
+
+
+%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 README
+%{python_sitelib}/%{name}.py*
+%{python_sitelib}/%{name}-%{version}-*.egg-info/
+
+
+
+%changelog
+* Fri Jun 03 2011 Peter Lemenkov <lemenkov at gmail.com> - 0.5.11-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..056b6e3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+506cf1b13020b3ed2f3c845ea0c9830e  pylast-0.5.11.tar.gz


More information about the scm-commits mailing list