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