1 %define name python-vlc
2 %define version 1.0.0.90
3 %define unmangled_version 1.0.0.90
5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7 Summary: VLC bindings for python.
11 Source0: %{name}-%{unmangled_version}.tar.gz
13 Group: Development/Libraries
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
16 Vendor: Olivier Aubert <olivier.aubert@liris.cnrs.fr>
17 Url: http://wiki.videolan.org/PythonBinding
20 VLC bindings for python.
22 This module provides bindings for the native libvlc API of the VLC
23 video player. Documentation can be found on the VLC wiki :
24 http://wiki.videolan.org/ExternalAPI
26 This module also provides a MediaControl object, which implements an
27 API inspired from the OMG Audio/Video Stream 1.0 specification.
28 Documentation can be found on the VLC wiki :
29 http://wiki.videolan.org/PythonBinding
31 Example session (for the MediaControl API):
34 mc=vlc.MediaControl(['--verbose', '1'])
35 mc.playlist_add_item('movie.mpg')
37 # Start the movie at 2000ms
39 p.origin=vlc.RelativePosition
43 # which could be abbreviated as
45 # for the default conversion from int is to make a RelativePosition in MediaTime
47 # Display some text during 2000ms
48 mc.display_text('Some useless information', 0, 2000)
53 # Get status information
54 mc.get_stream_information()
58 %setup -n %{name}-%{unmangled_version}
61 env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
64 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
67 rm -rf $RPM_BUILD_ROOT
69 %files -f INSTALLED_FILES
71 %{python_sitelib}/vlcwidget.pyo