%define name libvdpau %define version 0.5 %define snap 0 %define rel 6 %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 Patch0: libvdpau-0.5-fix-X11-underlinking.patch # Make flash player detection work on opera and konqueror Patch3: libvdpau-workaround-flashplayer-konq-opera.patch Patch4: libvdpau-0.5-automake-1.13.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 %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 %files -n %{libname} %{_libdir}/libvdpau.so.%{major}* %dir %{_libdir}/vdpau %files -n %{tracename} # major is the plugin interface version, not %major %{_libdir}/vdpau/libvdpau_trace.so.* %files -n %{devname} %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 Jan 12 2013 umeabot <umeabot> 0.5-6.mga3 + Revision: 358325 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Jan 07 2013 luigiwalser <luigiwalser> 0.5-5.mga3 + Revision: 340656 - fix for automake 1.13 * Wed Sep 05 2012 tv <tv> 0.5-4.mga3 + Revision: 288686 - new release - drop merged patches - rediff patch 0 * Sat Jul 28 2012 anssi <anssi> 0.4.1-4.mga3 + Revision: 275318 - 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) * Mon Dec 12 2011 fwang <fwang> 0.4.1-3.mga2 + Revision: 180833 - cleanup spec file + ahmad <ahmad> - make building the api-doc condintional and disable it for now (graphviz isn't available yet) - imported package libvdpau