packages: python-selenium/python-selenium.spec (NEW) - initial, not complet...
cieciwa
cieciwa at pld-linux.org
Wed Jun 29 14:08:02 CEST 2011
Author: cieciwa Date: Wed Jun 29 12:08:02 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial, not completed, not finished.
---- Files affected:
packages/python-selenium:
python-selenium.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-selenium/python-selenium.spec
diff -u /dev/null packages/python-selenium/python-selenium.spec:1.1
--- /dev/null Wed Jun 29 14:08:02 2011
+++ packages/python-selenium/python-selenium.spec Wed Jun 29 14:07:56 2011
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+# TODO
+# - better group
+%define module selenium
+Summary: -
+Name: python-%{module}
+Version: 2.0rc3
+Release: 0.1
+License: BSD-like
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: c87b8659cdc96da7b9f73ed2db1bcdaa
+URL: http://pypi.python.org/pypi/selenium/
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun): /sbin/chkconfig
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+mock is a Python module that provides a core Mock class. It removes the need
+to create a host of stubs throughout your test suite. After performing an
+action, you can make assertions about which methods / attributes were used and
+arguments they were called with. You can also specify return values and set
+needed attributes in the normal way.
+
+mock is tested on Python versions 2.4-2.7 and Python 3.
+
+The mock module also provides utility functions / objects to assist with
+testing, particularly monkey patching.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(644,root,root,755)
+%doc README* docs
+
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/06/29 12:07:56 cieciwa
+- initial, not completed, not finished.
+
+Revision 1.2 2011/06/29 07:13:18 cieciwa
+- fixed typo.
+
+Revision 1.1 2011/06/29 07:08:23 cieciwa
+- initial.
+
================================================================
More information about the pld-cvs-commit
mailing list