1 Summary: OpenShot - Non-Linear Video Editor for Linux
6 Group: X11/Applications
7 Source0: http://launchpadlibrarian.net/56230175/%{name}-%{version}.tar.gz
8 # Source0-md5: 36648c67c845bc7407abd55703a777be
9 Patch0: %{name}-locale_dir.patch
10 URL: http://www.openshotvideo.com/
11 BuildRequires: python-devel
12 BuildRequires: rpm-pythonprov
13 BuildRequires: rpmbuild(macros) >= 1.219
14 Requires(post,postun): scrollkeeper
15 Requires(post,postun): shared-mime-info
17 Requires: python-pygoocanvas
18 Requires: python-pygtk-glade
19 Requires: python-pygtk-gtk
20 Requires: python-pygtk-pango
21 Requires: python-pyxdg
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 OpenShot Video Editor is a free, open-source, non-linear video editor.
27 It can create and edit videos and movies using many popular video,
28 audio, and image formats. Create videos for YouTube, Flickr, Vimeo,
29 Metacafe, iPod, Xbox, and many more common formats!
32 - Multiple tracks (layers) Compositing, image overlays, and watermarks
33 - Support for image sequences (rotoscoping) Key-frame animation Video
34 - and audio effects (chroma-key) Transitions (lumas and masks)
41 %{__python} setup.py build
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_datadir}{/gnome/help,/omf},%{_localedir}}
47 %{__python} setup.py install \
49 --root=$RPM_BUILD_ROOT
51 # clean up and move locales to the system localedir
52 rm -r $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/OpenShot
53 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/README
54 rm $RPM_BUILD_ROOT/%{py_sitescriptdir}/%{name}/locale/*/LC_MESSAGES/*.po
55 mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale/* \
56 $RPM_BUILD_ROOT/%{_localedir}
57 rmdir $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/locale
59 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
60 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
63 rm $RPM_BUILD_ROOT%{_prefix}/lib/mime/packages/%{name}
65 cp -R docs/gnome $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
66 cp -R docs/omf $RPM_BUILD_ROOT%{_datadir}/omf/%{name}
68 %find_lang %{name} --all-name --with-gnome --with-omf
72 %scrollkeeper_update_post
76 %scrollkeeper_update_postun
79 rm -rf $RPM_BUILD_ROOT
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_bindir}/*
85 %{_datadir}/mime/packages/*
88 %{_desktopdir}/*.desktop
89 %{py_sitescriptdir}/%{name}
90 %if "%{py_ver}" > "2.4"
91 %{py_sitescriptdir}/*.egg-info