package created using the webbuild interface [release 0.17.0-1mamba;Thu Apr 24 2025]

This commit is contained in:
2025-04-25 10:03:26 +02:00
parent aaaf0216ae
commit ffe856e57f
3 changed files with 199 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
# opentimelineio
OpenTimelineIO is an interchange format and API for editorial cut information. OTIO contains information about the order and length of cuts and references to external media. It is not however, a container format for media.

View File

@@ -0,0 +1,115 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3c6958..b38c423 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,7 +75,6 @@ if(OTIO_PYTHON_INSTALL)
if(OTIO_PYTHON_INSTALL_DIR STREQUAL "" AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# neither install directory supplied from the command line
set(OTIO_RESOLVED_PYTHON_INSTALL_DIR "${Python_SITEARCH}")
- set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${OTIO_RESOLVED_PYTHON_INSTALL_DIR}/opentimelineio")
message(STATUS "OTIO Defaulting Python install to ${OTIO_RESOLVED_PYTHON_INSTALL_DIR}")
else()
# either python_install or install_prefix have been set
@@ -86,21 +85,21 @@ if(OTIO_PYTHON_INSTALL)
# In order to not require setting $PYTHONPATH to point at the .so,
# the shared libraries are installed into the python library
# location.
- set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${OTIO_RESOLVED_PYTHON_INSTALL_DIR}/opentimelineio")
message(STATUS "OTIO Defaulting Python install to ${OTIO_RESOLVED_PYTHON_INSTALL_DIR}")
else()
# OTIO_PYTHON_INSTALL_DIR was set, so install everything into the python package
set(OTIO_RESOLVED_PYTHON_INSTALL_DIR "${OTIO_PYTHON_INSTALL_DIR}")
- set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${OTIO_PYTHON_INSTALL_DIR}/opentimelineio")
endif()
endif()
if (WIN32)
string(REPLACE "\\" "/" OTIO_RESOLVED_PYTHON_INSTALL_DIR ${OTIO_RESOLVED_PYTHON_INSTALL_DIR})
endif()
+endif()
-else()
- set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+if(OTIO_CXX_INSTALL)
+ include(GNUInstallDirs)
+ set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
message(STATUS "OTIO C++ installing to ${CMAKE_INSTALL_PREFIX}")
endif()
diff --git a/src/opentime/CMakeLists.txt b/src/opentime/CMakeLists.txt
index b7cc47c..4022ba2 100644
--- a/src/opentime/CMakeLists.txt
+++ b/src/opentime/CMakeLists.txt
@@ -21,6 +21,7 @@ target_include_directories(opentime PRIVATE "${PROJECT_SOURCE_DIR}/src")
set_target_properties(opentime PROPERTIES
DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX}"
LIBRARY_OUTPUT_NAME "opentime"
+ VERSION "${OTIO_VERSION}"
POSITION_INDEPENDENT_CODE TRUE
WINDOWS_EXPORT_ALL_SYMBOLS true)
@@ -49,7 +50,7 @@ if(OTIO_CXX_INSTALL)
RUNTIME DESTINATION "${OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR}")
install(EXPORT OpenTimeTargets
- DESTINATION "${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentime"
+ DESTINATION "${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentime"
NAMESPACE OTIO:: )
include(CMakePackageConfigHelpers)
@@ -57,7 +58,7 @@ if(OTIO_CXX_INSTALL)
${CMAKE_CURRENT_SOURCE_DIR}/OpenTimeConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/OpenTimeConfig.cmake
INSTALL_DESTINATION
- ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentime
+ ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentime
NO_SET_AND_CHECK_MACRO
NO_CHECK_REQUIRED_COMPONENTS_MACRO
)
@@ -66,7 +67,7 @@ if(OTIO_CXX_INSTALL)
FILES
${CMAKE_CURRENT_BINARY_DIR}/OpenTimeConfig.cmake
DESTINATION
- ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentime
+ ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentime
)
endif()
diff --git a/src/opentimelineio/CMakeLists.txt b/src/opentimelineio/CMakeLists.txt
index 4b08e6d..4d3bd0d 100644
--- a/src/opentimelineio/CMakeLists.txt
+++ b/src/opentimelineio/CMakeLists.txt
@@ -90,6 +90,7 @@ target_link_libraries(opentimelineio
set_target_properties(opentimelineio PROPERTIES
DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX}"
LIBRARY_OUTPUT_NAME "opentimelineio"
+ VERSION "${OTIO_VERSION}"
POSITION_INDEPENDENT_CODE TRUE
WINDOWS_EXPORT_ALL_SYMBOLS true)
@@ -124,7 +125,7 @@ if(OTIO_CXX_INSTALL)
RUNTIME DESTINATION "${OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR}")
install(EXPORT OpenTimelineIOTargets
- DESTINATION "${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentimelineio"
+ DESTINATION "${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentimelineio"
NAMESPACE OTIO:: )
include(CMakePackageConfigHelpers)
@@ -132,7 +133,7 @@ if(OTIO_CXX_INSTALL)
${CMAKE_CURRENT_SOURCE_DIR}/OpenTimelineIOConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/OpenTimelineIOConfig.cmake
INSTALL_DESTINATION
- ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentimelineio
+ ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentimelineio
NO_SET_AND_CHECK_MACRO
NO_CHECK_REQUIRED_COMPONENTS_MACRO
)
@@ -141,6 +142,6 @@ if(OTIO_CXX_INSTALL)
FILES
${CMAKE_CURRENT_BINARY_DIR}/OpenTimelineIOConfig.cmake
DESTINATION
- ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/opentimelineio
+ ${OTIO_RESOLVED_CXX_INSTALL_DIR}/share/cmake/opentimelineio
)
endif()

82
opentimelineio.spec Normal file
View File

@@ -0,0 +1,82 @@
Name: opentimelineio
Version: 0.17.0
Release: 1mamba
Summary: Open Source API and interchange format for editorial timeline information
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://opentimeline.io/
Source: https://github.com/AcademySoftwareFoundation/OpenTimelineIO.git/v%{version}/OpenTimelineIO-%{version}.tar.bz2
Patch0: opentimelineio-0.17.0-cmake-install.patch
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libimath-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
OpenTimelineIO is an interchange format and API for editorial cut information. OTIO contains information about the order and length of cuts and references to external media. It is not however, a container format for media.
%package -n lib%{name}
Summary: Open Source API and interchange format for editorial timeline information
Group: System/Libraries
%description -n lib%{name}
OpenTimelineIO is an interchange format and API for editorial cut information. OTIO contains information about the order and length of cuts and references to external media. It is not however, a container format for media.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q -n OpenTimelineIO-%{version}
%patch 0 -p1 -b .cmake-install
%build
%cmake \
-DOTIO_FIND_IMATH=ON \
-DOTIO_AUTOMATIC_SUBMODULES=OFF \
-DOTIO_DEPENDENCIES_INSTALL=OFF
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libopentime.so.*
%{_libdir}/libopentimelineio.so.*
%doc LICENSE.txt
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/opentime
%{_includedir}/opentime/*
%dir %{_includedir}/opentimelineio
%{_includedir}/opentimelineio/*
%{_libdir}/libopentime.so
%{_libdir}/libopentimelineio.so
%dir %{_datadir}/cmake/opentime
%{_datadir}/cmake/opentime/OpenTime*.cmake
%dir %{_datadir}/cmake/opentimelineio
%{_datadir}/cmake/opentimelineio/OpenTimelineIO*.cmake
%doc README.md README_contrib.md
%changelog
* Thu Apr 24 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.0-1mamba
- package created using the webbuild interface