commit 4710b95c2b310ef244c69972a6a8903c6282f652
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Mar 11 02:31:19 2020 +0000
Update to 3.0.8112 and Drop python2 sub package
.gitignore | 1 +
python-vlc.spec | 40 ++++++++++++----------------------------
sources | 2 +-
3 files changed, 14 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9e62646..fcebc93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
python-vlc-1.1.0-20141115git.tar.bz2
/python-vlc-1.1.2-20161001git5d389c7.tar.bz2
/python-vlc-3.0.6109-20190508git949d19e.tar.bz2
+/python-vlc-3.0.8112-20200311git8e6c723.tar.bz2
diff --git a/python-vlc.spec b/python-vlc.spec
index 02c3dc0..82c02d8 100644
--- a/python-vlc.spec
+++ b/python-vlc.spec
@@ -1,32 +1,23 @@
# [Fedora] Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e
's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
-%global gitdate 20190508git949d19e
+%global gitdate 20200311git8e6c723
%global srcname vlc
%global sum VLC Media Player binding for Python
%global desc This package provides a python interface to control VLC Media Player.
Name: python-%{srcname}
-Version: 3.0.6109
-Release: 0.5.%{gitdate}%{?dist}
-Summary: VLC Media Player binding for Python
+Version: 3.0.8112
+Release: 0.1.%{gitdate}%{?dist}
+Summary: %{sum}
License: GPLv2+
URL:
http://www.videolan.org/
Source0: %{name}-%{version}-%{gitdate}.tar.bz2
Source9: %{name}-snapshot.sh
BuildArch: noarch
-BuildRequires: python2-devel
BuildRequires: python3-devel
%description
-This package provides a python interface to control VLC Media Player.
-
-%package -n python2-%{srcname}
-Summary: %{sum}
-Requires: vlc-core >= 1.1.0
-%{?python_provide:%python_provide python2-%{srcname}}
-
-%description -n python2-%{srcname}
%{desc}
%package -n python3-%{srcname}
@@ -39,18 +30,17 @@ Requires: vlc-core >= 1.1.0
%prep
%setup -q
-# Remove shebang so python2-vlc doesn't require python3
+#fix shebang
sed -i "s|#! /usr/bin/python||" examples/*.py
+sed -i "s|! /usr/bin/python|! %{__python3}|" generated/3.0/vlc.py
%build
pushd generated/3.0
-%py2_build
%py3_build
popd
%install
pushd generated/3.0
-%py2_install
%py3_install
popd
@@ -60,26 +50,16 @@ install -pm 755 examples/*.* \
install -pm 755 examples/video_sync/*.* \
%{buildroot}%{_datadir}/%{name}/examples/video_sync/
-#fix shebang
-sed -i "s|! /usr/bin/python|! %{__python2}|"
%{buildroot}%{python2_sitelib}/vlc.py
-sed -i "s|! /usr/bin/python|! %{__python3}|"
%{buildroot}%{python3_sitelib}/vlc.py
-
#fix rpmlint
-chmod +x %{buildroot}%{python2_sitelib}/*py
chmod +x %{buildroot}%{python3_sitelib}/*py
+chmod -x %{buildroot}%{_datadir}/%{name}/examples/*py
+chmod -x %{buildroot}%{_datadir}/%{name}/examples/video_sync/{*.py,README.md}
%check
pushd generated/3.0
-%{__python2} setup.py test
%{__python3} setup.py test
popd
-%files -n python2-%{srcname}
-%license COPYING
-%doc README.rst TODO
-%{python2_sitelib}/*
-%{_datadir}/%{name}/
-
%files -n python3-%{srcname}
%license COPYING
%doc README.rst TODO
@@ -88,6 +68,10 @@ popd
%changelog
+* Wed Mar 11 2020 Leigh Scott <leigh123linux(a)gmail.com> -
3.0.8112-0.1.20200311git8e6c723
+- Update to 3.0.8112
+- Drop python2 sub package
+
* Wed Feb 05 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
3.0.6109-0.5.20190508git949d19e
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/sources b/sources
index b5098a7..2ed64c1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f402f5ef30781991fb432550d5b543fe python-vlc-3.0.6109-20190508git949d19e.tar.bz2
+SHA512 (python-vlc-3.0.8112-20200311git8e6c723.tar.bz2) =
64f074a015089d253b0453710fd23c83d4b3c8a0a73fc7f6f20f930f1fc6d76cbbc8c2f47d513a3c6effa0127255e8e070d765abd30d9348c8a4a9a029bddeba