diff --git a/uchardet.spec b/uchardet.spec index b973900..dc7db03 100644 --- a/uchardet.spec +++ b/uchardet.spec @@ -6,6 +6,7 @@ Summary: An encoding detector library ported from Mozilla License: MPLv1.1 URL: https://github.com/BYVoid/%{name} Source0: https://github.com/BYVoid/uchardet/archive/v%{version}/%{name}-%{version}.tar.gz +ExcludeArch: i686 BuildRequires: gcc BuildRequires: gcc-c++ @@ -32,7 +33,9 @@ mkdir build %build pushd build - %cmake .. -DCMAKE_INSTALL_LIBDIR=%{_libdir} + %cmake .. \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ + -DBUILD_STATIC=OFF %make_build popd @@ -41,9 +44,6 @@ pushd build %make_install popd -# remove static library -rm -f %{buildroot}%{_libdir}/lib%{name}.a - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig