]> git.pld-linux.org Git - packages/cinelerra-cv.git/blame - cinelerra-cv.spec
- fix building with -Wformat-security
[packages/cinelerra-cv.git] / cinelerra-cv.spec
CommitLineData
4b732681
AM
1# TODO:
2# - external libraries packages (is there any sense in that?)
3#
5be8da7e 4%define snap 20121104
45876cb3 5%define rel 2
4b732681 6Summary: Cinelerra - capturing, editing and production of audio/video material
51feeac3 7Summary(pl.UTF-8): Cinelerra - nagrywanie, obróbka i produkcja materiału audio/video
4b732681 8Name: cinelerra-cv
5be8da7e 9Version: 2.2
eeabf812 10Release: 0.%{snap}.%{rel}
4b732681
AM
11License: GPL
12Group: X11/Applications
2982b504
AM
13# git clone git://git.cinelerra.org/j6t/cinelerra.git cinelerra-cv
14Source0: %{name}-%{snap}.tar.bz2
5be8da7e 15# Source0-md5: 06b92b01fa6ba32ca4622922f2cbaa68
4b732681 16Patch0: %{name}-build.patch
b1359752
AM
17Patch1: %{name}-desktop.patch
18# http://bugs.cinelerra.org/raw-attachment/ticket/949/remove-support-v4l-buzz-k2-6-38.diff
19Patch2: remove-support-v4l-buzz-k2-6-38.diff
addf3906 20Patch3: %{name}-ffmpeg.patch
45876cb3 21Patch4: %{name}-format-security.patch
9990e924 22URL: http://cinelerra.org/
4b732681 23BuildRequires: OpenEXR-devel >= 1.2.1
64ff8e30 24BuildRequires: OpenGL-GLU-devel
6e08b1f8
AM
25BuildRequires: OpenGL-devel
26BuildRequires: a52dec-libs-devel
4b732681
AM
27BuildRequires: alsa-lib-devel >= 1.0.8
28BuildRequires: autoconf
29BuildRequires: automake
d3133990 30BuildRequires: ffmpeg-devel >= 0.7.1
6e08b1f8 31BuildRequires: fftw3-devel
4b732681 32BuildRequires: freetype-devel >= 2.1.4
62886f9a 33BuildRequires: gettext-devel
55df2963 34BuildRequires: lame-libs-devel >= 3.93.1
4b732681 35BuildRequires: libavc1394-devel >= 0.5.1
6e08b1f8 36BuildRequires: libdv-devel
4b732681
AM
37BuildRequires: libiec61883-devel >= 1.0.0
38#BuildRequires: libmpeg3-devel >= 1.7
97a1cfc3 39BuildRequires: libpng-devel >= 2:1.4.0
4b732681
AM
40BuildRequires: libraw1394-devel >= 1.2.0
41BuildRequires: libsndfile-devel >= 1.0.11
42BuildRequires: libstdc++-devel >= 5:3.2.2
43BuildRequires: libtheora-devel >= 1.0-0.alpha4
44BuildRequires: libtiff-devel >= 3.5.7
45BuildRequires: libtool
46BuildRequires: libuuid-devel
6e08b1f8 47BuildRequires: mjpegtools-devel
64ff8e30 48BuildRequires: pkgconfig
49%ifarch %{ix86} %{x8664}
4b732681
AM
50BuildRequires: nasm
51%endif
52#BuildRequires: quicktime4linux-devel >= 2.2
637bd55d 53BuildRequires: sed >= 4.0
4b732681
AM
54BuildRequires: xorg-lib-libX11-devel
55BuildRequires: xorg-lib-libXext-devel
56BuildRequires: xorg-lib-libXv-devel
57BuildRequires: xorg-lib-libXxf86vm-devel
77784ffb 58Requires: OpenEXR >= 1.2.1
4b732681
AM
59Requires: alsa-lib >= 1.0.8
60Requires: freetype >= 2.1.4
61Requires: libavc1394 >= 0.5.1
62Requires: libiec61883 >= 1.0.0
63#Requires: libmpeg3 >= 1.7
64Requires: libraw1394 >= 1.2.0
65Requires: libsndfile >= 1.0.11
66Requires: libtheora >= 1.0-0.alpha4
67#Requires: quicktime4linux >= 2.2
68Obsoletes: bcast
69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71%define _noautostrip .*/microtheme.plugin
72
73%description
74There are two types of moviegoers: producers who create new content,
75going back over their content at future points for further refinement,
76and consumers who want to acquire the content and watch it. Cinelerra
77is not intended for consumers. Cinelerra has many features for
78uncompressed content, high resolution processing, and compositing,
79with very few shortcuts. Producers need these features because of the
80need to retouch many generations of footage with alterations to the
81format, which makes Cinelerra very complex.
82
83Cinelerra was meant to be a Broadcast 2000 replacement.
84
85This is Community Version.
86
c2f84247
JR
87%description -l pl.UTF-8
88Są dwa rodzaje użytkowników zajmujących się filmami: producenci
89tworzący nowe filmy, wracający do nich w przyszłości w celu dalszego
90wygładzenia, oraz konsumenci, którzy chcą tylko zdobyć film i go
91obejrzeć. Cinelerra nie jest dla konsumentów. Program ma wiele
92możliwości do edycji nieskompresowanej zawartości, obróbki w wysokiej
93rozdzielczości oraz montażu, z bardzo małą liczbą skrótów. Producenci
94potrzebują tych możliwości ze względu na konieczność retuszowania oraz
95modyfikacji formatu, co czyni program bardzo złożonym.
4b732681 96
c2f84247 97Cinelerra była tworzona z myślą o zastąpieniu programu Broadcast 2000.
4b732681 98
a1110f06 99Wersja społecznościowa.
4b732681
AM
100
101%prep
2982b504 102%setup -q -n %{name}
4b732681 103%patch0 -p1
6d238463 104%patch1 -p1
5be8da7e 105#%patch2 -p1
addf3906 106%patch3 -p1
45876cb3 107%patch4 -p1
4b732681 108
1ec3e062 109find -name Makefile.am | xargs %{__sed} -i -e 's#^LIBTOOL =.*##g'
b80afb9a 110
4b732681 111%build
62886f9a 112rm -f m4/*.m4 *.m4
4b732681 113touch config.rpath
62886f9a 114%{__gettextize}
4b732681 115%{__libtoolize}
62886f9a 116%{__aclocal} -I m4
4b732681
AM
117%{__autoheader}
118%{__automake}
119%{__autoconf}
120
121%configure \
2982b504 122 CPPFLAGS="%{rpmcppflags} -I/usr/include/freetype2" \
b1359752 123 CXXFLAGS="%{rpmcxxflags} -D__STDC_CONSTANT_MACROS=1" \
4b732681
AM
124%ifarch ppc
125 --enable-altivec \
126%endif
127%ifarch %{ix86} %{x8664}
128 --enable-mmx \
129 --enable-3dnow \
130%endif
a1bcd408 131 --disable-esd \
4b732681
AM
132 --enable-freetype2 \
133 --with-external-ffmpeg \
134 --with-alsa-prefix=%{_prefix} \
135 --with-fontsdir=%{_fontsdir} \
136 --with-plugindir=%{_libdir}/cinelerra
137
138%{__make}
139
140%install
141rm -rf $RPM_BUILD_ROOT
142
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT
145
a0e939be
AM
146install -d $RPM_BUILD_ROOT%{_libdir}/cinelerra/fonts
147
4b732681
AM
148%find_lang cinelerra
149
150%clean
151rm -rf $RPM_BUILD_ROOT
152
153%post -p /sbin/ldconfig
154%postun -p /sbin/ldconfig
155
156%files -f cinelerra.lang
157%defattr(644,root,root,755)
158%doc doc/* README* TODO
159%attr(755,root,root) %{_bindir}/*
160%dir %{_libdir}/cinelerra
161%attr(755,root,root) %{_libdir}/cinelerra/*.so
162%{_libdir}/cinelerra/*.la
163%{_libdir}/cinelerra/shapewipe
a0e939be 164%{_libdir}/cinelerra/fonts
4b732681
AM
165%attr(755,root,root) %{_libdir}/lib*.so.*
166%{_desktopdir}/*.desktop
167%{_pixmapsdir}/*.*
This page took 0.100395 seconds and 4 git commands to generate.