forked from pool/python-python-vlc
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
23
fix-docs.patch
Normal file
23
fix-docs.patch
Normal file
@@ -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.Instance object at 0x8384a4c>
|
||||||
|
- >>> vlc.libvlc_audio_get_volume(i,e)
|
||||||
|
+ >>> p=vlc.libvlc_media_player_new(i)
|
||||||
|
+ >>> p
|
||||||
|
+ <vlc.MediaPlayer object at 0x7f7a40d0af28>
|
||||||
|
+ >>> vlc.libvlc_audio_get_volume(p)
|
||||||
|
50
|
||||||
|
|
||||||
|
- Using wrapper classes:
|
24
python-python-vlc.changes
Normal file
24
python-python-vlc.changes
Normal file
@@ -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
|
62
python-python-vlc.spec
Normal file
62
python-python-vlc.spec
Normal file
@@ -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
|
3
python-vlc-2.2.6100.tar.gz
Normal file
3
python-vlc-2.2.6100.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dcf6d3d7cd24aa8a89fa16cd87e5abc790d8740afc663522b4a5617e97b16233
|
||||||
|
size 86046
|
Reference in New Issue
Block a user