Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 1348b7854ad6e28f2b4fb0348a527532 > files > 6

libvdpau-0.4.1-2.1.mga1.src.rpm


%define name	libvdpau
%define version	0.4.1
%define snap	0
%define rel	2
%define subrel  1

%define major	1
%define libname	%mklibname vdpau %major
%define devname	%mklibname vdpau -d
%define tracename %mklibname vdpau-trace

%define build_doc 0

Summary:	Video Decode and Presentation API for Unix
Name:		%{name}
Version:	%{version}
%if %snap
Release:	%mkrel 0.%snap.%rel
%else
Release:	%mkrel %rel
%endif
License:	MIT
Group:		System/Libraries
URL:		http://www.nvnews.net/vbulletin/showthread.php?t=123091
%if %snap
# rm -rf libvdpau && git clone git://anongit.freedesktop.org/~aplattner/libvdpau && cd libvdpau/
# git archive --prefix=libvdpau-$(date +%Y%m%d)/ --format=tar HEAD | xz > ../libvdpau-$(date +%Y%m%d).tar.xz
Source0:	libvdpau-%{snap}.tar.xz
%else
Source0:	http://people.freedesktop.org/~aplattner/vdpau/libvdpau-%{version}.tar.gz
%endif
BuildRoot:	%{_tmppath}/%{name}-root
Patch0:		libvdpau-0.4.1-fix-X11-underlinking.patch
# From upstream git master:
Patch1:         libvdpau-track-handles.patch
# Workaround several flash player bugs:
Patch2:         libvdpau-workaround-flashplayer.patch
# Make flash player detection work on opera and konqueror
Patch3:         libvdpau-workaround-flashplayer-konq-opera.patch
BuildRequires:	libx11-devel
BuildRequires:	libxext-devel
%if %build_doc
# for apidoc:
BuildRequires:	tetex graphviz doxygen
%endif

%description
The Video Decode and Presentation API for Unix (VDPAU) provides a
complete solution for decoding, post-processing, compositing, and
displaying compressed or uncompressed video streams. These video
streams may be combined (composited) with bitmap content, to
implement OSDs and other application user interfaces.

Only the proprietary NVIDIA driver supports this interface so far.

%package -n %libname
Summary:	VDPAU shared library
Group:		System/Libraries

%description -n %libname
The Video Decode and Presentation API for Unix (VDPAU) wrapper shared
library. This library is responsible for loading the hardware-specific
VDPAU driver.

%package -n %tracename
Summary:	VDPAU tracing module for debugging
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}

%description -n %tracename
VDPAU tracing module libvdpau_trace.so for debugging VDPAU.

%package -n %devname
Summary:	VDPAU development headers
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	vdpau-devel = %{version}-%{release}

%description -n %devname
This package contains the VDPAU headers for developing software that
uses VDPAU.

%prep
%if %snap
%setup -q -n %name-%snap
%else
%setup -q
%endif

%apply_patches

%build
autoreconf -if
%configure2_5x \
%if ! %build_doc
  --disable-documentation
%endif

%make

%install
rm -rf %{buildroot}
%makeinstall_std
# (anssi) unneeded files
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/vdpau/*.{la,so}

%if %build_doc
mv %{buildroot}%{_docdir}/libvdpau/html api-html
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libvdpau.so.%{major}*
%dir %{_libdir}/vdpau

%files -n %tracename
%defattr(-,root,root)
# major is the plugin interface version, not %major
%{_libdir}/vdpau/libvdpau_trace.so.*

%files -n %{devname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%if %build_doc
%doc api-html
%endif
%config %{_sysconfdir}/vdpau_wrapper.cfg
%{_includedir}/vdpau
%{_libdir}/libvdpau.so
%{_libdir}/pkgconfig/vdpau.pc





%changelog

* Sat Jul 28 2012 anssi <anssi> 0.4.1-2.1.mga1
+ Revision: 275323
- track dynamic library handles and free them on exit (track-handles.patch
  from upstream git)
- workaround some bugs in Adobe Flash Player, including video bleedthrough
  and swapped colors (workaround-flashplayer.patch by Stephen Warren)
- make the workaround work with Konqueror and Opera
  (workaround-flashplayer-konq-opera.patch)

  + ahmad <ahmad>
    - make building the api-doc condintional and disable it for now (graphviz isn't
      available yet)
    - imported package libvdpau


* Sun Sep 12 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.4.1-1mdv2011.0
+ Revision: 577793
- Patch0: fix underlinking

  + Thierry Vignaud <tv@mandriva.org>
    - new release (strange that I could beat Anssi on that one...)

* Sun Jan 31 2010 Anssi Hannula <anssi@mandriva.org> 0.4-1mdv2010.1
+ Revision: 498888
- new version

* Wed Nov 25 2009 Anssi Hannula <anssi@mandriva.org> 0.3-1mdv2010.1
+ Revision: 470080
- new version

* Sat Sep 19 2009 Anssi Hannula <anssi@mandriva.org> 0.2-1mdv2010.0
+ Revision: 444666
- 0.2 (first official non-snapshot version)
- remove underlinking workaround, fixed upstream

* Sat Jul 18 2009 Anssi Hannula <anssi@mandriva.org> 0.1-0.20090718.1mdv2010.0
+ Revision: 397127
- new snapshot

* Sat Feb 21 2009 Anssi Hannula <anssi@mandriva.org> 0.1-0.20090221.1mdv2009.1
+ Revision: 343640
- switch to freedesktop snapshot of libvdpau
- rename vdpau to libvdpau

* Sun Dec 21 2008 Anssi Hannula <anssi@mandriva.org> 0-0.180.16.1mdv2009.1
+ Revision: 317093
- initial Mandriva release