[python-vkontakte] Initial build (see rhbz #710774)

Peter Lemenkov peter at fedoraproject.org
Mon Jun 6 04:02:19 UTC 2011


commit 93018806ea5a89d2eb4dd4a99327fd944b6bb195
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Mon Jun 6 08:02:04 2011 +0400

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

 .gitignore            |    1 +
 python-vkontakte.spec |   52 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d4da89b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vkontakte-0.9.5.tar.gz
diff --git a/python-vkontakte.spec b/python-vkontakte.spec
new file mode 100644
index 0000000..89c3f14
--- /dev/null
+++ b/python-vkontakte.spec
@@ -0,0 +1,52 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global realname vkontakte
+
+Name:		python-%{realname}
+Version:	0.9.5
+Release:	1%{?dist}
+Summary:	vk.com (aka vkontakte.ru) API wrapper
+Group:		Development/Languages
+License:	MIT
+URL:		http://pypi.python.org/pypi/vkontakte
+Source0:	http://pypi.python.org/packages/source/v/%{realname}/%{realname}-%{version}.tar.gz
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildArch:	noarch
+
+
+%description
+This is a vk.com (aka vkontakte.ru, largest Russian social network) python API
+wrapper. The goal is to support all API methods (current and future) that can
+be accessed from server.
+
+
+%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 AUTHORS.txt LICENSE.txt README.rst
+%{python_sitelib}/%{realname}/
+%{python_sitelib}/%{realname}-%{version}-*.egg-info/
+
+
+
+%changelog
+* Fri Jun 03 2011 Peter Lemenkov <lemenkov at gmail.com> - 0.9.5-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..1595dcf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3c45c3e965cf5b72f362662cf29422c7  vkontakte-0.9.5.tar.gz


More information about the scm-commits mailing list