[python-xgoogle] Initial commit (see rhbz #710775)
Peter Lemenkov
peter at fedoraproject.org
Wed Jun 22 13:53:28 UTC 2011
commit f9b9ca4ceedfede12ea0a4bcbe030cae5e371b6b
Author: Peter Lemenkov <lemenkov at gmail.com>
Date: Wed Jun 22 17:53:13 2011 +0400
Initial commit (see rhbz #710775)
Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
.gitignore | 1 +
python-xgoogle.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
xgoogle-setup.py | 13 ++++++++++
4 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3d8c588 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xgoogle.zip
diff --git a/python-xgoogle.spec b/python-xgoogle.spec
new file mode 100644
index 0000000..00af82d
--- /dev/null
+++ b/python-xgoogle.spec
@@ -0,0 +1,64 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global realname xgoogle
+
+Name: python-%{realname}
+Version: 1.4
+Release: 3%{?dist}
+Summary: Python library to search Google without using their API
+Group: Development/Languages
+License: MIT
+URL: http://www.catonmat.net/blog/python-library-for-google-search/
+Source0: http://www.catonmat.net/download/xgoogle.zip
+Source1: %{realname}-setup.py
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: dos2unix
+Requires: python-BeautifulSoup
+BuildArch: noarch
+
+
+%description
+A Python library to search Google without using their API.
+
+
+%prep
+%setup -q -c -n %{realname}-%{version}
+rm -f %{realname}/BeautifulSoup.py
+rm -f %{realname}/*.pyc
+install -m 0644 -p %{SOURCE1} setup.py
+dos2unix contributors.txt projects-using-xgoogle.txt readme.txt
+dos2unix xgoogle/{browser.py,googlesets.py,sponsoredlinks.py,translate.py}
+sed -i -e "/^#\!\/usr\/bin\/python$/d" xgoogle/*.py
+
+
+%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 examples contributors.txt projects-using-xgoogle.txt readme.txt
+%{python_sitelib}/%{realname}/
+%{python_sitelib}/%{realname}-%{version}-*.egg-info/
+
+
+%changelog
+* Sun Jun 19 2011 Peter Lemenkov <lemenkov at gmail.com> - 1.4-3
+- Added missing BuildRequires
+
+* Sun Jun 05 2011 Peter Lemenkov <lemenkov at gmail.com> - 1.4-2
+- Fixed rpmlint errors
+
+* Fri Jun 03 2011 Peter Lemenkov <lemenkov at gmail.com> - 1.4-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..2b99067 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1eea1d0da7dcec4be4b217a54882f853 xgoogle.zip
diff --git a/xgoogle-setup.py b/xgoogle-setup.py
new file mode 100644
index 0000000..c159008
--- /dev/null
+++ b/xgoogle-setup.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+from distutils.core import setup
+
+setup(name = 'xgoogle',
+ version = '1.4',
+ description = 'A Python library to search Google without using their API',
+ author = 'Peteris Krumins',
+ author_email = 'peter at catonmat.net',
+ url = 'http://www.catonmat.net/blog/python-library-for-google-search/',
+ packages = ['xgoogle'],
+ scripts = [],
+ data_files = [])
More information about the scm-commits
mailing list