]>
Commit | Line | Data |
---|---|---|
d5c0edf3 JK |
1 | Summary: OpenShot - Non-Linear Video Editor for Linux |
2 | Name: openshot | |
b5950090 | 3 | Version: 1.2.2 |
d5c0edf3 JK |
4 | Release: 1 |
5 | License: GPL v3 | |
6 | Group: X11/Applications | |
b5950090 RT |
7 | Source0: http://launchpadlibrarian.net/56230175/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 36648c67c845bc7407abd55703a777be | |
d5c0edf3 JK |
9 | Patch0: %{name}-locale_dir.patch |
10 | URL: http://www.openshotvideo.com/ | |
2ae19df2 | 11 | BuildRequires: python-devel |
d5c0edf3 JK |
12 | BuildRequires: rpm-pythonprov |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
2ae19df2 | 14 | Requires(post,postun): scrollkeeper |
15 | Requires(post,postun): shared-mime-info | |
d5c0edf3 JK |
16 | Requires: python-mlt |
17 | Requires: python-pygoocanvas | |
18 | Requires: python-pygtk-glade | |
19 | Requires: python-pygtk-gtk | |
20 | Requires: python-pygtk-pango | |
21 | Requires: python-pyxdg | |
d5c0edf3 JK |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
2ae19df2 | 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! | |
30 | ||
d5c0edf3 | 31 | Features include: |
2ae19df2 | 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) | |
d5c0edf3 JK |
35 | |
36 | %prep | |
37 | %setup -q | |
38 | %patch0 -p1 | |
39 | ||
40 | %build | |
41 | %{__python} setup.py build | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_datadir}{/gnome/help,/omf},%{_localedir}} | |
46 | ||
47 | %{__python} setup.py install \ | |
48 | --optimize=2 \ | |
49 | --root=$RPM_BUILD_ROOT | |
50 | ||
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 | |
58 | ||
59 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
60 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
61 | %py_postclean | |
62 | ||
2ae19df2 | 63 | rm $RPM_BUILD_ROOT%{_prefix}/lib/mime/packages/%{name} |
d5c0edf3 JK |
64 | |
65 | cp -R docs/gnome $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name} | |
66 | cp -R docs/omf $RPM_BUILD_ROOT%{_datadir}/omf/%{name} | |
67 | ||
68 | %find_lang %{name} --all-name --with-gnome --with-omf | |
69 | ||
70 | %post | |
71 | %update_mime_database | |
72 | %scrollkeeper_update_post | |
73 | ||
74 | %postun | |
75 | %update_mime_database | |
76 | %scrollkeeper_update_postun | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files -f %{name}.lang | |
82 | %defattr(644,root,root,755) | |
83 | %doc AUTHORS README | |
84 | %attr(755,root,root) %{_bindir}/* | |
85 | %{_datadir}/mime/packages/* | |
86 | %{_mandir}/man1/* | |
87 | %{_pixmapsdir}/* | |
88 | %{_desktopdir}/*.desktop | |
89 | %{py_sitescriptdir}/%{name} | |
90 | %if "%{py_ver}" > "2.4" | |
91 | %{py_sitescriptdir}/*.egg-info | |
92 | %endif |