|
|
a301c00 |
Name: embree
|
|
|
a301c00 |
Version: 2.10.0
|
|
|
32fa1c6 |
Release: 7%{?dist}
|
|
|
a301c00 |
Summary: Collection of high-performance ray tracing kernels developed at Intel
|
|
|
a301c00 |
License: ASL 2.0
|
|
|
a301c00 |
URL: https://embree.github.io
|
|
|
a301c00 |
Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
a301c00 |
|
|
|
a301c00 |
BuildRequires: gcc-c++
|
|
|
a301c00 |
BuildRequires: cmake
|
|
|
a301c00 |
BuildRequires: make
|
|
|
a301c00 |
BuildRequires: ispc
|
|
|
a301c00 |
BuildRequires: freeglut-devel
|
|
|
a301c00 |
BuildRequires: ImageMagick-c++-devel
|
|
|
a301c00 |
BuildRequires: libXmu-devel,libXi-devel
|
|
|
a301c00 |
BuildRequires: tbb-devel
|
|
|
32fa1c6 |
# Use 64bit architectures because of SSE2 and up
|
|
|
32fa1c6 |
ExclusiveArch: x86_64
|
|
|
a301c00 |
|
|
|
a301c00 |
%description
|
|
|
a301c00 |
A collection of high-performance ray tracing kernels intended to graphics
|
|
|
a301c00 |
application engineers that want to improve the performance of their application.
|
|
|
a301c00 |
|
|
|
a301c00 |
%package devel
|
|
|
a301c00 |
Summary: Development files for %{name}
|
|
|
a301c00 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a301c00 |
|
|
|
a301c00 |
%description devel
|
|
|
a301c00 |
The %{name}-devel package contains libraries and header files for
|
|
|
a301c00 |
applications that use %{name}.
|
|
|
a301c00 |
|
|
|
a301c00 |
%package examples
|
|
|
a301c00 |
Summary: Example of application using %{name}
|
|
|
a301c00 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a301c00 |
|
|
|
a301c00 |
%description examples
|
|
|
a301c00 |
The %{name}-examples package contains sample binaries using %{name}.
|
|
|
a301c00 |
|
|
|
a301c00 |
%prep
|
|
|
a301c00 |
%autosetup
|
|
|
a301c00 |
|
|
|
a301c00 |
mkdir %{_target_platform}
|
|
|
a301c00 |
sed -r -i.bak 's/#include <math.h>/#include <cmath>/' common/math/constants.h
|
|
|
a301c00 |
sed -r -i.bak '/__forceinline float (abs|floor|ceil)/d' common/math/math.h
|
|
|
a301c00 |
|
|
|
a301c00 |
%build
|
|
|
a301c00 |
pushd %{_target_platform}
|
|
|
a301c00 |
CXXFLAGS='%{optflags} -Wno-all' %cmake ..
|
|
|
a301c00 |
popd
|
|
|
a301c00 |
%make_build -C %{_target_platform}
|
|
|
a301c00 |
|
|
|
a301c00 |
%install
|
|
|
a301c00 |
%make_install -C %{_target_platform}
|
|
|
a301c00 |
# Related binary examples
|
|
|
a301c00 |
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
a301c00 |
mv %{buildroot}%{_bindir}/%{name}2/* %{buildroot}%{_libexecdir}/%{name}/
|
|
|
a301c00 |
|
|
|
a301c00 |
# Relocate doc files
|
|
|
a301c00 |
mv %{buildroot}%{_docdir}/%{name}2 %{buildroot}%{_docdir}/%{name}
|
|
|
a301c00 |
rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt
|
|
|
a301c00 |
|
|
|
a301c00 |
%check
|
|
|
a301c00 |
ctest -V %{?_smp_mflags}
|
|
|
a301c00 |
|
|
|
a301c00 |
%post -p /sbin/ldconfig
|
|
|
a301c00 |
|
|
|
a301c00 |
%postun -p /sbin/ldconfig
|
|
|
a301c00 |
|
|
|
a301c00 |
|
|
|
a301c00 |
%files
|
|
|
a301c00 |
%license LICENSE.txt
|
|
|
a301c00 |
%doc README.md CHANGELOG.md readme.pdf
|
|
|
a301c00 |
%{_libdir}/libembree.so.2
|
|
|
a301c00 |
%{_libdir}/libembree.so.2.*
|
|
|
a301c00 |
|
|
|
a301c00 |
%files devel
|
|
|
a301c00 |
%{_libdir}/libembree.so
|
|
|
a301c00 |
%{_includedir}/%{name}2/
|
|
|
a301c00 |
%{_libdir}/cmake/%{name}-%{version}/
|
|
|
a301c00 |
|
|
|
a301c00 |
%files examples
|
|
|
a301c00 |
%{_libexecdir}/%{name}/
|
|
|
a301c00 |
|
|
|
a301c00 |
|
|
|
a301c00 |
%changelog
|
|
|
32fa1c6 |
* Thu Aug 25 2016 Luya Tshimbalanga <luya@fedoraproject.org> 2.10.0-7
|
|
|
32fa1c6 |
- Used ExclusiveArch for 64bit Architecture
|
|
|
32fa1c6 |
|
|
|
a301c00 |
* Sun Aug 21 2016 Luya Tshimbalanga <luya@fedoraproject.org> 2.10.0-6
|
|
|
a301c00 |
- Located flags before cmake
|
|
|
a301c00 |
- Used libexecdir for subpackages examples
|
|
|
a301c00 |
- Pleased rpmlint
|
|
|
a301c00 |
- Added examples subpackages
|
|
|
a301c00 |
|
|
|
a301c00 |
* Sat Aug 20 2016 Luya Tshimbalanga <luya@fedoraproject.org> 2.10.0-5
|
|
|
a301c00 |
- Silenced all warning message in build
|
|
|
a301c00 |
- Added %%check line
|
|
|
a301c00 |
- Added examples subpackages
|
|
|
a301c00 |
|
|
|
a301c00 |
* Sat Aug 20 2016 Luya Tshimbalanga <luya@fedoraproject.org> 2.10.0-4
|
|
|
a301c00 |
- Added ispc dependency
|
|
|
a301c00 |
- Removed ExclusiveArch
|
|
|
a301c00 |
- Enabled ispc and tutorials
|
|
|
a301c00 |
|
|
|
a301c00 |
* Fri Aug 12 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 2.10.0-3
|
|
|
a301c00 |
- Use ExclusiveArch tag for 64 bits architectures
|
|
|
a301c00 |
- Adjust the lines of descriptions
|
|
|
a301c00 |
- Fix bin path
|
|
|
a301c00 |
- Add freeglut dependency from upstream
|
|
|
a301c00 |
|
|
|
a301c00 |
* Sat Aug 6 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 2.10.0-2
|
|
|
a301c00 |
- Fixed mixed use space and tabs errors
|
|
|
a301c00 |
- Shorten the line of description
|
|
|
a301c00 |
- Exclude i686 architecture
|
|
|
a301c00 |
|
|
|
a301c00 |
* Thu Aug 4 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 2.10.0-1
|
|
|
a301c00 |
- Initial build
|