|
|
f9b9ca4 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
f9b9ca4 |
%global realname xgoogle
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
Name: python-%{realname}
|
|
|
f9b9ca4 |
Version: 1.4
|
|
|
49d027f |
Release: 10%{?dist}
|
|
|
f9b9ca4 |
Summary: Python library to search Google without using their API
|
|
|
f9b9ca4 |
Group: Development/Languages
|
|
|
f9b9ca4 |
License: MIT
|
|
|
f9b9ca4 |
URL: http://www.catonmat.net/blog/python-library-for-google-search/
|
|
|
f9b9ca4 |
Source0: http://www.catonmat.net/download/xgoogle.zip
|
|
|
f9b9ca4 |
Source1: %{realname}-setup.py
|
|
|
f9b9ca4 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
f9b9ca4 |
BuildRequires: python-devel
|
|
|
f9b9ca4 |
BuildRequires: python-setuptools
|
|
|
f9b9ca4 |
BuildRequires: dos2unix
|
|
|
f9b9ca4 |
Requires: python-BeautifulSoup
|
|
|
f9b9ca4 |
BuildArch: noarch
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%description
|
|
|
f9b9ca4 |
A Python library to search Google without using their API.
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%prep
|
|
|
f9b9ca4 |
%setup -q -c -n %{realname}-%{version}
|
|
|
f9b9ca4 |
rm -f %{realname}/BeautifulSoup.py
|
|
|
f9b9ca4 |
rm -f %{realname}/*.pyc
|
|
|
f9b9ca4 |
install -m 0644 -p %{SOURCE1} setup.py
|
|
|
f9b9ca4 |
dos2unix contributors.txt projects-using-xgoogle.txt readme.txt
|
|
|
f9b9ca4 |
dos2unix xgoogle/{browser.py,googlesets.py,sponsoredlinks.py,translate.py}
|
|
|
f9b9ca4 |
sed -i -e "/^#\!\/usr\/bin\/python$/d" xgoogle/*.py
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%build
|
|
|
f9b9ca4 |
%{__python} -c 'import setuptools; execfile("setup.py")' build
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%install
|
|
|
f9b9ca4 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f9b9ca4 |
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%clean
|
|
|
f9b9ca4 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%files
|
|
|
f9b9ca4 |
%defattr(-,root,root,-)
|
|
|
f9b9ca4 |
%doc examples contributors.txt projects-using-xgoogle.txt readme.txt
|
|
|
f9b9ca4 |
%{python_sitelib}/%{realname}/
|
|
|
f9b9ca4 |
%{python_sitelib}/%{realname}-%{version}-*.egg-info/
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
%changelog
|
|
|
49d027f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-10
|
|
|
49d027f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
49d027f |
|
|
|
bd87b06 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
|
|
|
bd87b06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
bd87b06 |
|
|
|
daece81 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
|
|
|
daece81 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
daece81 |
|
|
|
00076ad |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-7
|
|
|
00076ad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
00076ad |
|
|
|
53b244c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
|
|
|
53b244c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
53b244c |
|
|
|
fdb0f5b |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
|
|
|
fdb0f5b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
fdb0f5b |
|
|
|
5889ec5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
|
|
|
5889ec5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
5889ec5 |
|
|
|
f9b9ca4 |
* Sun Jun 19 2011 Peter Lemenkov <lemenkov@gmail.com> - 1.4-3
|
|
|
f9b9ca4 |
- Added missing BuildRequires
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
* Sun Jun 05 2011 Peter Lemenkov <lemenkov@gmail.com> - 1.4-2
|
|
|
f9b9ca4 |
- Fixed rpmlint errors
|
|
|
f9b9ca4 |
|
|
|
f9b9ca4 |
* Fri Jun 03 2011 Peter Lemenkov <lemenkov@gmail.com> - 1.4-1
|
|
|
f9b9ca4 |
- Initial package
|
|
|
f9b9ca4 |
|