Name: stopmotion Version: 0.6.2 Release: 1%{?dist} Summary: An application for creating stopmotion animations Group: Applications/Multimedia License: GPLv2 URL: http://stopmotion.bjoernen.com/ Source0: http://developer.skolelinux.no/info/studentgrupper/2005-hig-stopmotion/project_management/webpage/releases/%{name}-%{version}.tar.gz Source1: README-FEDORA Source2: stopmotion-vgrabbj Source3: fedora-stopmotion.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #The following patch adds an option to export the video using gstreamer, and set it to default, thus removing ffmpeg dependecy. Patch0: stopmotion-gstreamer-export.patch Patch1: stopmotion-wrapped-vgrabbj.patch #The following patch adds -lX11 to the linker command line, allowing stopmotion to compile under Fedora 13 and above Patch2: stopmotion-lx11.patch BuildRequires: SDL_image-devel libvorbis-devel libxml2-devel libtar-devel inotify-tools-devel qt-devel ImageMagick Requires: vgrabbj SDL_image libvorbis libxml2 libtar inotify-tools qt %description Stopmotion is a free application for creating stop-motion animation movies. The users will be able to create stop-motions from pictures imported from a camera or from the harddrive, add sound effects and export the animation to a WebM video. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %configure --with-html-dir=%{_datadir}/doc/%{name}/manual --with-qmake-command=qmake-qt4 make %{?_smp_mflags} convert graphics/stopmotion.png -resize 16x16 graphics/stopmotion-16.png convert graphics/stopmotion.png -resize 48x48 graphics/stopmotion-48.png %install rm -rf $RPM_BUILD_ROOT #Stopmotion's "make install" is complely broken, we have to install everything manually install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/ install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps install -d $RPM_BUILD_ROOT%{_datadir}/mime-info install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/screenshots install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/icons install -d $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/graphic install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/translations install -pm 755 %{name} $RPM_BUILD_ROOT%{_bindir}/ install -pm 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/ install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/ install -pm 644 COPYING $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/ install -pm 644 manual/*.html $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/ install -pm 644 manual/graphic/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/graphic install -pm 644 manual/icons/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/icons install -pm 644 manual/screenshots/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/manual/screenshots install -pm 644 translations/* $RPM_BUILD_ROOT%{_datadir}/%{name}/translations install -pm 644 graphics/stopmotion.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png install -Dpm 644 graphics/stopmotion.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png install -Dpm 644 graphics/stopmotion-16.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png install -Dpm 644 graphics/stopmotion-48.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png install -Dpm 644 %{name}.mime $RPM_BUILD_ROOT%{_datadir}/mime-info/ desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_datadir}/doc/* %{_bindir}/* %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/%{name}/* %{_datadir}/mime-info/%{name}.mime %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{_datadir}/pixmaps/%{name}.png %changelog * Sat Dec 04 2010 Elad Alfassa - 0.6.2-0 Initial packaging