commit 01d7b6345ab4956885f2c08f82051b784f8f0093
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Jun 11 20:42:16 2020 +0100
Update to 3.0.9113
.gitignore | 1 +
python-vlc.spec | 67 ++++++++++++++++++++++++++-------------------------------
sources | 2 +-
3 files changed, 33 insertions(+), 37 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fcebc93..ad20fb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,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
+/python-vlc-3.0.9113.tar.gz
diff --git a/python-vlc.spec b/python-vlc.spec
index 7013420..9461c01 100644
--- a/python-vlc.spec
+++ b/python-vlc.spec
@@ -1,21 +1,20 @@
-# [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 20200311git8e6c723
+%global pypi_name python-vlc
%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.8112
-Release: 0.2.%{gitdate}%{?dist}
+Version: 3.0.9113
+Release: 1%{?dist}
Summary: %{sum}
-License: GPLv2+
-URL:
http://www.videolan.org/
-Source0: %{name}-%{version}-%{gitdate}.tar.bz2
-Source9: %{name}-snapshot.sh
+
+License: LGPLv2+
+URL:
http://wiki.videolan.org/PythonBinding
+Source0:
https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{ver...
BuildArch: noarch
+
BuildRequires: python3-devel
+BuildRequires: python3dist(setuptools)
%description
%{desc}
@@ -29,45 +28,41 @@ Requires: vlc-core >= 1.1.0
%{desc}
%prep
-%setup -q
-#fix shebang
-sed -i "s|#! /usr/bin/python||" examples/*.py
-sed -i "s|! /usr/bin/python|! %{__python3}|" generated/3.0/vlc.py
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+# fix shebang
+sed -i "s|! /usr/bin/env python3|! %{__python3}|" examples/glsurface.py
+sed -i "s|! /usr/bin/python|! %{__python3}|" vlc.py
+#fix rpmlint
+chmod -x examples/cocoavlc.py examples/glsurface.py
+# Move README.md
+mv examples/video_sync/README.md .
+# Delete backup file
+rm examples/glsurface.py~
%build
-pushd generated/3.0
%py3_build
-popd
%install
-pushd generated/3.0
%py3_install
-popd
-
-mkdir -p %{buildroot}%{_datadir}/%{name}/examples/video_sync
-install -pm 755 examples/*.* \
- %{buildroot}%{_datadir}/%{name}/examples/
-install -pm 755 examples/video_sync/*.* \
- %{buildroot}%{_datadir}/%{name}/examples/video_sync/
#fix rpmlint
-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
-%{__python3} setup.py test
-popd
+chmod +x %{buildroot}%{python3_sitelib}/vlc.py
%files -n python3-%{srcname}
+%doc README.module README.md examples/
%license COPYING
-%doc README.rst TODO
-%{python3_sitelib}/*
-%{_datadir}/%{name}/
-
+%{python3_sitelib}/__pycache__/*
+%{python3_sitelib}/vlc.py
+%{python3_sitelib}/python_vlc-%{version}-py%{python3_version}.egg-info
%changelog
+* Thu Jun 11 2020 Leigh Scott <leigh123linux(a)gmail.com> - 3.0.9113-1
+- Update to 3.0.9113
+- Fix License
+- Move examples to doc
+
* Sat May 30 2020 Leigh Scott <leigh123linux(a)gmail.com> -
3.0.8112-0.2.20200311git8e6c723
- Rebuild for python-3.9
diff --git a/sources b/sources
index 2ed64c1..82d9578 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-vlc-3.0.8112-20200311git8e6c723.tar.bz2) =
64f074a015089d253b0453710fd23c83d4b3c8a0a73fc7f6f20f930f1fc6d76cbbc8c2f47d513a3c6effa0127255e8e070d765abd30d9348c8a4a9a029bddeba
+SHA512 (python-vlc-3.0.9113.tar.gz) =
0fef0190238695d7fb9217857c4e70b2c61be91409506e9fa175ca76af1b52d8e620126c6e8f67c8672e1bab00a9d9dd673701ff31059db7ff742881ec2f278c