# Packmanpackagename: cinelerra
# Packman: Leon Freitag (leon@links2linux.de)
# Packmangroup: Multimedia
# norootforbuild
Name: cinelerra
Summary: A non linear video editor and effects processor 
#Version: 2.1.CVsvn%(date '+%Y%m%d')
Version: 2.1.cv958
Release: 0.pm.1 
License: GPL
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: http://cvs.cinelerra.org
Source0: %name-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-2.1-%{release}-buildroot
BuildRequires: xorg-x11-Mesa-devel xorg-x11-devel fltk-devel x264-devel alsa-devel lame libavc1394-devel faac faad2-devel a52dec libjpeg-devel libpng-devel libdv-devel OpenEXR-devel libogg-devel libvorbis-devel libtheora-devel mjpegtools libraw1394-devel libiec61883-devel libmpeg3 libsndfile-devel pkgconfig nasm fftw3-devel gcc-c++
#who would ever think of that...
BuildRequires: e2fsprogs-devel
#and what they forgot to check in the configure script...
BuildRequires: libtiff-devel flac-devel
Requires: mjpegtools >= 1.6.3
Provides: cinelerra
Autoreqprov: on

%description
Heroine Virtual Ltd. presents an advanced content creation system for Linux. Cinelerra takes what normally is a boring server - studied in computer science classrooms, hidden in back offices - and turns it into a 50,000 watt flamethrower of multimedia editing.
 That's right kids. Unlike most of the Linux solutions out there, Cinelerra requires no emulation of proprietary operating systems, no commercial add-ons, no banner advertizements, no corporate dependancies, no terrorists, just a boring old Linux box.
 Cinelerra does primarily 3 main things: capturing, compositing, and editing audio and video with sample level accuracy. It's a seamless integration of audio, video, and still photos rarely experienced on a web server.
 If you want to make movies, you just want to defy the establishment, you want the same kind of compositing and editing suite that the big boys use, on the world's most efficient UNIX operating system, it's time for Cinelerra.

The version you'll find in this package is the cinelerra.org community version. It's the SVN release 958 build.
%package devel
Summary: Cinelerra header files and development libraries
Group: Development/Libraries/Other
Requires: %name = %version
%description devel
Cinelerra files needed for compiling stuff


%prep
%setup -q 

%build
%configure  --enable-freetype2 --enable-opengl

%{__make} %{?_smp_mflags} %{?mflags}

%install
%makeinstall
# rename the mpeg3 utils so they can be installed alongside SuSE native versions
cd $RPM_BUILD_ROOT/%{_bindir}
mv mpeg3toc mpeg3toc.hv
mv mpeg3cat mpeg3cat.hv
mv mpeg3dump mpeg3dump.hv
#  cd $RPM_BUILD_ROOT%{prefix}/lib
ln -s /usr/bin/mpeg2enc $RPM_BUILD_ROOT%{_libdir}/cinelerra/mpeg2enc.plugin


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc

%{_bindir}/cinelerra

# missing in the 2.1 build
#%{_bindir}/mplexhi
%{_bindir}/mplexlo

%{_bindir}/mpeg3dump.hv
%{_bindir}/mpeg3toc.hv
%{_bindir}/mpeg3cat.hv

%{_datadir}/locale/*
%{_libdir}/cinelerra/*

%{_libdir}/libguicast.so.*
%{_libdir}/libmpeg3hv*.so.*
%{_libdir}/libquicktimehv*.so.*
# missing
#%{_libdir}/libsndfilehv*

%{_datadir}/applications/cinelerra.desktop
%{_datadir}/pixmaps/cinelerra.xpm

%files devel
#no .pc files :/
#%{_libdir}/pkgconfig*

%{_libdir}/libmpeg3hv.so
%{_libdir}/libmpeg3hv.la
%{_libdir}/libquicktimehv.so
%{_libdir}/libquicktimehv.la
%{_libdir}/libguicast.so
%{_libdir}/libguicast.la
#%{_libdir}/libsndfilehv.so
#%{_libdir}/libsndfilehv.la
%{_includedir}/*
%changelog
* Mon Nov 13 2006 Leon Freitag <leon@links2linux.de> - 2.1.cv958
- svn r958
* Tue Sep 26 2006 Leon Freitag <leon@links2linux.de> - 2.1.cv909
- changed the spec to match the packman/SP conventions
- svn r909
* Thu Sep 14 2006 Kevin Brosius <cobra@compuserve.com> - 2.1.0.cvs.cobra-date
- First package with merged Cinelerra 2.1
- svn r888

%changelog
* Thu Jun 1 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- transitions fix, Ogg renderfarm support, po email address fix
- file.h compile fix, fix thread delete race condition
- a bunch of mem management fixes

* Mon May 29 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- reading ogg vorbis fix, Freetype2 2.2.1 compatibility
- mjpeg load fixes (bug139, 148, 259), fix insertion of media files directly
- shorten xml files, motion blur plugin
- camera and projector automation for plugins, waveform not shown fix
- change every clip all media files behavior in saved xml
- work without audio enabled, delete pluginsets fix

* Tue May 02 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- fseek0 fix bug244, bug250, check sound/audio in dv format
- bug249 vorbis setup fix, chromakey fix, check for libfaac
- fix DV audio read sample impl., move icon in Gnome
- bug30 allow transition at end of track, bug243
- fix crash when rendering plugins, fix null plugin usage
- fix load XML crash, bug242 >1024 properties

* Sat Apr 03 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- EDL export, .mov DV fourcc -> dvc, multi transitions with diff lengths fix
- debian build fixes, new configure checks and libavcodec header fixes
- mux fixes for long silence/empty video, ubuntu build fixes
- RGB*_FLOAT color models for mask engine, gcc 4.1.0 fixes/mpeg2enc
- Makefile cleanups, raise_window() commands, BUZ driver channel editor fixes
- format selection for timecode in titler, build date and CV versioning
- fix --disable-firewire, chromakey-hsv plugin, pt_BR translation updates
- deinterlace plugin updates, cache frames even when not static
- new deinterlacer, timefronts - take from alpha
- fix apply-mask-before-plugins for masks, new timefront plugin
- add histogram split checkbox

* Sat Feb 04 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- vertical pos of auto-zoom text, dv audio offset/framing fix
- Italian translation, Spanish update, deinterlace fix
- mpeg encode params fix

* Sat Jan 26 2006 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- raw dv i/o fixes, textual info for labels, " conversion
- Automation text label editable, audio_position adjust for dv1394
 
* Sat Dec 24 2005 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- fix bug 219 & 220, make text menu hilight white
- alt+left/right navigates trough edit handles
- parameter name fix, single image dnd fixes, remove mwindowmove dup code
- ffmpeg defaults for elem stream (Bug 164), member function fix
- gettextize language changes for more plugins, French update

* Sun Dec 11 2005 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- Fix renderfarm client crash, align cursor on frames default
- right mouse on keyframe - keyframe popup, guicast / gettextize additions
- Brazilian update, French update
- link mpeg2enc.plugin for SUSE, add mjpegtools >= 1.6.3 dep

* Mon Nov 14 2005 Kevin Brosius <cobra@compuserve.com> - 2.0.0.cvs.cobra-date
- Initial build of CV from svn tree.


