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