update for riscv

(cherry picked from commit f9dbe4bcfacdd939bc5ec6af3fbe9cc6993492c2)
This commit is contained in:
吕晓倩 2022-01-06 07:31:37 +00:00 committed by openeuler-sync-bot
parent 7b2b4147d1
commit cbc663a3b0
2 changed files with 2343 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export LDFLAGS="%{build_ldflags}"
Name: libffado
Version: 2.4.1
Release: 6
Release: 7
Summary: Free firewire audio driver library
License: LGPLv2+ and GPLv2 and GPLv3 and GPLv3+
URL: http://www.ffado.org/
@ -14,6 +14,9 @@ Source1: libffado-snapshot.sh
Patch0: 0001-fix-the-AttributeError-module-posixpath-has-no-attribute-walk.patch
Patch1: 0001-fix-TypeError-must-be-str-or-None-not-bytes.patch
#update config.guess
#from:git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
Patch2: update_config_guess.patch
BuildRequires: alsa-lib-devel dbus-c++-devel dbus-devel python3-dbus desktop-file-utils doxygen gcc-c++ glibmm24-devel
BuildRequires: graphviz libappstream-glib libconfig-devel libiec61883-devel libraw1394-devel libxml++-devel pkgconfig
@ -45,6 +48,11 @@ The libffado-help package conatins manual pages for libffado.
%autosetup -p1
sed -i '/Install/d' tests/{,*/}SConscript
%ifarch riscv64
# Bugs #658052
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5400bbb794231bb0b77f070229af2f3d95632323
sed -i -e 's/^CacheDir/#CacheDir/' SConstruct
%endif
sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py
sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' admin/*.py doc/SConscript tests/python/*.py tests/*.py \
support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript support/tools/*.py support/tools/SConscript
@ -102,6 +110,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/ffado-mi
%{_mandir}/man1/ffado-*.1*
%changelog
* Fri Jan 07 2022 lvxiaoqian <xiaoqian@nj.iscas.ac.cn> - 2.4.1-7
- update for riscv
* Tue Oct 13 2020 maminjie <maminjie1@huawei.com> - 2.4.1-6
- Rebuilt for python3

2331
update_config_guess.patch Normal file

File diff suppressed because it is too large Load Diff