change_v1

This commit is contained in:
Ilya Gradina 2016-02-07 14:56:33 +01:00
parent ccd178b52f
commit 5fd9172205

View File

@ -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