SPECS: lve.spec - done optflags, build still fails

glen glen at pld-linux.org
Sat Nov 5 19:31:05 CET 2005


Author: glen                         Date: Sat Nov  5 18:31:05 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- done optflags, build still fails

---- Files affected:
SPECS:
   lve.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/lve.spec
diff -u SPECS/lve.spec:1.10 SPECS/lve.spec:1.11
--- SPECS/lve.spec:1.10	Mon Oct  3 17:18:30 2005
+++ SPECS/lve.spec	Sat Nov  5 19:31:00 2005
@@ -1,11 +1,10 @@
 # $Revision$, $Date$
-# TODO: optflags
 Summary:	Linux Video Editor
 Summary(pl):	Linux Video Editor - edytor filmów dla Linuksa
 Name:		lve
 %define _snap 050112
 Version:	0.%{_snap}
-Release:	1
+Release:	0.1
 License:	GPL
 Group:		Applications/Multimedia
 URL:		http://lvempeg.sourceforge.net/
@@ -14,11 +13,13 @@
 Source1:	http://dl.sourceforge.net/ffmpeg/ffmpeg-0.4.8.tar.gz
 # Source1-md5:	e00d47614ba1afd99ad2ea387e782dd9
 Patch0:		%{name}-a52dec.patch
+Patch1:		%{name}-path.patch
+Patch2:		%{name}-optflags.patch
 BuildRequires:	SDL-devel
 BuildRequires:	XFree86-devel
 BuildRequires:	a52dec-libs-devel
 BuildRequires:	ffmpeg-devel
-BuildRequires:	gcc-c++
+BuildRequires:	gcc-c++ >= 5:3.3.0
 BuildRequires:	mpeg2dec-devel
 BuildRequires:	qt-devel
 BuildRequires:	sed >= 4.0
@@ -45,20 +46,26 @@
 %prep
 %setup -q -n %{name}
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 #sed -i "s,liba52/,a52dec/,g" src/*
 tar -xzf %{SOURCE1}
-rm ffmpeg
-ln -s ffmpeg-0.4.8 ffmpeg
-sed -i "s,%{_prefix}/local/lve/bin/lverequant,%{_bindir}/lverequant,g" src/lvedump.c
-sed -i "s,%{_prefix}/local/lve/lib,%{_datadir}/lve/lib,g" src/lve.h
-sed -i "s,%{_prefix}/local/lve/bin,%{_bindir},g" src/lve.h
+ln -snf ffmpeg-0.4.8 ffmpeg
+
+rm -rf mpeg2dec{,-0.4.0}
+
+ln -sf global_config.gcc330 src/global_config
 
 %build
 %{__make} -C qdir \
+	CC="%{__cxx}" \
+	CFLAGS="%{rpmcxxflags}" \
 	QT_INCLUDE=-I%{_includedir}/qt
 
 %{__make} all-recursive \
+	CC="%{__cxx}" \
+	OPTFLAGS="%{rpmcxxflags}" \
 	INCLUDE="-I../ffmpeg/libavcodec -I%{_includedir}/mpeg2dec" \
 	QT_DIR=%{_prefix} \
 	SUBDIRS="src"
@@ -92,6 +99,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2005/11/05 18:31:00  glen
+- done optflags, build still fails
+
 Revision 1.10  2005/10/03 15:18:30  glen
 - commit local changes
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/lve.spec?r1=1.10&r2=1.11&f=u




More information about the pld-cvs-commit mailing list