]> git.pld-linux.org Git - packages/openshot.git/blob - openshot.spec
- rel 8; try to use CRF 18 - https://trac.ffmpeg.org/wiki/Encode/YouTube
[packages/openshot.git] / openshot.spec
1 Summary:        OpenShot - Non-Linear Video Editor for Linux
2 Name:           openshot
3 Version:        1.4.3
4 Release:        8
5 License:        GPL v3
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
20 Requires:       python-mlt
21 Requires:       python-pygoocanvas
22 Requires:       python-pygtk-glade
23 Requires:       python-pygtk-gtk
24 Requires:       python-pygtk-pango
25 Requires:       python-pyxdg
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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!
34
35 Features include:
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)
39
40 %prep
41 %setup -q
42 %patch0 -p1
43 %patch1 -p1
44 %patch2 -p0
45 %patch3 -p1
46
47 %build
48 %{__python} setup.py build
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_datadir}{/gnome/help,/omf},%{_localedir}}
53
54 %{__python} setup.py install \
55         --optimize=2 \
56         --root=$RPM_BUILD_ROOT
57
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
65
66 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
67 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
68
69 rm $RPM_BUILD_ROOT%{_prefix}/lib/mime/packages/%{name}
70
71 cp -R docs/gnome $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
72 cp -R docs/omf $RPM_BUILD_ROOT%{_datadir}/omf/%{name}
73
74 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{ady,gaa,jv,shn}
75
76 %find_lang %{name} --all-name --with-gnome --with-omf
77
78 %post
79 %update_mime_database
80 %scrollkeeper_update_post
81
82 %postun
83 %update_mime_database
84 %scrollkeeper_update_postun
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc AUTHORS README
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
102 %endif
This page took 0.065539 seconds and 4 git commands to generate.