Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37416516
en ru br
ALT Linux repos
S:3.1.1-alt1

Group :: Video
RPM: openshot

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%ifarch %e2k ppc64le
%def_disable qtwebengine
%else
%def_enable qtwebengine
%endif

%define ver_major 3.1
%define xdg_name org.openshot.OpenShot
Name: openshot
Version: %ver_major.1
Release: alt1

Summary: Non Linear Video Editor using Python and MLT
Group: Video
License: GPL-3.0
Url: http://www.openshotvideo.com/

%define _name  %name-qt

%if_disabled snapshot
#Source: https://launchpad.net/%name/%ver_major/%version/+download/%name-qt-%version.tar.gz
Source: https://github.com/OpenShot/openshot-qt/archive/v%version/%_name-%version.tar.gz
%else
Vcs: https://github.com/OpenShot/openshot-qt.git
Source: %_name-%version.tar
%endif

# blender > 2.80 doesn't support 32-bit

ExcludeArch: i586 armh

Requires: python3-module-%name >= 0.3.2
Requires: blender inkscape xdg-utils
# https://bugzilla.altlinux.org/45836
Requires: python3-module-PyQt5 python3-module-zmq

%add_typelib_req_skiplist typelib(Unity)
# should be self-satisfied
%filter_from_requires /[classes\|images\|windows]/d
# should be provided by blender
%add_python3_req_skip bpy.props
%if_enabled qtwebengine
%add_python3_req_skip PyQt5.QtWebKit PyQt5.QtWebKitWidgets
Requires: python3(PyQt5.QtWebEngine)
%else
%add_python3_req_skip PyQt5.QtWebEngineCore PyQt5.QtWebEngineWidgets
%endif

BuildRequires(pre): rpm-build-python3 rpm-build-gir
BuildRequires: python3-devel python3-module-setuptools python3-module-PyQt5

%description
OpenShot Video Editor is a free, open-source, non-linear video editor. It
can create and edit videos and movies using many popular video, audio,
and image formats. Create videos for YouTube, Flickr, Vimeo, Metacafe,
Xbox, and many more common formats.

%prep
%setup -n %_name-%version

%build
%python3_build

%install
%python3_install --install-lib=%python3_sitelibdir

%files
%_bindir/*
%python3_sitelibdir/%{name}_qt/
%python3_sitelibdir/*.egg-info/
%_pixmapsdir/*
%_desktopdir/*
%_iconsdir/hicolor/*/*/%{name}-qt*
%_datadir/mime/packages/*
%_datadir/metainfo/%xdg_name.appdata.xml
%doc AUTHORS README*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin