packages cinelerra-cv.spec
      Pages: < 1 >  DOWNLOAD      
Name:          cinelerra-cv
Version:       2.2.git20120403
Release:       1mamba2
Summary:       Advanced audio and video capturing, compositing, and editing
Group:         Graphical Desktop/Applications/Multimedia
Vendor:        openmamba
Distribution:  openmamba
Packager:      Tiziana Ferro <tiziana.ferro@...>
URL:           http://cinelerra.org/
# Source got with git clone git://git.cinelerra.org/CinelerraCV.git cinelerra-cv (make dist not working)
Source0:       %{name}-%{version}.tar.xz
Patch0:        %{name}-2.1.5-fix-font.patch
Patch1:        %{name}-2.1.5-remove-fontts.patch
Patch2:        %{name}-2.2.git20120403-ffmpeg.patch
License:       GPL
Requires(post):%{__install_info}
BuildRoot:     %{_tmppath}/%{name}-%{version}-root
Obsoletes:     cinelerra
Provides:      cinelerra
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: liba52dec-devel
BuildRequires: libalsa-devel
BuildRequires: libavc1394-devel
BuildRequires: libavcodec-devel
BuildRequires: libdv-devel
BuildRequires: libfaac-devel
BuildRequires: libfaad2-devel
BuildRequires: libfftw-devel
BuildRequires: libflac-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libiec61883-devel
BuildRequires: libilmbase-devel
BuildRequires: libjpeg-devel
BuildRequires: liblame-devel
BuildRequires: libmjpegtools-devel
BuildRequires: libogg-devel
BuildRequires: libopenexr-devel
BuildRequires: libpng-devel
BuildRequires: libpostproc-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libraw1394-devel
BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
BuildRequires: libswscale-devel
BuildRequires: libtheora-devel
BuildRequires: libtiff-devel
BuildRequires: libuuid-devel
BuildRequires: libvorbis-devel
BuildRequires: libX11-devel
BuildRequires: libx264-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXv-devel
BuildRequires: libXxf86vm-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
%ifarch %{ix86}
BuildRequires: nasm
%endif
BuildRequires: libjbig-devel
BuildRequires: libmjpegtools-devel
BuildRequires: e2fsprogs
BuildRequires: libavcodec-devel
Requires:      mpeg3-tools

%description
There are two types of moviegoers: producers who create new content, going back over their content at future points for further refinement, and consumers who want to acquire the content and watch it.
Cinelerra is not intended for consumers.
Cinelerra has many features for uncompressed content, high resolution processing, and compositing, with very few shortcuts.
Producers need these features because of the need to retouch many generations of footage with alterations to the format, which makes Cinelerra very complex.

Cinelerra was meant to be a Broadcast 2000 replacement.

This is Community Version.

A professional audio and video editing software.

%package devel
Summary:       Devel package for %{name}
Group:         Development/Libraries
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides:      cinelerra-devel
Obsoletes:     cinelerra-devel

%description devel
This is the Community maintained Version of cinelerra.

This package contains static libraries and header files need for development.

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
#./autogen.sh

%build
%configure \
  --with-fontsdir=%{_datadir}/fonts/%{name} \
  --with-plugindir=%{_libdir}/cinelerra \
  --with-alsa-prefix=%{_prefix} \
  --disable-esd \
  --with-external-ffmpeg \
  --enable-libfaad \
  --enable-freetype2 \
  --disable-static \
%ifarch %{ix86} x86_64
  --enable-mmx \
%else
  --disable-mmx \
  --disable-3dnow \
%endif
%ifarch ppc ppc64
  --enable-altivec \
%else
  --disable-altivec \
%endif
  --with-pic \
  --enable-opengl \
  --disable-rpath \
   FREETYPE_CFLAGS="-I%{_includedir}/freetype2" \
   CFLAGS="%{optflags}" \
   LTFLAGS="--tag=CC" \
   CXXFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS"

%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall DESTDIR=%{buildroot}

# remove conflict with ffmpeg
rm -f %{buildroot}%{_bindir}/mpeg3cat \
      %{buildroot}%{_bindir}/mpeg3dump \
      %{buildroot}%{_bindir}/mpeg3toc

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/cinelerra
%{_bindir}/mplexlo
%dir %{_libdir}/cinelerra
%{_libdir}/cinelerra/*.so
%{_libdir}/cinelerra/*.la
%{_libdir}/cinelerra/shapewipe/*.png
#%{_libdir}/vhook/*.so
%{_libdir}/libguicast.so.*
%{_libdir}/libmpeg3hv*.so.*
%{_libdir}/libquicktimehv*.so.*
%{_datadir}/applications/cinelerra.desktop
%{_datadir}/pixmaps/cinelerra.xpm
%{_datadir}/locale/*
%doc AUTHORS COPYING ChangeLog LICENSE NEWS README.BUILD TODO

%files devel
%defattr(-,root,root)
%dir %{_includedir}/mpeg3
%{_includedir}/mpeg3/*.h
%dir %{_includedir}/quicktime
%{_includedir}/quicktime/*.h
%{_libdir}/libguicast.la
%{_libdir}/libguicast.so
%{_libdir}/libmpeg3hv.la
%{_libdir}/libmpeg3hv.so
%{_libdir}/libquicktimehv.la
%{_libdir}/libquicktimehv.so

%changelog
* Thu May 10 2012 Silvan Calarco <silvan.calarco@...> 2.2.git20120403-1mamba2
- mamba2 milestone rebuild

* Tue Apr 03 2012 Silvan Calarco <silvan.calarco@...> 2.2.git20120403-1mamba
- update to 2.2.git20120403

* Sat Mar 19 2011 Silvan Calarco <silvan.calarco@...> 2.1.5_20101122-3mamba
- obsolete cinelerra-devel

* Fri Mar 18 2011 Silvan Calarco <silvan.calarco@...> 2.1.5_20101122-2mamba
- fixed to build with external ffmpeg and freetype
- require mpeg3-tools and don't provide intenal conflicting mpeg3* executables
- specfile cleanups

* Sun Mar 13 2011 Tiziana Ferro <tiziana.ferro@...> 2.1.5_20101122-1mamba
- package created by autospec