diff --git a/.gitignore b/.gitignore index e69de29..c1ce09b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/alembic-1.8.10.tar.gz diff --git a/alembic.spec b/alembic.spec new file mode 100644 index 0000000..4f9b621 --- /dev/null +++ b/alembic.spec @@ -0,0 +1,97 @@ +# Force out of source build +%undefine __cmake_in_source_build +#%%global prerelease _beta2 +# TODO: +# Python Module + +Name: alembic +Version: 1.8.10 +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 + +BuildRequires: boost-devel +BuildRequires: cmake >= 3.13 +BuildRequires: gcc-c++ +BuildRequires: hdf5-devel +BuildRequires: cmake(Imath) +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}-libs%{?_isa} = %{version}-%{release} +Requires: cmake%{?_isa} +Requires: imath-devel%{?_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 +%autochangelog diff --git a/sources b/sources index e69de29..c42304e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (alembic-1.8.10.tar.gz) = 0be292e9d75560891d38129eb2672c55475b29b33f265dd51396dfa7b530c92ac6dfdb05a4432ad1b6919e2c151068560eb04efb8d9b0c2a14f77ab489d3542c