Hi Claude,

Here's a spec file that I made up a couple of weeks ago:

It's still got a little bit to go..

The Requires lines within the spec file is a list of the current libraries I had when I compiled.. probably get away with less.

All the libraries are available from livna, which is available from dries (but this is on the livna bugzilla
http://bugzilla.livna.org/show_bug.cgi?id=1179)

The idea of the first few %defines is to assign some optimisation flags. the genopt_flags are general and are typically good for all architectures. and the rpmcflags contains specific architecture info.

You'll need to make an archive of the svn checkout (with the .svn stuff included.. this could change later by modifying the %build section to make a custom versioninfo.h file) and name it as cinelerra-${ver0} and place it in /usr/src/redhat/SOURCES/ (my file name was cinelerra-2.1.CV.svn.r909M.tar.gz)

Don't know if this helps as a starter for anything..

Pierre


Claude Jones wrote:
On Wed October 18 2006 11:10 am, [EMAIL PROTECTED] wrote:
Hi Claude,
I've had a good deal of experience with FC4.  I assume the
deps for FC5 are more or less the same.  Here is a list of the
dependent packages for that system:
http://crazedmuleproductions.blogspot.com/2006/08/fc4-dependen
cies-for-cinelerra-cvs.html

After you make sure you ...........snip.......................

Scott: Thanks for your detailed response. I'm going to experiment this week with this. I'm actually planning to wipe the slate clean next week and install FC6, but this will be good practice. Hope folks don't mind my asking questions as I get into this...


# This is not relocatable
%define prefix /usr
%define ver0 2.1.CV.svn.r909M
%define genopt_flags -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays 
-funroll-loops -minline-all-stringops
%define ver1 athlonxp
%define rpmcflags %{genopt_flags} -march=athlon-xp -mmmx -msse -mfpmath=sse,387 
-ffast-math

Summary: A video editing software for linux.
Name: cinelerra
Version: %{ver0}
Release: %(date '+%Y%m%d').%{ver1}
License: GPL
Group: Applications/Multimedia
URL: http://cvs.cinelerra.org
Source0: %{name}-%{ver0}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: a52dec        >= 0.7.4  
Requires: faac          >= 1.24 
Requires: faad2         >= 2.0 
Requires: libavc1394    >= 0.5.1
Requires: libiec61883   >= 1.0.0
Requires: libraw1394    >= 1.2.1
Requires: libsndfile    >= 1.0.15
Requires: OpenEXR       >= 1.2.2
Requires: mjpegtools    >= 1.8.0
Requires: ffmpeg        >= 0.4.9
Requires: lame          >= 3.96.1
Requires: fftw          >= 3.1.1
# Not sure if this is REALLY needed
#Requires: fftw2         >= 2.1.5
Requires: libdv         >= 0.104
Requires: libtheora     >= 1.0
Requires: x264

BuildRequires: a52dec-devel        >= 0.7.4  
BuildRequires: faac-devel          >= 1.24 
BuildRequires: faad2-devel         >= 2.0 
BuildRequires: libavc1394-devel    >= 0.5.1
BuildRequires: libiec61883-devel   >= 1.0.0
BuildRequires: libraw1394-devel    >= 1.2.1
BuildRequires: libsndfile-devel    >= 1.0.15
BuildRequires: OpenEXR-devel       >= 1.2.2
BuildRequires: mjpegtools-devel    >= 1.8.0
BuildRequires: ffmpeg-devel        >= 0.4.9
BuildRequires: lame-devel          >= 3.96.1
BuildRequires: fftw-devel          >= 3.1.1
# Not sure if this is REALLY needed
#BuildRequires: fftw2-devel         >= 2.1.5
BuildRequires: libdv-devel         >= 0.104
BuildRequires: libtheora-devel     >= 1.0
BuildRequires: x264-devel


%description

CinelerraCV is a video editing software that is a fork of the official
version developed at http://heroinewarrior.com/cinelerra.php3. The
"CV" stands for community version, and this version exists due to the
the lack of support provided by heroinewarrior.

%prep
%setup -q -c

%build
./configure --prefix=%{prefix} --enable-x86 --enable-mmx --enable-freetype2 
--with-buildinfo=svn/recompile --with-plugindir=/usr/lib/cinelerra/ \
    CFLAGS='%{rpmcflags}' CXXFLAGS='%{rpmcflags} -fno-check-new'

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
( ln -s /usr/bin/mpeg2enc 
$RPM_BUILD_ROOT%{prefix}/lib/cinelerra/mpeg2enc.plugin )


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc
%{prefix}/bin/cinelerra
%{prefix}/bin/mpeg3dump
%{prefix}/bin/mpeg3toc
%{prefix}/bin/mpeg3cat
%{prefix}/bin/mplexlo

%{prefix}/share/locale/*
%exclude %{prefix}/include/*

%{prefix}/lib/cinelerra/*.so
%{prefix}/lib/cinelerra/mpeg2enc.plugin
%{prefix}/lib/cinelerra/shapewipe/*

%exclude %{prefix}/lib/cinelerra/*.la

%{prefix}/lib/cinelerra/fonts/*

%{prefix}/lib/libguicast*
%{prefix}/lib/libmpeg3hv*
%{prefix}/lib/libquicktimehv*

%{prefix}/share/applications/cinelerra.desktop
%{prefix}/share/pixmaps/cinelerra.xpm




%changelog
* Thu Oct  5 2006 Pierre Marc Dumuid <[EMAIL PROTECTED]> 
- First package with merged Cinelerra 2.1

Reply via email to