+# TODO
+# - some platform-independent left in %{_libdir}
+
%define _sname lives
-%define _pre pre6
-%define _themesdir %{_datadir}/%{_sname}/themes
-Summary: LiVES is the Linux Video Editing System
-Summary(pl): LiVEA jest Linuksowym Systemem Edycji Video
+Summary: LiVES - the Linux Video Editing System
+Summary(pl.UTF-8): LiVES - Linuksowy System Edycji Video
Name: LiVES
-Version: 0.9.1
-Release: 0.%{_pre}.2
+Version: 0.9.6
+Release: 1
License: GPL v2
Group: X11/Applications/Multimedia
-Source0: http://www.xs4all.nl/%7Esalsaman/lives/current/%{name}-%{version}-%{_pre}-src.tar.bz2
-# Source0-md5: 8088d0f11b92a3792b9feb6338c11aa4
+Source0: http://www.xs4all.nl/%7Esalsaman/lives/current/%{name}-%{version}.tar.bz2
+# Source0-md5: 71bc3a29d0d37a8ca88370a3499741d4
Source1: %{name}.desktop
-Patch0: %{name}-Makefile.in-path.patch
-Patch1: %{name}-plugins-python.patch
+Patch0: %{name}-FHS.patch
URL: http://www.xs4all.nl/~salsaman/lives/
-BuildRequires: freetype-devel
-BuildRequires: gtk+2-devel
-BuildRequires: pango-devel
-Requires: ImageMagick
-Requires: gdk-pixbuf
-Requires: libjpeg
-Requires: mplayer >= 0.90rc1
-Requires: perl
-Requires: python >= 2.3
+BuildRequires: SDL-devel
+BuildRequires: automake >= 1:1.7
+BuildRequires: autoconf >= 2.57
+BuildRequires: gettext-devel >= 0.14.1
+BuildRequires: gtk+2-devel >= 2.0.0
+BuildRequires: libtheora-devel
+BuildRequires: libtool
+BuildRequires: libvisual-devel
+BuildRequires: mjpegtools-devel
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+BuildRequires: xorg-util-imake
Requires: %{name}-plugins = %{version}-%{release}
+Requires: ImageMagick >= 5
+Requires: ffmpeg
+Requires: mplayer >= 0.90rc1
+Requires: ogmtools
+Requires: perl-base
+Requires: python >= 1:2.3
+Requires: sox
+Requires: transcode
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# workaround for the next change
+%define _localedir %{_usr}/share/locale
+# platform-dependent plugins in %{_datadir}
+%define _datadir %{_libdir}
+%define _themesdir %{_datadir}/%{_sname}/themes
+# shared objects without .so (e.g. SDL), which we don't want to provide
+%define _noautoprovfiles ^%{_datadir}/%{_sname}/.*
+
%description
LiVES began as the Linux Video Editing System. Since it now runs on
more operating systems, LiVES is a Video Editing System. It is
designed to be simple to use, yet powerful. It is small in size, yet
it has many advanced features.
-%description -l pl
-LiVES zaczyna³ jako Linuksowy System Edycji Video. Obecnie mo¿na
-równie¿ uruchomiæ go na wiêkszej ilo¶ci systemów operacyjnych.
-Zaprojektowany zosta³ tak, by byæ zarówno prostym w u¿yciu jak
-i mimo niewielkiego rozmiaru posiadaæ zaawansowane funkcje.
+%description -l pl.UTF-8
+LiVES zaczynał jako Linuksowy System Edycji Video. Obecnie można
+również uruchomić go na większej liczbie systemów operacyjnych.
+Zaprojektowany został tak, by być zarówno prostym w użyciu jak
+i mimo niewielkiego rozmiaru posiadać zaawansowane funkcje.
%package plugins
Summary: Plugins for LiVES
-Summary(pl): Wtyczki dla LiVES
+Summary(pl.UTF-8): Wtyczki dla LiVES
Group: X11/Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
%description plugins
Plugins for LiVES.
-%description plugins -l pl
+%description plugins -l pl.UTF-8
Wtyczki (plugins) dla LiVES.
%package themes
Summary: Themes for LiVES
-Summary(pl): Motywy dla LiVES
+Summary(pl.UTF-8): Motywy dla LiVES
Group: Themes/GTK+
+Requires: %{name} = %{version}-%{release}
%description themes
Themes for LiVES.
-%description themes -l pl
+%description themes -l pl.UTF-8
Motywy dla LiVES.
%prep
-%setup -q -n %{name}-%{version}-%{_pre}
-gzip -dc %{_sname}-plugins-%{version}-%{_pre}.tar.gz | tar -xf -
-gzip -dc %{_sname}-themes-%{version}-%{_pre}.tar.gz | tar -xf -
+%setup -qn %{_sname}-%{version}
%patch0 -p1
-%patch1 -p0
+
+# wrrr
+sed -i -e 's,/share/,/%{_lib}/,' po/pxgettext po/make_rfx_builtin_list.pl
%build
-%configure
-%{__make}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+# hack: DATADIRNAME defined too late in configure
+%configure \
+ DATADIRNAME=share
+%{__make} \
+ CFLAGS="%{rpmcflags} -fPIC"
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+install -d $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered
+for i in lives-plugins/plugins/effects/RFXscripts/*.script ; do
+ ./build-lives-rfx-plugin $i $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered
+done
+# hack: override localedir because of redefined datadir
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ localedir=%{_localedir}
-install -d $RPM_BUILD_ROOT{%{_datadir}/%{_sname},%{_desktopdir}}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-cp -r plugins $RPM_BUILD_ROOT%{_datadir}/%{_sname}/
-cp -r themes $RPM_BUILD_ROOT%{_datadir}/%{_sname}/
-cp -r icons $RPM_BUILD_ROOT%{_datadir}/%{_sname}/
+mv $RPM_BUILD_ROOT%{_docdir}/%{_sname}-%{version} \
+ $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+mv -f $RPM_BUILD_ROOT%{_localedir}/{cz,cs}
+mv -f $RPM_BUILD_ROOT%{_localedir}/nl{_NL,}
-%find_lang %{name}
+%find_lang %{_sname}
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{name}.lang
+%files -f %{_sname}.lang
%defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog NEWS README
+%doc AUTHORS BUGS CHANGELOG FEATURES GETTING.STARTED NEWS RFX OMC
%attr(755,root,root) %{_bindir}/*
+%dir %{_datadir}/%{_sname}
%{_datadir}/%{_sname}/icons
%{_desktopdir}/%{name}.desktop
+%dir %{_themesdir}
%{_themesdir}/default
%files themes
%{_themesdir}/greenish
%{_themesdir}/pinks
%{_themesdir}/sunburst
+%{_themesdir}/editor
%files plugins
%defattr(644,root,root,755)