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