14
0
2018-12-04 17:20:18 +00:00
committed by Git OBS Bridge
parent 826ed7af97
commit 6810afc0f4

View File

@@ -23,7 +23,7 @@ Release: 0
Summary: VLC bindings for python Summary: VLC bindings for python
License: LGPL-2.0-or-later License: LGPL-2.0-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://wiki.videolan.org/PythonBinding URL: http://wiki.videolan.org/PythonBinding
Source: https://files.pythonhosted.org/packages/source/p/python-vlc/python-vlc-%{version}.tar.gz 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 # PATCH-FIX-UPSTREAM fix-docs.patch -- Fix some example code in the docs
Patch0: fix-docs.patch Patch0: fix-docs.patch
@@ -33,7 +33,6 @@ BuildRequires: python-rpm-macros
BuildRequires: vlc-devel BuildRequires: vlc-devel
Requires: libvlc5 >= 3.0.0 Requires: libvlc5 >= 3.0.0
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -45,7 +44,7 @@ This module provides ctypes-based bindings for the native libvlc API
%prep %prep
%setup -q -n python-vlc-%{version} %setup -q -n python-vlc-%{version}
%patch0 -p1 %patch0 -p1
sed -i -e '1{\,^#! /usr/bin/python,d}' vlc.py sed -i -e '1{\,^#! %{_bindir}/python,d}' vlc.py
%build %build
%python_build %python_build
@@ -55,8 +54,8 @@ sed -i -e '1{\,^#! /usr/bin/python,d}' vlc.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license COPYING
%doc COPYING README.module %doc README.module
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog