enable sse only in %ix86 x86_64, sse2 on x86_64, disable elsewhere

This commit is contained in:
Rex Dieter 2014-11-17 11:49:38 -06:00
parent 700d1ec69d
commit b35aa81f35

View File

@ -1,12 +1,17 @@
%ifarch %{ix86}
%global sse -DBUILD_FOR_SSE:BOOL=OFF
%global sse2 -DBUILD_FOR_SSE2:BOOL=OFF
%ifarch %{ix86} x86_64
%global sse -DBUILD_FOR_SSE:BOOL=ON
%endif
%ifarch x86_64
%global sse2 -DBUILD_FOR_SSE2:BOOL=ON
%endif
Name: lensfun
Version: 0.3.0
Summary: Library to rectify defects introduced by photographic lenses
Release: 2%{?dist}
Release: 3%{?dist}
License: LGPLv3 and CC-BY-SA
URL: http://lensfun.sourceforge.net/
@ -56,7 +61,7 @@ pushd %{_target_platform}
-DBUILD_TESTS:BOOL=OFF \
-DCMAKE_BUILD_TYPE=STRING=Release \
-DINSTALL_HELPER_SCRIPTS:BOOL=OFF \
%{?sse2}
%{?sse} %{?sse2}
popd
make %{?_smp_mflags} -C %{_target_platform}
@ -89,6 +94,9 @@ rm -rfv %{buildroot}%{_docdir}/%{name}-%{version}*
%changelog
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> 0.3.0-3
- enable sse only in %%ix86 x86_64, sse2 on x86_64, disable elsewhere
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.3.0-2
- -DINSTALL_HELPER_SCRIPTS=OFF (with patch)
- -DCMAKE_BUILD_TYPE=Release (defaults to Debug otherwise)