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 Patch3: openshot-crf.patch
13 URL: http://www.openshot.org/
14 BuildRequires: python-devel
15 BuildRequires: rpm-pythonprov
16 BuildRequires: rpmbuild(macros) >= 1.219
17 Requires(post,postun): scrollkeeper
18 Requires(post,postun): shared-mime-info
19 Requires: python-httplib2
21 Requires: python-pygoocanvas
22 Requires: python-pygtk-glade
23 Requires: python-pygtk-gtk
24 Requires: python-pygtk-pango
25 Requires: python-pyxdg
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 OpenShot Video Editor is a free, open-source, non-linear video editor.
31 It can create and edit videos and movies using many popular video,
32 audio, and image formats. Create videos for YouTube, Flickr, Vimeo,
33 Metacafe, iPod, Xbox, and many more common formats!
36 - Multiple tracks (layers) Compositing, image overlays, and watermarks
37 - Support for image sequences (rotoscoping) Key-frame animation Video
38 - and audio effects (chroma-key) Transitions (lumas and masks)
48 %{__python} setup.py build
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_datadir}{/gnome/help,/omf},%{_localedir}}
54 %{__python} setup.py install \
56 --root=$RPM_BUILD_ROOT
58 # clean up and move locales to the system localedir
59 rm -r $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/OpenShot
60 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/README
61 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/*/LC_MESSAGES/*.po
62 mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale/* \
63 $RPM_BUILD_ROOT/%{_localedir}
64 rmdir $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale
66 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
67 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
69 rm $RPM_BUILD_ROOT%{_prefix}/lib/mime/packages/%{name}
71 cp -R docs/gnome $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
72 cp -R docs/omf $RPM_BUILD_ROOT%{_datadir}/omf/%{name}
74 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{ady,gaa,jv,shn}
76 %find_lang %{name} --all-name --with-gnome --with-omf
80 %scrollkeeper_update_post
84 %scrollkeeper_update_postun
87 rm -rf $RPM_BUILD_ROOT
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/openshot
93 %attr(755,root,root) %{_bindir}/openshot-render
94 %{_datadir}/mime/packages/*
95 %{_mandir}/man1/openshot.1*
96 %{_mandir}/man1/openshot-render.1*
97 %{_pixmapsdir}/openshot.svg
98 %{_desktopdir}/openshot.desktop
99 %{py_sitescriptdir}/%{name}
100 %if "%{py_ver}" > "2.4"
101 %{py_sitescriptdir}/openshot*.egg-info