]>
Commit | Line | Data |
---|---|---|
90df7d5d | 1 | # |
2 | # TODO: | |
3 | # - build guicast as separate, shared library to use in xmovie, | |
4 | # mix2005 and cinelerra | |
5 | # - get rid of bootstrap stuff: | |
6 | # https://init.linpro.no/pipermail/skolelinux.no/cinelerra/2004-April/001413.html | |
7 | # | |
a601b4a3 | 8 | Summary: Cinelerra - capturing, editing and production of audio/video material |
70bef79d | 9 | Summary(pl.UTF-8): Cinelerra - nagrywanie, obróbka i produkcja materiału audio/video |
584c94b3 | 10 | Name: cinelerra |
f4712342 | 11 | Version: 4 |
92ff1529 | 12 | Release: 3 |
f4712342 | 13 | License: GPL v2+ |
584c94b3 JB |
14 | Group: X11/Applications |
15 | Source0: http://dl.sourceforge.net/heroines/%{name}-%{version}-src.tar.bz2 | |
ba16c461 | 16 | # Source0-md5: 0faf7158859646c5ea6181283594b19a |
6c08bb5e | 17 | Patch0: %{name}-system-libs.patch |
eba9969c JB |
18 | Patch1: %{name}-strip.patch |
19 | Patch2: %{name}-fontsdir.patch | |
20 | Patch3: %{name}-locale_h.patch | |
21 | Patch4: %{name}-guicast_bootstrap.patch | |
d4f97576 | 22 | Patch5: %{name}-fix.patch |
f4712342 | 23 | Patch6: %{name}-plugindir.patch |
92ff1529 | 24 | Patch7: %{name}-ffmpeg.patch |
25 | Patch8: %{name}-fade_error.patch | |
ba16c461 | 26 | URL: http://www.heroinewarrior.com/cinelerra.php |
f4712342 JB |
27 | BuildRequires: OpenEXR-devel >= 1.6.1 |
28 | BuildRequires: OpenGL-devel >= 2.0 | |
eba9969c | 29 | BuildRequires: alsa-lib-devel >= 1.0.8 |
584c94b3 | 30 | BuildRequires: esound-devel |
f4712342 | 31 | BuildRequires: flac-devel >= 1.1.4 |
3e6a57e8 | 32 | BuildRequires: freetype-devel >= 2.1.4 |
a601b4a3 | 33 | BuildRequires: lame-libs-devel >= 3.93.1 |
eba9969c JB |
34 | BuildRequires: libavc1394-devel >= 0.5.1 |
35 | BuildRequires: libiec61883-devel >= 1.0.0 | |
f4712342 | 36 | BuildRequires: libmpeg3-devel >= 1.8 |
eba9969c JB |
37 | BuildRequires: libraw1394-devel >= 1.2.0 |
38 | BuildRequires: libsndfile-devel >= 1.0.11 | |
6864ee86 | 39 | BuildRequires: libstdc++-devel >= 5:3.2.2 |
eba9969c | 40 | BuildRequires: libtheora-devel >= 1.0-0.alpha4 |
6864ee86 | 41 | BuildRequires: libtiff-devel >= 3.5.7 |
3e6a57e8 | 42 | BuildRequires: libuuid-devel |
3b1ebd11 JB |
43 | %ifarch %{ix86} |
44 | BuildRequires: nasm | |
45 | %endif | |
f4712342 | 46 | BuildRequires: quicktime4linux-devel >= 2.3 |
05a1efcf JB |
47 | BuildRequires: xorg-lib-libX11-devel |
48 | BuildRequires: xorg-lib-libXext-devel | |
49 | BuildRequires: xorg-lib-libXv-devel | |
50 | BuildRequires: xorg-lib-libXxf86vm-devel | |
f4712342 | 51 | Requires: OpenEXR >= 1.6.1 |
eba9969c | 52 | Requires: alsa-lib >= 1.0.8 |
3b1ebd11 | 53 | Requires: freetype >= 2.1.4 |
eba9969c JB |
54 | Requires: libavc1394 >= 0.5.1 |
55 | Requires: libiec61883 >= 1.0.0 | |
f4712342 | 56 | Requires: libmpeg3 >= 1.8 |
eba9969c JB |
57 | Requires: libraw1394 >= 1.2.0 |
58 | Requires: libsndfile >= 1.0.11 | |
59 | Requires: libtheora >= 1.0-0.alpha4 | |
f4712342 | 60 | Requires: quicktime4linux >= 2.3 |
f295b5f3 | 61 | Obsoletes: bcast |
584c94b3 JB |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
63 | ||
1fb4583f | 64 | %define _noautostrip .*/microtheme.plugin |
a601b4a3 | 65 | |
584c94b3 | 66 | %description |
a601b4a3 JB |
67 | There are two types of moviegoers: producers who create new content, |
68 | going back over their content at future points for further refinement, | |
69 | and consumers who want to acquire the content and watch it. Cinelerra | |
70 | is not intended for consumers. Cinelerra has many features for | |
71 | uncompressed content, high resolution processing, and compositing, | |
72 | with very few shortcuts. Producers need these features because of the | |
73 | need to retouch many generations of footage with alterations to the | |
74 | format, which makes Cinelerra very complex. | |
75 | ||
76 | Cinelerra was meant to be a Broadcast 2000 replacement. | |
584c94b3 | 77 | |
418c6d3a JR |
78 | %description -l pl.UTF-8 |
79 | Są dwa rodzaje użytkowników zajmujących się filmami: producenci | |
80 | tworzący nowe filmy, wracający do nich w przyszłości w celu dalszego | |
81 | wygładzenia, oraz konsumenci, którzy chcą tylko zdobyć film i go | |
82 | obejrzeć. Cinelerra nie jest dla konsumentów. Program ma wiele | |
83 | możliwości do edycji nieskompresowanej zawartości, obróbki w wysokiej | |
84 | rozdzielczości oraz montażu, z bardzo małą liczbą skrótów. Producenci | |
541dda61 ER |
85 | potrzebują tych możliwości ze względu na konieczność retuszowania oraz |
86 | modyfikacji formatu, co czyni program bardzo złożonym. | |
a601b4a3 | 87 | |
418c6d3a | 88 | Cinelerra była tworzona z myślą o zastąpieniu programu Broadcast 2000. |
584c94b3 JB |
89 | |
90 | %prep | |
91 | %setup -q | |
92 | %patch0 -p1 | |
93 | %patch1 -p1 | |
94 | %patch2 -p1 | |
95 | %patch3 -p1 | |
3e6a57e8 | 96 | %patch4 -p1 |
d4f97576 | 97 | %patch5 -p1 |
f4712342 | 98 | %patch6 -p1 |
92ff1529 | 99 | %patch7 -p1 |
100 | %patch8 -p1 | |
584c94b3 | 101 | |
05a1efcf | 102 | # assume we have <linux/videodev2.h> and <linux/dvb/*> (present in llh) |
05a1efcf JB |
103 | cat > hvirtual_config.h <<EOF |
104 | #define HAVE_VIDEO4LINUX2 | |
105 | #define HAVE_DVB | |
f4712342 | 106 | #define HAVE_GL |
05a1efcf JB |
107 | #define PACKAGE_STRING "cinelerra" |
108 | EOF | |
6864ee86 | 109 | |
f4712342 JB |
110 | %{__rm} -r libmpeg3 quicktime \ |
111 | thirdparty/{audiofile,esound,fftw-*,flac-*,freetype-*,ilmbase-*,libavc1394-*,libiec61883-*,libraw1394-*,libsndfile-*,libtheora-*,mjpegtools-*,openexr-*,tiff-*,uuid} | |
1fb4583f | 112 | |
584c94b3 | 113 | %build |
f4712342 JB |
114 | export CFLAGS="%{rpmcflags}" |
115 | %{__make} -f build/Makefile.toolame \ | |
116 | GCC="%{__cc}" | |
117 | %{__make} -C mpeg2enc \ | |
118 | CC="%{__cc}" | |
119 | %{__make} -C mplexlo \ | |
120 | CC="%{__cc}" | |
121 | %{__make} -C guicast \ | |
122 | GCC="%{__cc}" \ | |
123 | CC="%{__cxx}" | |
3b1ebd11 JB |
124 | # cinelerra, defaulttheme and microtheme are stripped before running "bootstrap" |
125 | %{__make} -C cinelerra \ | |
f4712342 JB |
126 | GCC="%{__cc}" \ |
127 | CC="%{__cxx}" \ | |
128 | LINKER='%{__cxx} -o $(OUTPUT)' \ | |
3b1ebd11 | 129 | STRIP="%{?debug:true}%{!?debug:strip -R.note -R.comment}" |
a601b4a3 | 130 | %{__make} -C plugins \ |
f4712342 | 131 | CC="%{__cxx}" \ |
a601b4a3 | 132 | STRIP="%{?debug:true}%{!?debug:strip -R.note -R.comment}" |
584c94b3 JB |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
ccb0dca0 | 136 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cinelerra} |
584c94b3 | 137 | |
ccb0dca0 JB |
138 | install cinelerra/*/cinelerra $RPM_BUILD_ROOT%{_bindir} |
139 | install plugins/`uname -m`/*.plugin $RPM_BUILD_ROOT%{_libdir}/cinelerra | |
584c94b3 JB |
140 | |
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %files | |
145 | %defattr(644,root,root,755) | |
3b1ebd11 | 146 | %doc doc/{*.png,*.html,press} cinelerra/{CHANGELOG*,TODO} |
584c94b3 | 147 | %attr(755,root,root) %{_bindir}/* |
ccb0dca0 | 148 | %attr(755,root,root) %{_libdir}/cinelerra |