commit 64ad902defbbb2eaef5c127bca21997bc648fc4015289ba644ed60d59c998e1f Author: Dominique Leuenberger Date: Wed Dec 6 07:58:33 2017 +0000 Accepting request 547920 from multimedia:libs - Added libvlc5 as runtime requirement - Update to version 2.2.6100: * Python bindings: fix regexp to handle deprecated APIs * Rename gtkvlc.py to gtk2vlc.py (using old pygtk2 version) * Gtk3 example * python bindings generator: handle bitshifted chars in enums * python-vlc: allow to specify lib and plugin path * python bindings: update generator version number * Python bindings: update generated bindings for 2.2 and dev. versions * python bindings: configure logging module when running standalone * python bindings: refactor, move template files to their own directory * Generate an appropriate PyPI installer package for the generated module - Initial release of python-python-vlc 1.1.2 OBS-URL: https://build.opensuse.org/request/show/547920 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-vlc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.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 +*.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..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fix-docs.patch b/fix-docs.patch new file mode 100644 index 0000000..ee5dc96 --- /dev/null +++ b/fix-docs.patch @@ -0,0 +1,23 @@ +Index: python-vlc-1.1.2/README.module +=================================================================== +--- python-vlc-1.1.2.orig/README.module ++++ python-vlc-1.1.2/README.module +@@ -42,12 +42,14 @@ directory as the libvlc.dll file (standa + + >>> import vlc + >>> vlc.libvlc_get_version() +- '1.0.0 Goldeneye' ++ '2.2.6 Umbrella' +- >>> e=vlc.VLCException() +- >>> i=vlc.libvlc_new(0, [], e) ++ >>> i=vlc.libvlc_new(0, []) + >>> i + +- >>> vlc.libvlc_audio_get_volume(i,e) ++ >>> p=vlc.libvlc_media_player_new(i) ++ >>> p ++ ++ >>> vlc.libvlc_audio_get_volume(p) + 50 + + - Using wrapper classes: diff --git a/python-python-vlc.changes b/python-python-vlc.changes new file mode 100644 index 0000000..602ed3f --- /dev/null +++ b/python-python-vlc.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Sun Dec 3 06:21:09 UTC 2017 - aloisio@gmx.com + +- Added libvlc5 as runtime requirement + +------------------------------------------------------------------- +Fri Nov 10 17:09:33 UTC 2017 - alarrosa@suse.com + +- Update to version 2.2.6100: + * Python bindings: fix regexp to handle deprecated APIs + * Rename gtkvlc.py to gtk2vlc.py (using old pygtk2 version) + * Gtk3 example + * python bindings generator: handle bitshifted chars in enums + * python-vlc: allow to specify lib and plugin path + * python bindings: update generator version number + * Python bindings: update generated bindings for 2.2 and dev. versions + * python bindings: configure logging module when running standalone + * python bindings: refactor, move template files to their own directory + * Generate an appropriate PyPI installer package for the generated module + +------------------------------------------------------------------- +Tue Sep 5 17:29:09 UTC 2017 - alarrosa@suse.com + +- Initial release of python-python-vlc 1.1.2 diff --git a/python-python-vlc.spec b/python-python-vlc.spec new file mode 100644 index 0000000..1acafd6 --- /dev/null +++ b/python-python-vlc.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-python-vlc +# +# Copyright (c) 2017 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-%{**}} +Name: python-python-vlc +Version: 2.2.6100 +Release: 0 +License: LGPL-2.0+ +Summary: VLC bindings for python +Url: http://wiki.videolan.org/PythonBinding +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/python-vlc/python-vlc-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix-docs.patch -- Fix some example code in the docs +Patch0: fix-docs.patch +BuildRequires: python-rpm-macros +BuildRequires: vlc-devel +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +Requires: libvlc5 >= 2.2.6 +BuildArch: noarch + +%python_subpackages + +%description +VLC bindings for python. + +This module provides ctypes-based bindings for the native libvlc API +(see http://wiki.videolan.org/LibVLC) of the VLC video player. + +%prep +%setup -q -n python-vlc-%{version} +%patch0 -p1 +sed -i -e '1{\,^#! /usr/bin/python,d}' vlc.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%doc COPYING README.module +%{python_sitelib}/* + +%changelog diff --git a/python-vlc-2.2.6100.tar.gz b/python-vlc-2.2.6100.tar.gz new file mode 100644 index 0000000..ace7d5c --- /dev/null +++ b/python-vlc-2.2.6100.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcf6d3d7cd24aa8a89fa16cd87e5abc790d8740afc663522b4a5617e97b16233 +size 86046