rpms/python-mechanoid/EL-5 python-mechanoid.spec,NONE,1.1
Sean Reifschneider (jafo)
fedora-extras-commits at redhat.com
Sun Oct 14 20:57:48 UTC 2007
Author: jafo
Update of /cvs/pkgs/rpms/python-mechanoid/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv796
Added Files:
python-mechanoid.spec
Log Message:
Adding spec file.
--- NEW FILE python-mechanoid.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-mechanoid
Version: 0.6.9
Release: 3%{?dist}
Summary: Python Programmatic Web Browser
Group: Development/Languages
License: GPL
URL: http://python.org/pypi/mechanoid
Source0: http://cheeseshop.python.org/packages/source/m/mechanoid/mechanoid-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python-devel
%description
mechanoid is a programmatic browser written in Python. It is not a
web-bot and does not parse /robots.txt. It is intended to function as
the backend of special browsers, such as voice-text/text-voice browsers,
or to perform directed tasks, such as login to SourceForge to do a Quick
Release or to send and receive Yahoo! web mail.
%define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
%prep
%setup -q -n %{namewithoutpythonprefix}-%{version}
sed -i 's/\r//' COPYING
# remove network test which fails in Fedora build system
sed -i 's/socket.gethostname()/"localhost"/' ./test/test_urllib2.py
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%check
%{__python} test.py
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING changelog PKG-INFO README notes
%{python_sitelib}/mechanoid
%changelog
* Sat Jun 09 2007 Sean Reifschneider <jafo at tummy.com> 0.6.9-3
- Changes based on review from Jason Tibbitts:
- Fixing the unix2dos conversion.
- Adding in "%check" to run the test suite.
* Sat Jun 09 2007 Sean Reifschneider <jafo at tummy.com> 0.6.9-2
- Changes based on review from Jason Tibbitts:
- Fixing DOS line-ending of COPYING file.
- Adding python-devel package dependency.
- no-oping test that requires network access.
* Sat Jun 09 2007 Sean Reifschneider <jafo at tummy.com> 0.6.9-1
- Initial RPM spec file.
More information about the fedora-extras-commits
mailing list