]>
Commit | Line | Data |
---|---|---|
b7677e2a | 1 | # TODO |
e7a0ae03 SS |
2 | # - weed plugins don't work - segfault in weed_plugin_info_init |
3 | # (looks like #1743701 #1645153) | |
af41a1ea | 4 | # - check -plugins-* descriptions |
6ba5b20d SS |
5 | # - build with OSC support (http://www.cnmat.berkeley.edu/OpenSoundControl/index.html) |
6 | # - build with frei0r support (www.piksel.org/frei0r) | |
c1b64ff9 SS |
7 | # - create spec for http://www.flyn.org/projects/qtutils/index.html and package qtutils_encoder |
8 | # - create spec for http://sswf.sourceforge.net and package sswf_encoder | |
c3b90a5d SS |
9 | # - test RFXscrip plugins |
10 | # - weed plugins are searched in %{_datadir}/%{%name}/... | |
b7677e2a | 11 | |
199944e5 SS |
12 | # Conditional build: |
13 | %bcond_without sdl # build without SDL plugin | |
14 | %bcond_without mjpeg # build without mjpegtools plugin | |
15 | %bcond_without libvisual # disable libvisual support | |
16 | %bcond_without jack # without JACKD support | |
17 | %bcond_without dvgrab # build without dv grabbing support | |
18 | ||
9b44bde4 | 19 | %define _sname lives |
d6dcd492 | 20 | |
4a4619c2 | 21 | Summary: LiVES - the Linux Video Editing System |
c351d0e3 | 22 | Summary(pl.UTF-8): LiVES - Linuksowy System Edycji Video |
d6dcd492 | 23 | Name: LiVES |
3c246820 | 24 | Version: 0.9.8.6 |
c1b64ff9 | 25 | Release: 0.4 |
87c1e096 | 26 | License: GPL v3 |
d6dcd492 | 27 | Group: X11/Applications/Multimedia |
849a345a | 28 | Source0: http://www.xs4all.nl/%7Esalsaman/lives/current/%{name}-%{version}.tar.bz2 |
3c246820 | 29 | # Source0-md5: c73aed9b2da4fc74d51f9e92fae7439d |
d6dcd492 | 30 | Source1: %{name}.desktop |
3d5df68d | 31 | Patch0: %{name}-FHS.patch |
26111481 | 32 | Patch1: %{name}-automake.patch |
199944e5 | 33 | Patch2: %{name}-without_sdl.patch |
c1b64ff9 | 34 | Patch3: %{name}-defined_python_plugins_dir.patch |
367a2a7a | 35 | URL: http://www.xs4all.nl/~salsaman/lives/ |
199944e5 | 36 | %{?with_sdl:BuildRequires: SDL-devel} |
4988e69e | 37 | BuildRequires: autoconf >= 2.57 |
e6456b8a | 38 | BuildRequires: automake >= 1:1.7 |
f3036fec JB |
39 | BuildRequires: gettext-devel >= 0.14.1 |
40 | BuildRequires: gtk+2-devel >= 2.0.0 | |
199944e5 SS |
41 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
42 | %{?with_dvgrab:BuildRequires: libavc1394-devel} | |
43 | BuildRequires: liboil-devel | |
44 | %{?with_dvgrab:BuildRequires: libraw1394-devel} | |
f3036fec | 45 | BuildRequires: libtheora-devel |
239529e3 | 46 | BuildRequires: libtool |
199944e5 SS |
47 | %{?with_libvisual:BuildRequires: libvisual-devel} |
48 | %{?with_mjpeg:BuildRequires: mjpegtools-devel} | |
bf72b26e | 49 | BuildRequires: pkgconfig |
e9efba0b | 50 | BuildRequires: sed >= 4.0 |
0149db1a | 51 | BuildRequires: xorg-util-imake |
4988e69e | 52 | Requires: ogmtools |
b515bd9c | 53 | Requires: python >= 1:2.3 |
af41a1ea | 54 | # required either mplayer or sox |
4988e69e | 55 | Requires: sox |
af41a1ea | 56 | Suggests: ImageMagick >= 5 |
39fef751 | 57 | Suggests: cdda2wav |
6ba5b20d | 58 | Suggests: dbgrab |
af41a1ea SS |
59 | Suggests: mplayer >= 0.90rc1 |
60 | Suggests: xmms | |
39fef751 | 61 | Suggests: xorg-app-xset |
af41a1ea | 62 | Suggests: %{name}-plugins-encoders = %{version}-%{release} |
39fef751 | 63 | Suggests: %{name}-plugins-rendered = %{version}-%{release} |
d6dcd492 JW |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
c1b64ff9 | 66 | %define python_plugins_dir %{_datadir}/%{_sname}/plugins/python/ |
4a4619c2 | 67 | %define _themesdir %{_datadir}/%{_sname}/themes |
e9efba0b JB |
68 | # shared objects without .so (e.g. SDL), which we don't want to provide |
69 | %define _noautoprovfiles ^%{_datadir}/%{_sname}/.* | |
4a4619c2 | 70 | |
d6dcd492 | 71 | %description |
367a2a7a AG |
72 | LiVES began as the Linux Video Editing System. Since it now runs on |
73 | more operating systems, LiVES is a Video Editing System. It is | |
74 | designed to be simple to use, yet powerful. It is small in size, yet | |
75 | it has many advanced features. | |
d6dcd492 | 76 | |
fd1e461e JR |
77 | %description -l pl.UTF-8 |
78 | LiVES zaczynał jako Linuksowy System Edycji Video. Obecnie można | |
79 | również uruchomić go na większej liczbie systemów operacyjnych. | |
e6456b8a SS |
80 | Zaprojektowany został tak, by być zarówno prostym w użyciu jak i mimo |
81 | niewielkiego rozmiaru posiadać zaawansowane funkcje. | |
d6dcd492 JW |
82 | |
83 | %package plugins | |
6ba5b20d SS |
84 | Summary: Plugins for LiVES (metapackage) |
85 | Summary(pl.UTF-8): Wtyczki dla LiVES (metapakiet) | |
367a2a7a | 86 | Group: X11/Applications/Multimedia |
4a4619c2 | 87 | Requires: %{name} = %{version}-%{release} |
c1b64ff9 SS |
88 | Requires: %{name}-plugins-encoders-perl = %{version}-%{release} |
89 | Requires: %{name}-plugins-encoders-python = %{version}-%{release} | |
af41a1ea SS |
90 | Requires: %{name}-plugins-playback = %{version}-%{release} |
91 | Requires: %{name}-plugins-rendered = %{version}-%{release} | |
92 | Requires: %{name}-plugins-RFXscripts = %{version}-%{release} | |
93 | Requires: %{name}-plugins-weed = %{version}-%{release} | |
d6dcd492 JW |
94 | |
95 | %description plugins | |
6ba5b20d | 96 | Plugins for LiVES (metapackage). |
d6dcd492 | 97 | |
fd1e461e | 98 | %description plugins -l pl.UTF-8 |
6ba5b20d | 99 | Wtyczki (plugins) dla LiVES (metapakiet). |
d6dcd492 | 100 | |
c1b64ff9 SS |
101 | %package plugins-encoders-perl |
102 | Summary: Perl encoders plugins for LiVES | |
103 | Summary(pl.UTF-8): Perlowe wtyczki kodujące dla LiVES | |
104 | Group: X11/Applications/Multimedia | |
105 | Requires: %{name} = %{version}-%{release} | |
106 | Requires: ImageMagick > 5 | |
107 | Requires: dv | |
108 | Requires: ffmpeg | |
109 | Requires: ghostscript | |
110 | Requires: mjpegtools | |
111 | Requires: perl-base | |
112 | Requires: transcode | |
113 | Requires: vorbis-tools | |
114 | ||
115 | %description plugins-encoders-perl | |
116 | Perl encoders plugins for LiVES. | |
117 | ||
118 | %description plugins-encoders-perl -l pl.UTF-8 | |
119 | Perlowe wtyczki (plugins) kodujące dla LiVES. | |
120 | ||
121 | %package plugins-encoders-python | |
122 | Summary: Pythonowe encoders plugins for LiVES | |
123 | Summary(pl.UTF-8): Pythonowe wtyczki kodujące dla LiVES | |
af41a1ea SS |
124 | Group: X11/Applications/Multimedia |
125 | Requires: %{name} = %{version}-%{release} | |
c1b64ff9 | 126 | Requires: python |
af41a1ea | 127 | |
c1b64ff9 SS |
128 | %description plugins-encoders-python |
129 | Python encoders plugins for LiVES. | |
af41a1ea | 130 | |
c1b64ff9 SS |
131 | %description plugins-encoders-python -l pl.UTF-8 |
132 | Pythonowe wtyczki (plugins) kodujące dla LiVES. | |
af41a1ea SS |
133 | |
134 | %package plugins-playback | |
135 | Summary: Playback plugins for LiVES | |
136 | Summary(pl.UTF-8): Wtyczki odtwarzające dla LiVES | |
137 | Group: X11/Applications/Multimedia | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | ||
140 | %description plugins-playback | |
141 | Playback plugins for LiVES. | |
142 | ||
143 | %description plugins-playback -l pl.UTF-8 | |
144 | Wtyczki (plugins) odtwarzające dla LiVES. | |
145 | ||
146 | %package plugins-rendered | |
147 | Summary: Rendered plugins for LiVES | |
148 | Summary(pl.UTF-8): Wtyczki rendered dla LiVES | |
149 | Group: X11/Applications/Multimedia | |
150 | Requires: %{name} = %{version}-%{release} | |
c1b64ff9 | 151 | Requires: ImageMagick >= 5 |
af41a1ea SS |
152 | |
153 | %description plugins-rendered | |
154 | Rendered plugins for LiVES. | |
155 | ||
156 | %description plugins-rendered -l pl.UTF-8 | |
157 | Wtyczki (plugins) rendered dla LiVES. | |
158 | ||
159 | %package plugins-RFXscripts | |
160 | Summary: RFXscripts plugins for LiVES | |
161 | Summary(pl.UTF-8): Wtyczki RFXscripts dla LiVES | |
162 | Group: X11/Applications/Multimedia | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | ||
165 | %description plugins-RFXscripts | |
166 | RFXscripts plugins for LiVES. | |
167 | ||
168 | %description plugins-RFXscripts -l pl.UTF-8 | |
169 | Wtyczki (plugins) RFXscripts dla LiVES. | |
170 | ||
171 | %package plugins-weed | |
172 | Summary: Weed plugins for LiVES | |
173 | Summary(pl.UTF-8): Wtyczki weed dla LiVES | |
174 | Group: X11/Applications/Multimedia | |
175 | Requires: %{name} = %{version}-%{release} | |
176 | ||
177 | %description plugins-weed | |
178 | Weed plugins for LiVES. | |
179 | ||
180 | %description plugins-weed -l pl.UTF-8 | |
181 | Wtyczki (plugins) weed dla LiVES. | |
182 | ||
d6dcd492 | 183 | %package themes |
367a2a7a | 184 | Summary: Themes for LiVES |
c351d0e3 | 185 | Summary(pl.UTF-8): Motywy dla LiVES |
367a2a7a | 186 | Group: Themes/GTK+ |
4a4619c2 | 187 | Requires: %{name} = %{version}-%{release} |
d6dcd492 | 188 | |
367a2a7a | 189 | %description themes |
073ebf76 | 190 | Themes for LiVES. |
d6dcd492 | 191 | |
fd1e461e | 192 | %description themes -l pl.UTF-8 |
073ebf76 | 193 | Motywy dla LiVES. |
d6dcd492 | 194 | |
d6dcd492 | 195 | %prep |
849a345a | 196 | %setup -qn %{_sname}-%{version} |
d6dcd492 | 197 | %patch0 -p1 |
26111481 | 198 | %patch1 -p1 |
199944e5 | 199 | %{!?with_sdl:%patch2 -p1} |
c1b64ff9 | 200 | %patch3 -p1 |
d6dcd492 | 201 | |
c1b64ff9 SS |
202 | sed -i -e "#^PYTHON_PLUGINS_DIR#s#^.*#PYTHON_PLUGINS_DIR = %{python_plugins_dir}/#" \ |
203 | lives-plugins/plugins/encoders/multi_encoder | |
e9efba0b | 204 | |
d6dcd492 | 205 | %build |
bb3cb93e KK |
206 | %{__aclocal} -I m4 |
207 | %{__autoconf} | |
208 | %{__automake} | |
e9efba0b | 209 | %configure \ |
199944e5 | 210 | %{!?with_dvgrab:--disable-dvgrab} \ |
c1b64ff9 | 211 | %{!?with_sdl:--disable-sdl} |
36301c5d | 212 | %{__make} \ |
213 | CFLAGS="%{rpmcflags} -fPIC" | |
d6dcd492 JW |
214 | |
215 | %install | |
216 | rm -rf $RPM_BUILD_ROOT | |
bb3cb93e | 217 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
7196a208 | 218 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
bb3cb93e KK |
219 | install -d $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered |
220 | for i in lives-plugins/plugins/effects/RFXscripts/*.script ; do | |
221 | ./build-lives-rfx-plugin $i $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered | |
222 | done | |
d6dcd492 JW |
223 | |
224 | %{__make} install \ | |
c1b64ff9 SS |
225 | marcosencodersdir=%{python_plugins_dir} \ |
226 | DESTDIR=$RPM_BUILD_ROOT | |
d6dcd492 | 227 | |
9b44bde4 | 228 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
849a345a | 229 | mv $RPM_BUILD_ROOT%{_docdir}/%{_sname}-%{version} \ |
535cfb99 | 230 | $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
d6dcd492 | 231 | |
14ab6417 | 232 | mv -f $RPM_BUILD_ROOT%{_localedir}/de{_DE,} |
0cfe8d85 | 233 | mv -f $RPM_BUILD_ROOT%{_localedir}/nl{_NL,} |
b2d7a9a9 | 234 | |
535cfb99 | 235 | %find_lang %{_sname} |
bbbf5774 | 236 | |
d6dcd492 JW |
237 | %clean |
238 | rm -rf $RPM_BUILD_ROOT | |
239 | ||
535cfb99 | 240 | %files -f %{_sname}.lang |
d6dcd492 | 241 | %defattr(644,root,root,755) |
27b03b78 | 242 | %doc AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS RFX OMC |
87c1e096 | 243 | %attr(755,root,root) %{_bindir}/autolives.pl |
87c1e096 SS |
244 | %attr(755,root,root) %{_bindir}/build-lives-rfx-plugin |
245 | %attr(755,root,root) %{_bindir}/build-lives-rfx-plugin-multi | |
af41a1ea | 246 | %attr(755,root,root) %{_bindir}/lives |
87c1e096 SS |
247 | %attr(755,root,root) %{_bindir}/lives-exe |
248 | %attr(755,root,root) %{_bindir}/midistart | |
249 | %attr(755,root,root) %{_bindir}/midistop | |
87c1e096 SS |
250 | %attr(755,root,root) %{_bindir}/sendOSC |
251 | %attr(755,root,root) %{_bindir}/smogrify | |
4a4619c2 | 252 | %dir %{_datadir}/%{_sname} |
af41a1ea SS |
253 | %dir %{_datadir}/%{_sname}/plugins |
254 | %dir %{_datadir}/%{_sname}/plugins/effects | |
c1b64ff9 SS |
255 | %dir %{_datadir}/%{_sname}/plugins/encoders |
256 | %dir %{_libdir}/%{_sname} | |
257 | %dir %{_libdir}/%{_sname}/plugins | |
258 | %dir %{_libdir}/%{_sname}/plugins/effects | |
d6dcd492 | 259 | %{_datadir}/%{_sname}/icons |
e6456b8a | 260 | %{_datadir}/%{_sname}/default.keymap |
d6dcd492 | 261 | %{_desktopdir}/%{name}.desktop |
7196a208 | 262 | %{_pixmapsdir}/%{_sname}.xpm |
4a4619c2 | 263 | %dir %{_themesdir} |
d6dcd492 JW |
264 | %{_themesdir}/default |
265 | ||
266 | %files themes | |
267 | %defattr(644,root,root,755) | |
268 | %{_themesdir}/camera | |
269 | %{_themesdir}/cutting_room | |
367a2a7a | 270 | %{_themesdir}/greenish |
d6dcd492 JW |
271 | %{_themesdir}/pinks |
272 | %{_themesdir}/sunburst | |
535cfb99 | 273 | %{_themesdir}/editor |
d6dcd492 | 274 | |
3a923ddc SS |
275 | %files plugins |
276 | %defattr(644,root,root,755) | |
277 | ||
c1b64ff9 | 278 | %files plugins-encoders-perl |
af41a1ea | 279 | %defattr(644,root,root,755) |
c1b64ff9 SS |
280 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/encodedv_encoder |
281 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/ffmpeg_encoder | |
282 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/mencoder_encoder | |
283 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/mjpegtools_encoder | |
284 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/pdf_encoder | |
285 | #%attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/qtutils_encoder | |
286 | #%attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/sswf_encoder | |
287 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/transcode_encoder | |
288 | ||
289 | ||
290 | %files plugins-encoders-python | |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/multi_encoder | |
293 | %attr(755,root,root) %{python_plugins_dir} | |
af41a1ea SS |
294 | |
295 | %files plugins-playback | |
296 | %defattr(644,root,root,755) | |
c1b64ff9 SS |
297 | %dir %{_libdir}/%{_sname}/plugins/playback |
298 | %dir %{_libdir}/%{_sname}/plugins/playback/video | |
299 | %{?with_sdl:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/playback/video/SDLp} | |
300 | %{?with_mjpeg:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/playback/video/yuv4mpeg_stream} | |
af41a1ea SS |
301 | |
302 | %files plugins-rendered | |
303 | %defattr(644,root,root,755) | |
304 | %dir %{_datadir}/%{_sname}/plugins/effects/rendered | |
305 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/effects/rendered/* | |
306 | ||
307 | %files plugins-RFXscripts | |
d6dcd492 | 308 | %defattr(644,root,root,755) |
31d9a446 SS |
309 | %dir %{_datadir}/%{_sname}/plugins/effects/RFXscripts |
310 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/effects/RFXscripts/*.script | |
af41a1ea SS |
311 | |
312 | %files plugins-weed | |
c1b64ff9 SS |
313 | %dir %{_libdir}/%{_sname}/plugins/effects/realtime |
314 | %dir %{_libdir}/%{_sname}/plugins/effects/realtime/weed | |
315 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/alien_overlay.wo | |
316 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/audio_volume.wo | |
317 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/blurzoom.wo | |
318 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/bump2d.wo | |
319 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/ccorrect.wo | |
320 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/colorkey.wo | |
321 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/compositor.wo | |
322 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/deinterlace.wo | |
323 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/edge.wo | |
324 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/fg_bg_removal.wo | |
325 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/fireTV.wo | |
326 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/gdk_fast_resize.wo | |
327 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/haip.wo | |
328 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/layout_blends.wo | |
329 | %{?with_libvisual:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/libvis.wo} | |
330 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/lifeTV.wo | |
331 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/mirrors.wo | |
332 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/multi_blends.wo | |
333 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/negate.wo | |
334 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/noise.wo | |
335 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/onedTV.wo | |
336 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/plasma.wo | |
337 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/posterise.wo | |
338 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/rippleTV.wo | |
339 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/rotozoom.wo | |
340 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/simple_blend.wo | |
341 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/slide_over.wo | |
342 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/targeted_zoom.wo | |
343 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/textfun.wo | |
344 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/vertigo.wo | |
345 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/videowall.wo | |
346 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/warpTV.wo | |
347 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/xeffect.wo |