rpms/python-mechanoid/F-7 python-mechanoid.spec, NONE, 1.1 sources, 1.1, 1.2

Sean Reifschneider (jafo) fedora-extras-commits at redhat.com
Sun Oct 14 21:05:24 UTC 2007


Author: jafo

Update of /cvs/pkgs/rpms/python-mechanoid/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7259

Modified Files:
	sources 
Added Files:
	python-mechanoid.spec 
Log Message:
Adding python-mechanoid for F-7.



--- 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.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-mechanoid/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Jun 2007 05:26:31 -0000	1.1
+++ sources	14 Oct 2007 21:04:52 -0000	1.2
@@ -0,0 +1 @@
+57935bed2df6cd83c3f2268cf1557c6f  mechanoid-0.6.9.tar.gz




More information about the fedora-extras-commits mailing list