Группа :: Видео
Пакет: aqsis
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Video
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: /usr/bin/desktop-file-install /usr/bin/swig boost-devel boost-filesystem-devel boost-program_options-devel boost-wave-devel gcc-c++ ilmbase-devel libGLU-devel libglvnd-devel python3-devel rpm-build-python3 swig
# END SourceDeps(oneline)
%define fedora 34
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# force out-of-tree build for spec compatibility with older releases
%undefine __cmake_in_source_build
Name: aqsis
Version: 1.8.2
Release: alt4_46
Summary: Open source 3D rendering solution adhering to the RenderMan standard
License: GPLv2+ and LGPLv2+
URL: http://www.aqsis.org
Source0: http://downloads.sourceforge.net/aqsis/aqsis-%{version}.tar.gz
# fix build against ilmbase-2.x, kudos to arch linux
Patch1: imfinputfile-forward-declaration.diff
# Work-around boost-1.59 having dropped
# dropped boost/serialization/pfto.hpp
# and BOOST_MAKE_PFTO_WRAPPER
Patch2: aqsis-1.8.2-boost-1.59.patch
# Fix code to be C++11 compatible
# https://sourceforge.net/p/aqsis/bugs/433/
Patch3: aqsis-1.8.2-gcc6.patch
Patch4: aqsis-1.8.2-shared_ptr.patch
Patch5: aqsis-gcc11.patch
BuildRequires: desktop-file-utils
BuildRequires: bison >= 1.35.0
BuildRequires: boost-complete >= 1.34.0
BuildRequires: ctest cmake
BuildRequires: doxygen
BuildRequires: flex >= 2.5.4
BuildRequires: libfltk-devel >= 1.1.0, libfltk-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel libtiffxx-devel
BuildRequires: libpng-devel
BuildRequires: libxslt xsltproc
BuildRequires: libqt4-declarative libqt4-devel libqt4-help qt4-designer qt4-doc-html qt5-declarative-devel qt5-designer qt5-tools
#BuildRequires: tinyxml-devel
# As of OpenEXR 3 upstream has significantly reorganized the libraries
# including splitting out imath as a standalone library (which this project may
# or may not need). Please see
# https://github.com/AcademySoftwareFoundation/Imath/blob/master/docs/PortingGuide2-3.md
# for porting details and encourage upstream to support it. For now a 2.x
# compat package is provided.
# FTR, it looks like imath-devel will be required...
%if 0%{?fedora} > 34
BuildRequires: cmake(OpenEXR) < 3
#BuildRequires: cmake(Imath)
%else
BuildRequires: openexr-devel
%endif
BuildRequires: python3-module-sphinx python3-module-sphinx-sphinx-build-symlink
BuildRequires: zlib-devel >= 1.1.4
Requires: libqt4-core libqt4-dbus libqt4-network libqt4-script libqt4-sql libqt4-sql-sqlite libqt4-test libqt4-xml libqt4-xmlpatterns qt4-common qt5-dbus
Requires: aqsis-core = %{version}-%{release}
Requires: aqsis-data = %{version}-%{release}
Source44: import.info
# TODO: fix build on armh
ExcludeArch: armh
%description
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains graphical utilities and desktop integration.
%package core
Group: Video
Requires: %{name}-libs = %{version}-%{release}
Summary: Command-line tools for Aqsis Renderer
%description core
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains a command-line renderer, a shader compiler
for shaders written using the RenderMan shading language, a texture
pre-processor for optimizing textures and a RIB processor.
%package libs
Group: System/Libraries
Summary: Library files for Aqsis Renderer
%description libs
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains the shared libraries for Aqsis Renderer.
%package data
Group: Video
#Requires: %{name} = %{version}-%{release}
Summary: Example content for Aqsis Renderer
BuildArch: noarch
AutoReqProv: no
%description data
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains example content, including additional
scenes, procedurals and shaders.
%package devel
Group: Development/Other
Requires: %{name} = %{version}-%{release}
Requires: aqsis-core = %{version}-%{release}
Requires: aqsis-libs = %{version}-%{release}
Requires: aqsis-data = %{version}-%{release}
Summary: Development files for Aqsis Renderer
%description devel
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains various developer libraries to enable
integration with third-party applications.
%prep
%setup -q
%patch1 -p1 -b imfinputfile-forward-declaration
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
## Do not Enable pdiff=yes Because it will conflict with Printdiff :
## /usr/bin/pdiff from package a2ps
%{fedora_v2_cmake} \
-DSYSCONFDIR:STRING=%{_sysconfdir}/%{name} \
-DAQSIS_MAIN_CONFIG_NAME=aqsisrc-%{_lib} \
-DLIBDIR=%{_lib} \
-DPLUGINDIR=%{_lib}/%{name} \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DAQSIS_USE_RPATH:BOOL=OFF \
-DAQSIS_BOOST_FILESYSTEM_LIBRARY_NAME=boost_filesystem-mt \
-DAQSIS_BOOST_REGEX_LIBRARY_NAME=boost_regex-mt \
-DAQSIS_BOOST_THREAD_LIBRARY_NAME=boost_thread-mt \
-DAQSIS_BOOST_WAVE_LIBRARY_NAME=boost_wave-mt \
-DAQSIS_ENABLE_THREADING:BOOL=ON \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DBOOST_FILESYSTEM_VERSION=3 -pthread" \
-DAQSIS_USE_EXTERNAL_TINYXML:BOOL=OFF
%fedora_v2_cmake_build
%install
%fedora_v2_cmake_install
# Move aqsisrc
mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/aqsisrc \
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/aqsisrc-%{_lib}
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsis.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsl.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsltell.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/eqsl.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/piqsl.desktop
%files
%doc AUTHORS README
%doc --no-dereference COPYING
%{_bindir}/eqsl
%{_bindir}/piqsl
%{_bindir}/ptview
# Do not use the name pdiff for PerceptualDiff
# It is used by PrintDiff in a2ps
#_bindir/pdiff
%{_datadir}/applications/aqsis.desktop
%{_datadir}/applications/aqsl.desktop
%{_datadir}/applications/aqsltell.desktop
%{_datadir}/applications/eqsl.desktop
%{_datadir}/applications/piqsl.desktop
%{_datadir}/pixmaps/aqsis.png
%{_datadir}/icons/hicolor/192x192/mimetypes/aqsis-doc.png
%{_datadir}/mime/packages/aqsis.xml
%files core
%{_bindir}/aqsis
%{_bindir}/aqsl
%{_bindir}/aqsltell
%{_bindir}/miqser
%{_bindir}/teqser
%files libs
%dir %{_sysconfdir}/%{name}
## Do not use noreplace with aqsis release
## This may definitly change in future releases.
%config %{_sysconfdir}/%{name}/aqsisrc-%{_lib}
%{_libdir}/%{name}/
# Licensed under GPLv2+
%{_libdir}/libaqsis_*.so.*
# Licensed under LGPLv2+
#_libdir/libaqsis_ri2rib.so.*
%files devel
%{_includedir}/%{name}/
# Licensed under GPLv2+
%{_libdir}/libaqsis_*.so
# Licensed under LGPLv2+
#_libdir/libaqsis_ri2rib.so
%files data
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/examples/
%{_datadir}/%{name}/plugins/
%{_datadir}/%{name}/scripts/
%{_datadir}/%{name}/shaders/
%changelog
…
Полный changelog можно просмотреть здесь
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-cmake rpm-macros-fedora-compat
BuildRequires: /usr/bin/desktop-file-install /usr/bin/swig boost-devel boost-filesystem-devel boost-program_options-devel boost-wave-devel gcc-c++ ilmbase-devel libGLU-devel libglvnd-devel python3-devel rpm-build-python3 swig
# END SourceDeps(oneline)
%define fedora 34
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# force out-of-tree build for spec compatibility with older releases
%undefine __cmake_in_source_build
Name: aqsis
Version: 1.8.2
Release: alt4_46
Summary: Open source 3D rendering solution adhering to the RenderMan standard
License: GPLv2+ and LGPLv2+
URL: http://www.aqsis.org
Source0: http://downloads.sourceforge.net/aqsis/aqsis-%{version}.tar.gz
# fix build against ilmbase-2.x, kudos to arch linux
Patch1: imfinputfile-forward-declaration.diff
# Work-around boost-1.59 having dropped
# dropped boost/serialization/pfto.hpp
# and BOOST_MAKE_PFTO_WRAPPER
Patch2: aqsis-1.8.2-boost-1.59.patch
# Fix code to be C++11 compatible
# https://sourceforge.net/p/aqsis/bugs/433/
Patch3: aqsis-1.8.2-gcc6.patch
Patch4: aqsis-1.8.2-shared_ptr.patch
Patch5: aqsis-gcc11.patch
BuildRequires: desktop-file-utils
BuildRequires: bison >= 1.35.0
BuildRequires: boost-complete >= 1.34.0
BuildRequires: ctest cmake
BuildRequires: doxygen
BuildRequires: flex >= 2.5.4
BuildRequires: libfltk-devel >= 1.1.0, libfltk-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel libtiffxx-devel
BuildRequires: libpng-devel
BuildRequires: libxslt xsltproc
BuildRequires: libqt4-declarative libqt4-devel libqt4-help qt4-designer qt4-doc-html qt5-declarative-devel qt5-designer qt5-tools
#BuildRequires: tinyxml-devel
# As of OpenEXR 3 upstream has significantly reorganized the libraries
# including splitting out imath as a standalone library (which this project may
# or may not need). Please see
# https://github.com/AcademySoftwareFoundation/Imath/blob/master/docs/PortingGuide2-3.md
# for porting details and encourage upstream to support it. For now a 2.x
# compat package is provided.
# FTR, it looks like imath-devel will be required...
%if 0%{?fedora} > 34
BuildRequires: cmake(OpenEXR) < 3
#BuildRequires: cmake(Imath)
%else
BuildRequires: openexr-devel
%endif
BuildRequires: python3-module-sphinx python3-module-sphinx-sphinx-build-symlink
BuildRequires: zlib-devel >= 1.1.4
Requires: libqt4-core libqt4-dbus libqt4-network libqt4-script libqt4-sql libqt4-sql-sqlite libqt4-test libqt4-xml libqt4-xmlpatterns qt4-common qt5-dbus
Requires: aqsis-core = %{version}-%{release}
Requires: aqsis-data = %{version}-%{release}
Source44: import.info
# TODO: fix build on armh
ExcludeArch: armh
%description
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains graphical utilities and desktop integration.
%package core
Group: Video
Requires: %{name}-libs = %{version}-%{release}
Summary: Command-line tools for Aqsis Renderer
%description core
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains a command-line renderer, a shader compiler
for shaders written using the RenderMan shading language, a texture
pre-processor for optimizing textures and a RIB processor.
%package libs
Group: System/Libraries
Summary: Library files for Aqsis Renderer
%description libs
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains the shared libraries for Aqsis Renderer.
%package data
Group: Video
#Requires: %{name} = %{version}-%{release}
Summary: Example content for Aqsis Renderer
BuildArch: noarch
AutoReqProv: no
%description data
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains example content, including additional
scenes, procedurals and shaders.
%package devel
Group: Development/Other
Requires: %{name} = %{version}-%{release}
Requires: aqsis-core = %{version}-%{release}
Requires: aqsis-libs = %{version}-%{release}
Requires: aqsis-data = %{version}-%{release}
Summary: Development files for Aqsis Renderer
%description devel
Aqsis is a cross-platform photo-realistic 3D rendering solution,
adhering to the RenderMan interface standard defined by Pixar
Animation Studios.
This package contains various developer libraries to enable
integration with third-party applications.
%prep
%setup -q
%patch1 -p1 -b imfinputfile-forward-declaration
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
## Do not Enable pdiff=yes Because it will conflict with Printdiff :
## /usr/bin/pdiff from package a2ps
%{fedora_v2_cmake} \
-DSYSCONFDIR:STRING=%{_sysconfdir}/%{name} \
-DAQSIS_MAIN_CONFIG_NAME=aqsisrc-%{_lib} \
-DLIBDIR=%{_lib} \
-DPLUGINDIR=%{_lib}/%{name} \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DAQSIS_USE_RPATH:BOOL=OFF \
-DAQSIS_BOOST_FILESYSTEM_LIBRARY_NAME=boost_filesystem-mt \
-DAQSIS_BOOST_REGEX_LIBRARY_NAME=boost_regex-mt \
-DAQSIS_BOOST_THREAD_LIBRARY_NAME=boost_thread-mt \
-DAQSIS_BOOST_WAVE_LIBRARY_NAME=boost_wave-mt \
-DAQSIS_ENABLE_THREADING:BOOL=ON \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DBOOST_FILESYSTEM_VERSION=3 -pthread" \
-DAQSIS_USE_EXTERNAL_TINYXML:BOOL=OFF
%fedora_v2_cmake_build
%install
%fedora_v2_cmake_install
# Move aqsisrc
mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/aqsisrc \
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/aqsisrc-%{_lib}
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsis.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsl.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/aqsltell.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/eqsl.desktop
desktop-file-install --vendor "" --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/piqsl.desktop
%files
%doc AUTHORS README
%doc --no-dereference COPYING
%{_bindir}/eqsl
%{_bindir}/piqsl
%{_bindir}/ptview
# Do not use the name pdiff for PerceptualDiff
# It is used by PrintDiff in a2ps
#_bindir/pdiff
%{_datadir}/applications/aqsis.desktop
%{_datadir}/applications/aqsl.desktop
%{_datadir}/applications/aqsltell.desktop
%{_datadir}/applications/eqsl.desktop
%{_datadir}/applications/piqsl.desktop
%{_datadir}/pixmaps/aqsis.png
%{_datadir}/icons/hicolor/192x192/mimetypes/aqsis-doc.png
%{_datadir}/mime/packages/aqsis.xml
%files core
%{_bindir}/aqsis
%{_bindir}/aqsl
%{_bindir}/aqsltell
%{_bindir}/miqser
%{_bindir}/teqser
%files libs
%dir %{_sysconfdir}/%{name}
## Do not use noreplace with aqsis release
## This may definitly change in future releases.
%config %{_sysconfdir}/%{name}/aqsisrc-%{_lib}
%{_libdir}/%{name}/
# Licensed under GPLv2+
%{_libdir}/libaqsis_*.so.*
# Licensed under LGPLv2+
#_libdir/libaqsis_ri2rib.so.*
%files devel
%{_includedir}/%{name}/
# Licensed under GPLv2+
%{_libdir}/libaqsis_*.so
# Licensed under LGPLv2+
#_libdir/libaqsis_ri2rib.so
%files data
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/examples/
%{_datadir}/%{name}/plugins/
%{_datadir}/%{name}/scripts/
%{_datadir}/%{name}/shaders/
%changelog
…
Полный changelog можно просмотреть здесь