]> git.pld-linux.org Git - packages/NuppelVideo.git/commitdiff
- added mmx bcond, fixed build on amd64, release 5 AC-branch AC-STABLE auto/ac/NuppelVideo-0_52a-5
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Apr 2004 22:12:20 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    NuppelVideo.spec -> 1.17

NuppelVideo.spec

index de5a30035be94e1114a18aacd973d003c5e0758e..e0e661b3646d004837b5c624c2a6995924d34202 100644 (file)
@@ -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
This page took 0.056425 seconds and 4 git commands to generate.