]>
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 |
853f1f7c RT |
24 | Version: 0.9.8.7 |
25 | Release: 0.1 | |
87c1e096 | 26 | License: GPL v3 |
d6dcd492 | 27 | Group: X11/Applications/Multimedia |
9c3f26d5 | 28 | Source0: http://salsaman.home.xs4all.nl/lives/current/%{name}-%{version}.tar.bz2 |
853f1f7c | 29 | # Source0-md5: 3814a56baac84a29a1b59267aa270be5 |
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 |
cbb55feb | 35 | URL: http://lives.sourceforge.net/ |
199944e5 | 36 | %{?with_sdl:BuildRequires: SDL-devel} |
4988e69e | 37 | BuildRequires: autoconf >= 2.57 |
e6456b8a | 38 | BuildRequires: automake >= 1:1.7 |
b75afc35 | 39 | BuildRequires: gettext-tools >= 0.14.1 |
3f3bfa3d | 40 | BuildRequires: gtk+2-devel >= 1: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 | |
3f3bfa3d | 114 | Obsoletes: LiVES-plugins-encoders |
c1b64ff9 SS |
115 | |
116 | %description plugins-encoders-perl | |
117 | Perl encoders plugins for LiVES. | |
118 | ||
119 | %description plugins-encoders-perl -l pl.UTF-8 | |
120 | Perlowe wtyczki (plugins) kodujące dla LiVES. | |
121 | ||
122 | %package plugins-encoders-python | |
123 | Summary: Pythonowe encoders plugins for LiVES | |
124 | Summary(pl.UTF-8): Pythonowe wtyczki kodujące dla LiVES | |
af41a1ea SS |
125 | Group: X11/Applications/Multimedia |
126 | Requires: %{name} = %{version}-%{release} | |
c1b64ff9 | 127 | Requires: python |
3f3bfa3d | 128 | Obsoletes: LiVES-plugins-encoders |
af41a1ea | 129 | |
c1b64ff9 SS |
130 | %description plugins-encoders-python |
131 | Python encoders plugins for LiVES. | |
af41a1ea | 132 | |
c1b64ff9 SS |
133 | %description plugins-encoders-python -l pl.UTF-8 |
134 | Pythonowe wtyczki (plugins) kodujące dla LiVES. | |
af41a1ea SS |
135 | |
136 | %package plugins-playback | |
137 | Summary: Playback plugins for LiVES | |
138 | Summary(pl.UTF-8): Wtyczki odtwarzające dla LiVES | |
139 | Group: X11/Applications/Multimedia | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description plugins-playback | |
143 | Playback plugins for LiVES. | |
144 | ||
145 | %description plugins-playback -l pl.UTF-8 | |
146 | Wtyczki (plugins) odtwarzające dla LiVES. | |
147 | ||
148 | %package plugins-rendered | |
149 | Summary: Rendered plugins for LiVES | |
150 | Summary(pl.UTF-8): Wtyczki rendered dla LiVES | |
151 | Group: X11/Applications/Multimedia | |
152 | Requires: %{name} = %{version}-%{release} | |
c1b64ff9 | 153 | Requires: ImageMagick >= 5 |
af41a1ea SS |
154 | |
155 | %description plugins-rendered | |
156 | Rendered plugins for LiVES. | |
157 | ||
158 | %description plugins-rendered -l pl.UTF-8 | |
159 | Wtyczki (plugins) rendered dla LiVES. | |
160 | ||
161 | %package plugins-RFXscripts | |
162 | Summary: RFXscripts plugins for LiVES | |
163 | Summary(pl.UTF-8): Wtyczki RFXscripts dla LiVES | |
164 | Group: X11/Applications/Multimedia | |
165 | Requires: %{name} = %{version}-%{release} | |
166 | ||
167 | %description plugins-RFXscripts | |
168 | RFXscripts plugins for LiVES. | |
169 | ||
170 | %description plugins-RFXscripts -l pl.UTF-8 | |
171 | Wtyczki (plugins) RFXscripts dla LiVES. | |
172 | ||
173 | %package plugins-weed | |
174 | Summary: Weed plugins for LiVES | |
175 | Summary(pl.UTF-8): Wtyczki weed dla LiVES | |
176 | Group: X11/Applications/Multimedia | |
177 | Requires: %{name} = %{version}-%{release} | |
178 | ||
179 | %description plugins-weed | |
180 | Weed plugins for LiVES. | |
181 | ||
182 | %description plugins-weed -l pl.UTF-8 | |
183 | Wtyczki (plugins) weed dla LiVES. | |
184 | ||
d6dcd492 | 185 | %package themes |
367a2a7a | 186 | Summary: Themes for LiVES |
c351d0e3 | 187 | Summary(pl.UTF-8): Motywy dla LiVES |
367a2a7a | 188 | Group: Themes/GTK+ |
4a4619c2 | 189 | Requires: %{name} = %{version}-%{release} |
d6dcd492 | 190 | |
367a2a7a | 191 | %description themes |
073ebf76 | 192 | Themes for LiVES. |
d6dcd492 | 193 | |
fd1e461e | 194 | %description themes -l pl.UTF-8 |
073ebf76 | 195 | Motywy dla LiVES. |
d6dcd492 | 196 | |
d6dcd492 | 197 | %prep |
849a345a | 198 | %setup -qn %{_sname}-%{version} |
d6dcd492 | 199 | %patch0 -p1 |
26111481 | 200 | %patch1 -p1 |
199944e5 | 201 | %{!?with_sdl:%patch2 -p1} |
c1b64ff9 | 202 | %patch3 -p1 |
d6dcd492 | 203 | |
c1b64ff9 SS |
204 | sed -i -e "#^PYTHON_PLUGINS_DIR#s#^.*#PYTHON_PLUGINS_DIR = %{python_plugins_dir}/#" \ |
205 | lives-plugins/plugins/encoders/multi_encoder | |
e9efba0b | 206 | |
d6dcd492 | 207 | %build |
bb3cb93e KK |
208 | %{__aclocal} -I m4 |
209 | %{__autoconf} | |
210 | %{__automake} | |
e9efba0b | 211 | %configure \ |
199944e5 | 212 | %{!?with_dvgrab:--disable-dvgrab} \ |
c1b64ff9 | 213 | %{!?with_sdl:--disable-sdl} |
36301c5d | 214 | %{__make} \ |
215 | CFLAGS="%{rpmcflags} -fPIC" | |
d6dcd492 JW |
216 | |
217 | %install | |
218 | rm -rf $RPM_BUILD_ROOT | |
bb3cb93e | 219 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
7196a208 | 220 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
bb3cb93e KK |
221 | install -d $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered |
222 | for i in lives-plugins/plugins/effects/RFXscripts/*.script ; do | |
223 | ./build-lives-rfx-plugin $i $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered | |
224 | done | |
d6dcd492 JW |
225 | |
226 | %{__make} install \ | |
c1b64ff9 SS |
227 | marcosencodersdir=%{python_plugins_dir} \ |
228 | DESTDIR=$RPM_BUILD_ROOT | |
d6dcd492 | 229 | |
9b44bde4 | 230 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
849a345a | 231 | mv $RPM_BUILD_ROOT%{_docdir}/%{_sname}-%{version} \ |
535cfb99 | 232 | $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
d6dcd492 | 233 | |
14ab6417 | 234 | mv -f $RPM_BUILD_ROOT%{_localedir}/de{_DE,} |
0cfe8d85 | 235 | mv -f $RPM_BUILD_ROOT%{_localedir}/nl{_NL,} |
b2d7a9a9 | 236 | |
535cfb99 | 237 | %find_lang %{_sname} |
bbbf5774 | 238 | |
d6dcd492 JW |
239 | %clean |
240 | rm -rf $RPM_BUILD_ROOT | |
241 | ||
535cfb99 | 242 | %files -f %{_sname}.lang |
d6dcd492 | 243 | %defattr(644,root,root,755) |
27b03b78 | 244 | %doc AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS RFX OMC |
87c1e096 | 245 | %attr(755,root,root) %{_bindir}/autolives.pl |
87c1e096 SS |
246 | %attr(755,root,root) %{_bindir}/build-lives-rfx-plugin |
247 | %attr(755,root,root) %{_bindir}/build-lives-rfx-plugin-multi | |
af41a1ea | 248 | %attr(755,root,root) %{_bindir}/lives |
87c1e096 SS |
249 | %attr(755,root,root) %{_bindir}/lives-exe |
250 | %attr(755,root,root) %{_bindir}/midistart | |
251 | %attr(755,root,root) %{_bindir}/midistop | |
87c1e096 SS |
252 | %attr(755,root,root) %{_bindir}/sendOSC |
253 | %attr(755,root,root) %{_bindir}/smogrify | |
4a4619c2 | 254 | %dir %{_datadir}/%{_sname} |
af41a1ea SS |
255 | %dir %{_datadir}/%{_sname}/plugins |
256 | %dir %{_datadir}/%{_sname}/plugins/effects | |
c1b64ff9 SS |
257 | %dir %{_datadir}/%{_sname}/plugins/encoders |
258 | %dir %{_libdir}/%{_sname} | |
259 | %dir %{_libdir}/%{_sname}/plugins | |
260 | %dir %{_libdir}/%{_sname}/plugins/effects | |
d6dcd492 | 261 | %{_datadir}/%{_sname}/icons |
e6456b8a | 262 | %{_datadir}/%{_sname}/default.keymap |
d6dcd492 | 263 | %{_desktopdir}/%{name}.desktop |
7196a208 | 264 | %{_pixmapsdir}/%{_sname}.xpm |
4a4619c2 | 265 | %dir %{_themesdir} |
d6dcd492 JW |
266 | %{_themesdir}/default |
267 | ||
268 | %files themes | |
269 | %defattr(644,root,root,755) | |
270 | %{_themesdir}/camera | |
271 | %{_themesdir}/cutting_room | |
367a2a7a | 272 | %{_themesdir}/greenish |
d6dcd492 JW |
273 | %{_themesdir}/pinks |
274 | %{_themesdir}/sunburst | |
535cfb99 | 275 | %{_themesdir}/editor |
d6dcd492 | 276 | |
3a923ddc SS |
277 | %files plugins |
278 | %defattr(644,root,root,755) | |
279 | ||
c1b64ff9 | 280 | %files plugins-encoders-perl |
af41a1ea | 281 | %defattr(644,root,root,755) |
c1b64ff9 SS |
282 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/encodedv_encoder |
283 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/ffmpeg_encoder | |
284 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/mencoder_encoder | |
285 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/mjpegtools_encoder | |
286 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/pdf_encoder | |
853f1f7c RT |
287 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/qtutils_encoder |
288 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/sswf_encoder | |
c1b64ff9 | 289 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/transcode_encoder |
c1b64ff9 SS |
290 | |
291 | %files plugins-encoders-python | |
292 | %defattr(644,root,root,755) | |
293 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/encoders/multi_encoder | |
294 | %attr(755,root,root) %{python_plugins_dir} | |
af41a1ea SS |
295 | |
296 | %files plugins-playback | |
297 | %defattr(644,root,root,755) | |
c1b64ff9 SS |
298 | %dir %{_libdir}/%{_sname}/plugins/playback |
299 | %dir %{_libdir}/%{_sname}/plugins/playback/video | |
300 | %{?with_sdl:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/playback/video/SDLp} | |
301 | %{?with_mjpeg:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/playback/video/yuv4mpeg_stream} | |
af41a1ea SS |
302 | |
303 | %files plugins-rendered | |
304 | %defattr(644,root,root,755) | |
305 | %dir %{_datadir}/%{_sname}/plugins/effects/rendered | |
306 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/effects/rendered/* | |
307 | ||
308 | %files plugins-RFXscripts | |
d6dcd492 | 309 | %defattr(644,root,root,755) |
31d9a446 SS |
310 | %dir %{_datadir}/%{_sname}/plugins/effects/RFXscripts |
311 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins/effects/RFXscripts/*.script | |
af41a1ea SS |
312 | |
313 | %files plugins-weed | |
c1b64ff9 SS |
314 | %dir %{_libdir}/%{_sname}/plugins/effects/realtime |
315 | %dir %{_libdir}/%{_sname}/plugins/effects/realtime/weed | |
316 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/alien_overlay.wo | |
317 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/audio_volume.wo | |
318 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/blurzoom.wo | |
319 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/bump2d.wo | |
320 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/ccorrect.wo | |
321 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/colorkey.wo | |
322 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/compositor.wo | |
323 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/deinterlace.wo | |
324 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/edge.wo | |
325 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/fg_bg_removal.wo | |
326 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/fireTV.wo | |
327 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/gdk_fast_resize.wo | |
328 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/haip.wo | |
329 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/layout_blends.wo | |
330 | %{?with_libvisual:%attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/libvis.wo} | |
331 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/lifeTV.wo | |
332 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/mirrors.wo | |
333 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/multi_blends.wo | |
334 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/negate.wo | |
335 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/noise.wo | |
336 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/onedTV.wo | |
337 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/plasma.wo | |
338 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/posterise.wo | |
339 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/rippleTV.wo | |
340 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/rotozoom.wo | |
341 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/simple_blend.wo | |
342 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/slide_over.wo | |
343 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/targeted_zoom.wo | |
344 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/textfun.wo | |
345 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/vertigo.wo | |
346 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/videowall.wo | |
347 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/warpTV.wo | |
348 | %attr(755,root,root) %{_libdir}/%{_sname}/plugins/effects/realtime/weed/xeffect.wo |