diff --git a/lensfun.spec b/lensfun.spec index a61d119..83a65a6 100644 --- a/lensfun.spec +++ b/lensfun.spec @@ -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 0.3.0-3 +- enable sse only in %%ix86 x86_64, sse2 on x86_64, disable elsewhere + * Mon Nov 17 2014 Rex Dieter - 0.3.0-2 - -DINSTALL_HELPER_SCRIPTS=OFF (with patch) - -DCMAKE_BUILD_TYPE=Release (defaults to Debug otherwise)