%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: openshot Version: 0.9.52 Release: 1%{?dist} Summary: Non-linear video editor Group: Applications/Multimedia License: GPLv3+ URL: http://www.openshotvideo.com Source0: http://launchpad.net/%{name}/build-wizard/create-a-build-wizard/+download/%{name}_source.tar.gz Patch0: %{name}-0.9.52-desktop.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: desktop-file-utils Requires: mlt-python pygtk2 %description OpenShot is a non-linear editor (NLE) for video. The "non-linear" qualifier simply means that you can play, edit, and mix video footage in any order or at any point you wish. In addition to this random access a modern digital NLE is typically non-destructive, thereby allowing free experimentation with edits and effects while leaving your original material in pristine condition. %prep %setup -q -c %patch0 -p1 -b .bad-desktop %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/usr/lib/mime desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING README %{_bindir}/%{name} %{python_sitelib}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/pixmaps/%{name}.png %{_mandir}/man1/%{name}.* %changelog * Fri Nov 20 2009 Dan Horak - 0.9.52-1 - initial Fedora package