1 Summary: OpenShot - Non-Linear Video Editor for Linux
6 Group: X11/Applications
7 Source0: http://launchpad.net/openshot/1.4/%{version}/+download/%{name}-%{version}.tar.gz
8 # Source0-md5: 5ec82a7e8b7700ee4a359458aedf19e9
9 Patch0: %{name}-locale_dir.patch
10 Patch1: openshot-bug-722285.patch
11 Patch2: openshot-r741.patch
12 URL: http://www.openshot.org/
13 BuildRequires: python-devel
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
16 Requires(post,postun): scrollkeeper
17 Requires(post,postun): shared-mime-info
18 Requires: python-httplib2
20 Requires: python-pygoocanvas
21 Requires: python-pygtk-glade
22 Requires: python-pygtk-gtk
23 Requires: python-pygtk-pango
24 Requires: python-pyxdg
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 OpenShot Video Editor is a free, open-source, non-linear video editor.
30 It can create and edit videos and movies using many popular video,
31 audio, and image formats. Create videos for YouTube, Flickr, Vimeo,
32 Metacafe, iPod, Xbox, and many more common formats!
35 - Multiple tracks (layers) Compositing, image overlays, and watermarks
36 - Support for image sequences (rotoscoping) Key-frame animation Video
37 - and audio effects (chroma-key) Transitions (lumas and masks)
46 %{__python} setup.py build
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_datadir}{/gnome/help,/omf},%{_localedir}}
52 %{__python} setup.py install \
54 --root=$RPM_BUILD_ROOT
56 # clean up and move locales to the system localedir
57 rm -r $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/OpenShot
58 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/README
59 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/*/LC_MESSAGES/*.po
60 mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale/* \
61 $RPM_BUILD_ROOT/%{_localedir}
62 rmdir $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale
64 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
65 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
67 rm $RPM_BUILD_ROOT%{_prefix}/lib/mime/packages/%{name}
69 cp -R docs/gnome $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
70 cp -R docs/omf $RPM_BUILD_ROOT%{_datadir}/omf/%{name}
72 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{ady,gaa,jv,shn}
74 %find_lang %{name} --all-name --with-gnome --with-omf
78 %scrollkeeper_update_post
82 %scrollkeeper_update_postun
85 rm -rf $RPM_BUILD_ROOT
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/openshot
91 %attr(755,root,root) %{_bindir}/openshot-render
92 %{_datadir}/mime/packages/*
93 %{_mandir}/man1/openshot.1*
94 %{_mandir}/man1/openshot-render.1*
95 %{_pixmapsdir}/openshot.svg
96 %{_desktopdir}/openshot.desktop
97 %{py_sitescriptdir}/%{name}
98 %if "%{py_ver}" > "2.4"
99 %{py_sitescriptdir}/openshot*.egg-info