File python-SimpleCV.spec of Package python-SimpleCV

#
# spec file for package python-SimpleCV
#
# 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-SimpleCV
Version:        1.3
Release:        0
License:        BSD-3-Clause
Summary:        Python Framework for Machine Vision
Url:            http://simplecv.org
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/S/SimpleCV/SimpleCV-%{version}.tar.gz
BuildRequires:  python-devel >= 2.6
BuildRequires:  IPython >= 1.0
BuildRequires:  python-opencv >= 2.3
BuildRequires:  python-nose
BuildRequires:  python-numpy
BuildRequires:  python-imaging >= 1.1.7
BuildRequires:  python-pygame
BuildRequires:  python-scipy
Requires:       IPython >= 1.0
Requires:       python-opencv >= 2.3
Requires:       python-numpy
Requires:       python-imaging >= 1.1.7
Requires:       python-pygame
Requires:       python-scipy
Recommends:     python-CherryPy
Recommends:     python-Flask
Recommends:     python-Werkzeug
Recommends:     python-beautifulsoup4
Recommends:     python-scikit-learn
Recommends:     python-simplejson
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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

%description
Framework for computer (machine) vision in Python, providing a unified, pythonic interface to image aquisition, conversion, manipulation, and feature extraction.

%prep
%setup -q -n SimpleCV-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/base.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/DrawingLayer.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/EXIF.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/Shell/Example.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/Shell/Shell.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/Shell/Tutorial.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/tests/test_haar_cascade.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/tests/test_cameras.py
chmod a+x %{buildroot}%{python_sitelib}/SimpleCV/tests/vcamera_tests.py

%files
%defattr(-,root,root,-)
%{_bindir}/simplecv
%{python_sitelib}/SimpleCV/
%{python_sitelib}/SimpleCV-%{version}-py*.egg-info/

%changelog
openSUSE Build Service is sponsored by