File OpenTimelineIO.spec of Package OpenTimelineIO

#
# spec file for package OpenTimelineIO
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define skip_python36 1
%define skip_python39 1

Name:           OpenTimelineIO
Version:        0.14.1
Release:        0
Summary:        Open Source API and interchange format for editorial timeline information
License:        Apache-2.0
Url:            https://github.com/PixarAnimationStudios/OpenTimelineIO
Source:         https://files.pythonhosted.org/packages/9c/6a/d74b3ab7e7b21cafafb7f746ce50fd414fcc2a8abee7a53701a1ab3975ea/OpenTimelineIO-0.14.1.tar.gz
BuildRequires:  cmake
BuildRequires:  cmake(RapidJSON)
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  python3-devel
BuildRequires:  python3-flit-core
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools >= 39.2.0
BuildRequires:  python3-pybind11-devel
BuildRequires:  python3-pyside2-devel >= 5.11
Requires:       python3-OpenTimelineIO = %{version}
Recommends:     OpenTimelineIO-viewer = %{version}


%description
OpenTimelineIO is an interchange format and API for editorial cut information.
OTIO is not a container format for media, rather it contains information about the
order and length of cuts and references to external media.

OTIO includes both a file format and an API for manipulating that format.
It also includes a plugin architecture for writing adapters to convert from/to
existing editorial timeline formats. It also implements a dependency- less library
for dealing strictly with time, opentime.

You can provide adapters for your video editing tool or pipeline as needed.
Each adapter allows for import/export between that proprietary tool and the OpenTimelineIO format.

%package -n python3-OpenTimelineIO
Summary:        OpenTimelineIO Python3 libraries
Requires:       python3-pybind11
%description -n python3-OpenTimelineIO
OpenTimelineIO is an interchange format and API for editorial cut information.
OTIO is not a container format for media, rather it contains information about the
order and length of cuts and references to external media.

OTIO includes both a file format and an API for manipulating that format.
It also includes a plugin architecture for writing adapters to convert from/to
existing editorial timeline formats. It also implements a dependency- less library
for dealing strictly with time, opentime.

You can provide adapters for your video editing tool or pipeline as needed.
Each adapter allows for import/export between that proprietary tool and the OpenTimelineIO format.

This package holds the viewer for OpenTimelineIO files.

%package viewer
Summary:        OpenTimelineIO Viewer
Requires:       python3-OpenTimelineIO = %{version}
Requires:       python3-pyside2 >= 5.11
%description viewer
OpenTimelineIO is an interchange format and API for editorial cut information.
OTIO is not a container format for media, rather it contains information about the
order and length of cuts and references to external media.

OTIO includes both a file format and an API for manipulating that format.
It also includes a plugin architecture for writing adapters to convert from/to
existing editorial timeline formats. It also implements a dependency- less library
for dealing strictly with time, opentime.

You can provide adapters for your video editing tool or pipeline as needed.
Each adapter allows for import/export between that proprietary tool and the OpenTimelineIO format.

This package holds the viewer for OpenTimelineIO files.

%package devel
Summary:        Development files for OpenTimelineIO
Requires:       python3-OpenTimelineIO = %{version}
Requires:       python3-pyside2 >= 5.11
%description devel
OpenTimelineIO is an interchange format and API for editorial cut information.
OTIO is not a container format for media, rather it contains information about the
order and length of cuts and references to external media.

OTIO includes both a file format and an API for manipulating that format.
It also includes a plugin architecture for writing adapters to convert from/to
existing editorial timeline formats. It also implements a dependency- less library
for dealing strictly with time, opentime.

You can provide adapters for your video editing tool or pipeline as needed.
Each adapter allows for import/export between that proprietary tool and the OpenTimelineIO format.

This package holds the development file for OpenTimelineIO.

%prep
%autosetup -p1

%build
%python_build
%cmake

%install
%python_install
%cmake_install

if [ "lib64" == "%{_lib}" ] ; then
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}/
fi
mkdir -p %{buildroot}%{_libdir}/cmake/
mv %{buildroot}%{_datadir}/opentime* %{buildroot}%{_libdir}/cmake/

%files
%license LICENSE.txt
%doc NOTICE.txt README.md
%{_bindir}/otioautogen_serialized_schema_docs
%{_bindir}/otiocat
%{_bindir}/otioconvert
%{_bindir}/otiopluginfo
%{_bindir}/otiostat

%files -n python3-OpenTimelineIO
%{python3_sitearch}/opentimelineio/
%{python3_sitearch}/opentimelineio_contrib/
%{python3_sitearch}/OpenTimelineIO-%{version}*-info

%files viewer
%{_bindir}/otioview
%{python3_sitearch}/opentimelineview/

%files devel
%{_libdir}/libopentime.so
%{_libdir}/libopentimelineio.so
%{_includedir}/opentime/
%{_includedir}/opentimelineio/
%{_libdir}/cmake/opentime/
%{_libdir}/cmake/opentimelineio/

%changelog

openSUSE Build Service is sponsored by