!11 Modify --with-distro to compatible with each os

From: @cherry530 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
This commit is contained in:
openeuler-ci-bot 2022-11-17 10:55:53 +00:00 committed by Gitee
commit e54e35f935
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: sox
Version: 14.4.2.0
Release: 27
Release: 28
Summary: A general purpose sound file conversion tool
License: GPLv2+ and LGPLv2+ and MIT
URL: http://sox.sourceforge.net/
@ -50,7 +50,7 @@ cp ${RPM_SOURCE_DIR}/binpatch.py binpatch.py
%build
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
%configure --without-lpc10 --with-gsm --includedir=%{_includedir}/sox \
--disable-static --with-distro=openEuler --with-dyn-default
--disable-static --with-distro=%{_vendor} --with-dyn-default
make V=1 %{?_smp_mflags}
%install
@ -115,6 +115,9 @@ mv $libsox_so.orig $libsox_so
%{_mandir}/man3/*
%changelog
* Thu Nov 17 2022 xu_ping <xuping33@h-partners.com> - 14.4.2.0-28
- Modify --with-distro
* Fri Apr 3 2020 duyeyu <duyeyu@huawei.com> - 14.4.2.0-27
- Modify configure parameters