%define name vdpauinfo %define version 0.0.6 %define snap 0 %define rel 3 Summary: VDPAU acceleration information utility Name: %{name} Version: %{version} %if %snap Release: %mkrel 0.%snap.%rel %else Release: %mkrel %rel %endif License: MIT Group: Development/X11 URL: http://www.nvnews.net/vbulletin/showthread.php?t=124978 %if %snap # rm -rf vdpauinfo && git clone git://anongit.freedesktop.org/~aplattner/vdpauinfo && cd vdpauinfo/ # git archive --prefix=vdpauinfo-$(date +%Y%m%d)/ --format=tar HEAD | lzma > ../vdpauinfo-$(date +%Y%m%d).tar.lzma Source: vdpauinfo-%{snap}.tar.lzma %else Source: http://people.freedesktop.org/~aplattner/vdpau/vdpauinfo-%{version}.tar.gz %endif BuildRoot: %{_tmppath}/%{name}-root BuildRequires: vdpau-devel >= 0.2 BuildRequires: libx11-devel BuildRequires: python Obsoletes: vdpinfo < 0.0.6 %description Simple utility that queries and displays the VDPAU capabilities of your X display and prints them in tabular format. %prep %if %snap %setup -q -n %{name}-%snap %else %setup -q %endif %build %if %snap python functions.py > VDPDeviceImpl.h autoreconf -fi %endif %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS %{_bindir}/%{name} %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.0.6-3.mga3 + Revision: 385248 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri May 13 2011 anssi <anssi> 0.0.6-2.mga1 + Revision: 98047 - imported package vdpauinfo