change_v1
This commit is contained in:
parent
ccd178b52f
commit
5fd9172205
@ -6,6 +6,7 @@ Summary: An encoding detector library ported from Mozilla
|
|||||||
License: MPLv1.1
|
License: MPLv1.1
|
||||||
URL: https://github.com/BYVoid/%{name}
|
URL: https://github.com/BYVoid/%{name}
|
||||||
Source0: https://github.com/BYVoid/uchardet/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/BYVoid/uchardet/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
ExcludeArch: i686
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -32,7 +33,9 @@ mkdir build
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
pushd build
|
pushd build
|
||||||
%cmake .. -DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
%cmake .. \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||||
|
-DBUILD_STATIC=OFF
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -41,9 +44,6 @@ pushd build
|
|||||||
%make_install
|
%make_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# remove static library
|
|
||||||
rm -f %{buildroot}%{_libdir}/lib%{name}.a
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user