From de72f1b41b110130e8cab1414a88cc73edcf60348206e524c83250946a100aa1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 Oct 2019 15:44:56 +0000 Subject: [PATCH] Accepting request 742970 from home:TheBlackCat:branches:devel:languages:python:numeric psychophysics tools for Python OBS-URL: https://build.opensuse.org/request/show/742970 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-psychtoolbox?expand=0&rev=1 --- .gitattributes | 24 +++++++++++ .gitignore | 4 ++ psychtoolbox-3.0.16.tar.gz | 3 ++ python-psychtoolbox.changes | 4 ++ python-psychtoolbox.spec | 86 +++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 psychtoolbox-3.0.16.tar.gz create mode 100644 python-psychtoolbox.changes create mode 100644 python-psychtoolbox.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/psychtoolbox-3.0.16.tar.gz b/psychtoolbox-3.0.16.tar.gz new file mode 100644 index 0000000..1ebc2de --- /dev/null +++ b/psychtoolbox-3.0.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c2b4cc56a222c3dc0d2f164b0dc10eea436b977393542dcaecab7a6ffb6f3bb +size 2456460 diff --git a/python-psychtoolbox.changes b/python-psychtoolbox.changes new file mode 100644 index 0000000..f38be84 --- /dev/null +++ b/python-psychtoolbox.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Oct 24 19:13:07 UTC 2019 - Todd R + +- Initial version diff --git a/python-psychtoolbox.spec b/python-psychtoolbox.spec new file mode 100644 index 0000000..02ce2be --- /dev/null +++ b/python-psychtoolbox.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-psychtoolbox +# +# Copyright (c) 2019 SUSE LINUX 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-psychtoolbox +Version: 3.0.16 +Release: 0 +# Note: the license text mentions non-FOSS code, but that is not included in this source archive +License: MIT and BSD-2-Clause AND X11 AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AML +Summary: Pieces of Psychtoolbox-3 ported to CPython +Url: http://psychtoolbox.org +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/psychtoolbox/psychtoolbox-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module numpy-devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: glibc-devel +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glew) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(portaudio-2.0) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xi) +BuildRequires: python-rpm-macros + + +BuildRequires: gdb + +%python_subpackages + +%description +Psychtoolbox is a toolbox for psychophysics experiments. +The PTB core routines provide access to the display frame buffer and color +lookup table, reliably synchronize with the vertical screen retrace, support +sub-millisecond timing, expose raw OpenGL commands, support video playback +and capture as well as low-latency audio, and facilitate the collection of +observer responses. Ancillary routines support common needs like color +space transformations and the QUEST threshold seeking algorithm. + +This module contains pieces of Psychtoolbox ported to CPython. + +%prep +%setup -q -n psychtoolbox-%{version} +chmod a-x PsychSourceGL/License.txt + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python -c 'import psychtoolbox' +$python -c 'from psychtoolbox import *' +} + +%files %{python_files} +%doc README +%license PsychSourceGL/License.txt +%{python_sitearch}/psychtoolbox-%{version}-py* +%{python_sitearch}/psychtoolbox/ + +%changelog