3 # - some platform-independent left in %{_libdir}
7 Summary: LiVES - the Linux Video Editing System
8 Summary(pl.UTF-8): LiVES - Linuksowy System Edycji Video
13 Group: X11/Applications/Multimedia
14 Source0: http://www.xs4all.nl/%7Esalsaman/lives/current/%{name}-%{version}.tar.bz2
15 # Source0-md5: 16f280b01fc426981494e03d4671488a
16 Source1: %{name}.desktop
17 Patch0: %{name}-FHS.patch
18 Patch1: %{name}-automake.patch
19 URL: http://www.xs4all.nl/~salsaman/lives/
20 BuildRequires: SDL-devel
21 BuildRequires: autoconf >= 2.57
22 BuildRequires: automake >= 1:1.7
23 BuildRequires: gettext-devel >= 0.14.1
24 BuildRequires: gtk+2-devel >= 2.0.0
25 BuildRequires: libtheora-devel
26 BuildRequires: libtool
27 BuildRequires: libvisual-devel
28 BuildRequires: mjpegtools-devel
29 BuildRequires: pkgconfig
30 BuildRequires: sed >= 4.0
31 BuildRequires: xorg-util-imake
32 Requires: %{name}-plugins = %{version}-%{release}
33 Requires: ImageMagick >= 5
35 Requires: mplayer >= 0.90rc1
38 Requires: python >= 1:2.3
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 # workaround for the next change
44 %define _localedir %{_usr}/share/locale
45 # platform-dependent plugins in %{_datadir}
46 %define _datadir %{_libdir}
47 %define _themesdir %{_datadir}/%{_sname}/themes
48 # shared objects without .so (e.g. SDL), which we don't want to provide
49 %define _noautoprovfiles ^%{_datadir}/%{_sname}/.*
52 LiVES began as the Linux Video Editing System. Since it now runs on
53 more operating systems, LiVES is a Video Editing System. It is
54 designed to be simple to use, yet powerful. It is small in size, yet
55 it has many advanced features.
57 %description -l pl.UTF-8
58 LiVES zaczynał jako Linuksowy System Edycji Video. Obecnie można
59 również uruchomić go na większej liczbie systemów operacyjnych.
60 Zaprojektowany został tak, by być zarówno prostym w użyciu jak i mimo
61 niewielkiego rozmiaru posiadać zaawansowane funkcje.
64 Summary: Plugins for LiVES
65 Summary(pl.UTF-8): Wtyczki dla LiVES
66 Group: X11/Applications/Multimedia
67 Requires: %{name} = %{version}-%{release}
72 %description plugins -l pl.UTF-8
73 Wtyczki (plugins) dla LiVES.
76 Summary: Themes for LiVES
77 Summary(pl.UTF-8): Motywy dla LiVES
79 Requires: %{name} = %{version}-%{release}
84 %description themes -l pl.UTF-8
88 %setup -qn %{_sname}-%{version}
93 sed -i -e 's,/share/,/%{_lib}/,' po/pxgettext po/make_rfx_builtin_list.pl
99 # hack: DATADIRNAME defined too late in configure
103 CFLAGS="%{rpmcflags} -fPIC"
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_desktopdir}
108 install -d $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered
109 for i in lives-plugins/plugins/effects/RFXscripts/*.script ; do
110 ./build-lives-rfx-plugin $i $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered
113 # hack: override localedir because of redefined datadir
115 DESTDIR=$RPM_BUILD_ROOT \
116 localedir=%{_localedir}
118 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
119 mv $RPM_BUILD_ROOT%{_docdir}/%{_sname}-%{version} \
120 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
122 mv -f $RPM_BUILD_ROOT%{_localedir}/{cz,cs}
123 mv -f $RPM_BUILD_ROOT%{_localedir}/nl{_NL,}
128 rm -rf $RPM_BUILD_ROOT
130 %files -f %{_sname}.lang
131 %defattr(644,root,root,755)
132 %doc AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS RFX OMC
133 %attr(755,root,root) %{_bindir}/*
134 %dir %{_datadir}/%{_sname}
135 %{_datadir}/%{_sname}/icons
136 %{_datadir}/%{_sname}/default.keymap
137 %{_desktopdir}/%{name}.desktop
139 %{_themesdir}/default
142 %defattr(644,root,root,755)
144 %{_themesdir}/cutting_room
145 %{_themesdir}/greenish
147 %{_themesdir}/sunburst
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_datadir}/%{_sname}/plugins