## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Force out of source build %undefine __cmake_in_source_build #%%global prerelease _beta2 # TODO: # Python Module Name: alembic Version: 1.8.7 Release: %autorelease Summary: Open framework for storing and sharing scene data License: BSD-3-Clause AND BSL-1.0 URL: http://alembic.io/ Source0: https://github.com/%{name}/%{name}/archive/%{version}%{?prerelease}.tar.gz#/%{name}-%{version}%{?prerelease}.tar.gz # Use patch from Gentoo fixing iblmbase root path # https://gitweb.gentoo.org/repo/gentoo.git/tree/media-gfx/alembic/files/alembic-1.7.11-0002-Find-IlmBase-by-setting-a-proper-ILMBASE_ROOT-value.patch?id=953b3b21db55df987dd8006dcdec19e945294d98 Patch0: alembic-1.7.11-0002-Find-IlmBase-by-setting-a-proper-ILMBASE_ROOT-value.patch BuildRequires: boost-devel BuildRequires: cmake >= 3.13 BuildRequires: gcc-c++ BuildRequires: hdf5-devel # Per https://github.com/alembic/alembic/blob/master/README.txt # alembic actually needs ilmbase, not OpenEXR. # As of OpenEXR 3.x Imath is now a standalone library. %if 0%{?fedora} > 34 BuildRequires: cmake(Imath) %else BuildRequires: pkgconfig(IlmBase) %endif BuildRequires: pkgconfig(zlib) %description Alembic is an open computer graphics interchange framework. Alembic distills complex, animated scenes into a non-procedural, application-independent set of baked geometric results. This 'distillation' of scenes into baked geometry is exactly analogous to the distillation of lighting and rendering scenes into rendered image data. %package libs Summary: Core Alembic libraries %description libs Alembic is an open computer graphics interchange framework. Alembic distills complex, animated scenes into a non-procedural, application-independent set of baked geometric results. This 'distillation' of scenes into baked geometry is exactly analogous to the distillation of lighting and rendering scenes into rendered image data. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake%{?_isa} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 -n %{name}-%{version}%{?prerelease} sed -i -e 's/ConfigPackageLocation lib/ConfigPackageLocation %{_lib}/g' \ lib/Alembic/CMakeLists.txt iconv -f iso8859-1 -t utf-8 ACKNOWLEDGEMENTS.txt > ACKNOWLEDGEMENTS.txt.conv && \ mv -f ACKNOWLEDGEMENTS.txt.conv ACKNOWLEDGEMENTS.txt %build export CXXFLAGS="%{optflags} -Wl,--as-needed" %cmake %{?_cmake_skip_rpath} \ -DALEMBIC_LIB_INSTALL_DIR=%{_libdir} \ -DALEMBIC_SHARED_LIBS=ON \ -DCMAKE_CXX_STANDARD=17 \ -DUSE_BINARIES=ON \ -DUSE_HDF5=ON \ -DUSE_EXAMPLES=ON \ -DUSE_PYALEMBIC=OFF \ -DUSE_STATIC_BOOST=OFF \ -DUSE_STATIC_HDF5=OFF \ -DUSE_TESTS=ON %cmake_build %install %cmake_install %files %{_bindir}/abcconvert %{_bindir}/abcdiff %{_bindir}/abcecho %{_bindir}/abcechobounds %{_bindir}/abcls %{_bindir}/abcstitcher %{_bindir}/abctree %files libs %license LICENSE.txt %doc ACKNOWLEDGEMENTS.txt FEEDBACK.txt NEWS.txt README.txt %{_libdir}/libAlembic.so.* %files devel %{_includedir}/Alembic %{_libdir}/cmake/Alembic %{_libdir}/libAlembic.so %changelog ## START: Generated by rpmautospec * Mon Oct 07 2024 Luya Tshimbalanga - 1.8.7-1 - Update to 1.8.7 (rhbz#2316914) * Wed Jul 17 2024 Fedora Release Engineering - 1.8.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 18 2024 Luya Tshimbalanga - 1.8.6-1 - Update to 1.8.6 (rhbz#2178169) * Mon Jan 22 2024 Fedora Release Engineering - 1.8.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.8.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Mar 14 2023 Luya Tshimbalanga - 1.8.5-1 - Update to 1.8.5 (#2178169) * Wed Jan 18 2023 Fedora Release Engineering - 1.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering 1.8.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering 1.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 21 2021 Orion Poplawski 1.8.3-2 - Rebuild for hdf5 1.12.1 * Sun Sep 12 2021 Luya Tshimbalanga 1.8.3-1 - Update to 1.8.3 * Sat Aug 21 2021 Richard Shaw 1.8.2-6 - Rebuild for OpenEXR/Imath 3.1. * Tue Aug 10 2021 Orion Poplawski 1.8.2-5 - Rebuild for hdf5 1.10.7 * Wed Jul 21 2021 Fedora Release Engineering 1.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering 1.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild ## END: Generated by rpmautospec