File python-Pyccuracy.spec of Package python-Pyccuracy
#
# spec file for package python-Pyccuracy
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-Pyccuracy
Version: 1.2.47
Release: 0
Url: http://www.pyccuracy.org
Summary: Pyccuracy is a BDD style Acceptance Testing framework
License: OSL-3.0
Group: Development/Languages/Python
Source: Pyccuracy-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-selenium
BuildRequires: python-setuptools
BuildRequires: python-xml
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Provides: python-pyccuracy = %{version}
#TODO: Change back to '<' after next version update:
Obsoletes: python-pyccuracy <= %{version}
%description
Pyccuracy is a Behavior-Driven Acceptance Testing framework (more on http://www.pyccuracy.org).
%prep
%setup -q -n Pyccuracy-%{version}
# Fix non-executable script warning:
find . -type f -name "*.py" -exec sed -i "/#!.*/d" {} \;
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/pyccuracy_*
%{python_sitelib}/*
%changelog