From 13aab9e5ed6699a3139205b26c8ab9176862dd96 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 26 Apr 2004 22:12:20 +0000 Subject: [PATCH] - added mmx bcond, fixed build on amd64, release 5 Changed files: NuppelVideo.spec -> 1.17 --- NuppelVideo.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/NuppelVideo.spec b/NuppelVideo.spec index de5a300..e0e661b 100644 --- a/NuppelVideo.spec +++ b/NuppelVideo.spec @@ -1,8 +1,15 @@ +# +# Conditional build: +%bcond_with mmx # use MMX (makes sense on i586/i686) +# +%ifarch athlon pentium3 pentium4 +%define with_mmx 1 +%endif Summary: Fast movie recorder and player for Linux Summary(pl): Szybka nagrywarka i odtwarzacz filmów pod Linuksa Name: NuppelVideo Version: 0.52a -Release: 4 +Release: 5 License: GPL v2 Group: X11/Applications/Multimedia Source0: http://frost.htu.tuwien.ac.at/~roman/nuppelvideo/%{name}-%{version}.tar.gz @@ -11,6 +18,7 @@ Patch0: %{name}-make.patch Patch1: %{name}-nonx86.patch URL: http://frost.htu.tuwien.ac.at/~roman/nuppelvideo/ BuildRequires: XFree86-devel +BuildRequires: sed >= 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -30,14 +38,12 @@ RTjpeg2.0 (poprawiony przez Joerga Waltera i Wima Taymansa). %patch0 -p1 %patch1 -p1 +sed -i -e 's@-L/usr/X11R6/lib@-L/usr/X11R6/%{_lib}@' Makefile + %build %{__make} \ CC=%{__cc} \ -%ifarch athlon - COPTS="%{rpmcflags} -DMMX" -%else - COPTS="%{rpmcflags}" -%endif + COPTS="%{rpmcflags}%{?with_mmx: -DMMX}" %install rm -rf $RPM_BUILD_ROOT -- 2.44.0