Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37863190
en ru br
ALT Linux repositórios
S:2.2.1-alt3.1

Group :: Sistema/Bibliotecas
RPM: libopencolorio2.2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

# TODO: build docs


%define oname opencolorio
%define soname 2.2

Name:           lib%oname%soname
Version:        2.2.1
Release:        alt3.1
Summary:        Enables color transforms and image display across graphics apps

License:        BSD-3-Clause
Group:          System/Libraries
URL:            https://opencolorio.org/

# https://github.com/imageworks/OpenColorIO.git

Source:         %name-%version.tar

Patch1: opencolorio-alt-install.patch
Patch2: opencolorio-alt-armh-multiple-definition.patch
Patch3: opencolorio-alt-minizip-ng.patch

# Utilities

BuildRequires: cmake gcc-c++
BuildRequires: help2man

# WARNING: OpenColorIO and OpenImageIO are cross dependent.

# If an ABI incompatible update is done in one, the other also needs to be
# rebuilt.
BuildRequires: openexr-devel

# Libraries

BuildRequires: libGL-devel libGLU-devel
BuildRequires: libX11-devel libXmu-devel libXi-devel
BuildRequires: libfreeglut-devel
BuildRequires: libGLEW-devel
BuildRequires: zlib-devel
BuildRequires: libexpat-devel
BuildRequires: pystring-devel
BuildRequires: pybind11-devel
BuildRequires: python3-devel
BuildRequires: liblcms2-devel
BuildRequires: libyaml-cpp-devel
BuildRequires: boost-devel
BuildRequires: libimath29-devel
BuildRequires: python3-module-imath
BuildRequires: libminizip-ng-compat-devel

# Test dependencies

BuildRequires: ctest
BuildRequires: python3-module-numpy

%description
OCIO enables color transforms and image display to be handled in a consistent
manner across multiple graphics applications. Unlike other color management
solutions, OCIO is geared towards motion-picture post production, with an
emphasis on visual effects and animation color pipelines.

%package -n %oname%soname-tools
Summary:        Command line tools for %oname
Group:          Other
Provides:       opencolorio-tools = %version
Provides:       opencolorio2.0-tools = %EVR
Obsoletes:      opencolorio2.0-tools < %EVR

%description -n %oname%soname-tools
Command line tools for %oname.

%package devel
Summary:        Development libraries and headers for %oname
Group:          Development/Other
Provides:       libopencolorio-devel = %version
Provides:       libopencolorio2.0-devel = %EVR
Obsoletes:      libopencolorio2.0-devel < %EVR

%description devel
Development libraries and headers for %oname.

%package -n python3-module-%oname
Summary:        %oname python3 module
Group:          Development/Python3

%description -n python3-module-%oname
%oname python3 module.

%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1
%ifarch %e2k
# ld: multiple definition of LoadLutFile
sed -i "s/OCIO::LocalCachedFileRcPtr LoadLutFile/static &/" \
tests/cpu/fileformats/*_tests.cpp
%endif

%build
%add_optflags -D_FILE_OFFSET_BITS=64

# disable debugging wrappers

%add_optflags -DNDEBUG

%cmake \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DOCIO_BUILD_PYTHON:BOOL=ON \
-DOCIO_BUILD_STATIC=OFF \
-DOCIO_BUILD_DOCS=OFF \
-DOCIO_BUILD_TESTS=ON \
-DOCIO_BUILD_GPU_TESTS=OFF \
-DOCIO_WARNING_AS_ERROR:BOOL=OFF \
%ifnarch x86_64 %e2k
-DOCIO_USE_SSE=OFF \
%endif
%ifnarch %e2k
-DOCIO_USE_GLVND:BOOL=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
%endif
-DCMAKE_CXX_STANDARD=14 \
-Dminizip-ng_INCLUDE_DIR=%_includedir/minizip \
%nil

%cmake_build

%install
%cmakeinstall_std

# Generate man pages

mkdir -p %buildroot%_man1dir

for i in %buildroot%_bindir/* ; do
if [ "$(basename $i)" != "ociodisplay" ] ; then
LD_LIBRARY_PATH=%buildroot%_libdir \
help2man -N -s 1 --version-string=%version \
-o %buildroot%_man1dir/$(basename $i).1 \
$i
fi
done
rm -fr %buildroot%_libdir/libOpenColorIOimageioapphelpers.a

%check
pushd %_cmake__builddir
# currently tests only pass on x86_64
# on other architectures there are precision issues
%ifarch x86_64
ctest
%else
ctest ||:
%endif
popd

%files -n lib%oname%soname
%doc LICENSE THIRD-PARTY.md
%doc CHANGELOG.md CONTRIBUTING.md COMMITTERS.md GOVERNANCE.md PROCESS.md README.md SECURITY.md
%_libdir/*.so.%{soname}
%_libdir/*.so.%{soname}.*

%files -n %oname%soname-tools
%_bindir/ocioarchive
%_bindir/ociobakelut
%_bindir/ociocheck
%_bindir/ociochecklut
%_bindir/ocioconvert
%_bindir/ociodisplay
%_bindir/ociolutimage
%_bindir/ociomakeclf
%_bindir/ocioperf
%_bindir/ociowrite
%_man1dir/*

%files devel
%_includedir/OpenColorIO/
%_libdir/*.so
%_pkgconfigdir/*.pc
%_libdir/cmake/OpenColorIO/

%files -n python3-module-%oname
%python3_sitelibdir/*.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009