%define beta %nil %define date %nil Name: xvinfo Version: 1.0.1 %if "%beta" == "" %if "%date" == "" Release: 1ark Source: ftp://ftp.x.org/pub/individual/app/%name-%version.tar.bz2 %else Release: 0.%date.1ark Source: %name-%date.tar.bz2 %endif %else %if "%date" == "" Release: 0.%beta.1ark Source: %name-%version%beta.tar.bz2 %else Release: 0.%beta.0.%date.1ark Source: %name-%date.tar.bz2 %endif %endif Summary: Display information about the Xv (video overlay) support in the graphics chip URL: http://www.x.org/ License: X11 Group: Tools BuildRoot: %{_tmppath}/%{name}-root %description Display information about the Xv (video overlay) support in the graphics chip %prep %if "%date" == "" %setup -q -n %name-%version%beta %else %setup -q -n %name %endif %configure %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %_bindir/* %_mandir/*/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Fri Sep 29 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.0.1-1ark - initial RPM