File python-v4l2capture.spec of Package python-v4l2capture

#
# spec file for package python-v4l2capture
#
# 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-v4l2capture
Version:        1.4
Release:        0
License:        SUSE-Public-Domain
Summary:        Capture video with video4linux2
Url:            http://fredrik.jemla.eu/v4l2capture
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/v/v4l2capture/v4l2capture-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  libv4l-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
python-v4l2capture is a slim and easy to use Python extension for capturing video with video4linux2.

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

%build
CFLAGS="%{optflags}" python setup.py build

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

%files
%defattr(-,root,root,-)
%doc README list*.py capture*.py
# we have a *.so file, so it is not in python_sitelib, but python_sitearch
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by