Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5a73978c0b
!7 update config.guess and config.sub for loongarch64
From: @zhangwenlong01 
Reviewed-by: @liangkeming 
Signed-off-by: @liangkeming
2023-03-17 09:30:27 +00:00
Wenlong Zhang
9dd91cf099 update config.guess and config.sub for loongarch64
Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
2023-03-16 21:17:02 +08:00
openeuler-ci-bot
ccce8ec5dc
!5 update for riscv
From: @lvxiaoqian 
Reviewed-by: @jianminw 
Signed-off-by: @jianminw
2022-12-14 01:29:12 +00:00
吕晓倩
f9dbe4bcfa update for riscv 2022-01-12 17:43:18 +08:00
openeuler-ci-bot
7b2b4147d1 !4 Rebuilt for python3
From: @maminjie
Reviewed-by: 
Signed-off-by:
2020-10-27 15:26:25 +08:00
maminjie
3b8788bbd9 Rebuilt for python3 2020-10-26 09:43:15 +08:00
openeuler-ci-bot
369d7ecfde !2 Architecture select
Merge pull request !2 from 严志华/master
2019-12-28 11:55:46 +08:00
yanzh_h
da42bb84d5 Architecture select 2019-12-28 11:35:38 +08:00
openeuler-ci-bot
691262355f !1 init libffado
Merge pull request !1 from putao66/master
2019-12-04 19:31:56 +08:00
putao66
d0f4902f9d init 2019-12-04 17:47:07 +08:00
9 changed files with 2566 additions and 75 deletions

View File

@ -0,0 +1,27 @@
From 63dec85b326c8b0adde5b811e668117f236fc14c Mon Sep 17 00:00:00 2001
From: maminjie <maminjie1@huawei.com>
Date: Mon, 26 Oct 2020 09:11:24 +0800
Subject: [PATCH] fix TypeError: must be str or None, not bytes
---
SConstruct | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/SConstruct b/SConstruct
index 1468913..9b811cc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -719,8 +719,8 @@ def is_userspace_32bit(cpuinfo):
# /bin/mount: file format elf64-x86-64
# or like this:
# /bin/mount: file format elf32-powerpc
- for line in x.split(b'\n'):
- line = line.strip().decode()
+ for line in x.split('\n'):
+ line = line.strip()
if line.startswith(real_exe):
x, fmt = line.rsplit(None, 1)
answer = 'elf32' in fmt
--
2.23.0

View File

@ -0,0 +1,41 @@
From a94776b22f0a50116c8c017a08e2a6e9646fd4f5 Mon Sep 17 00:00:00 2001
From: maminjie <maminjie1@huawei.com>
Date: Tue, 13 Oct 2020 20:15:41 +0800
Subject: [PATCH] fix the AttributeError: module 'posixpath' has no attribute
'walk'
---
support/mixer-qt4/SConscript | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/support/mixer-qt4/SConscript b/support/mixer-qt4/SConscript
index 1d57984..eebb8ca 100644
--- a/support/mixer-qt4/SConscript
+++ b/support/mixer-qt4/SConscript
@@ -28,17 +28,13 @@ Import( 'env' )
if env['BUILD_MIXER'] == 'true':
e = env.Clone()
-
- def findfiles( arg, dirname, names ):
- for name in names:
- if name.startswith("."):
- names.remove(name)
- for name in names:
- if '.pyc' not in name and '.in' not in name:
- arg.append( os.path.join( dirname, name ) )
-
+
pythonfiles = [ 'ffado/config.py' ]
- os.path.walk( "ffado", findfiles, pythonfiles )
+ for root, dirs, files in os.walk( "ffado" ):
+ for name in files:
+ if name.endswith( '.pyc' ) or '.in' in name or name.startswith("."):
+ continue
+ pythonfiles.append( os.path.join( root, name ) )
e.ScanReplace( "ffado/config.py.in" )
e.Depends( "ffado/config.py", "#/SConstruct" )
--
2.23.0

View File

@ -1,36 +0,0 @@
# libffado
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# libffado
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

6
_constraints Normal file
View File

@ -0,0 +1,6 @@
<constraints>
<linux><version>
<min>4.0</min>
</version></linux>
</constraints>

BIN
libffado-2.4.1.tgz Normal file

Binary file not shown.

34
libffado-snapshot.sh Normal file
View File

@ -0,0 +1,34 @@
#!/bin/bash
# $1 - revision number to checkout.
: ${1?"You must either provide desired revision number \"X\" to checkout: `basename $0` X
or fetch the latest revision by: `basename $0` HEAD"}
set -e
tmp=$(mktemp -d)
trap cleanup EXIT
cleanup() {
set +e
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
}
unset CDPATH
unset GREP_OPTIONS
pwd=$(pwd)
name=libffado
version=2.1.0
revision=$1
pushd "$tmp" >/dev/null
echo "Fetching SVN revision: $1"
svn export -r$revision http://subversion.ffado.org/ffado/trunk/$name $name-$version |tee $name.stdout
revision=$(cat $name.stdout|grep "Exported revision"|sed 's|[^0-9]*||g')
echo "Fetched SVN revision: $revision"
rm -f $name.stdout
tar jcf "$pwd"/$name-$version-svn$revision.tar.bz2 $name-$version
echo "Written: $name-$version-svn$revision.tar.bz2"
popd >/dev/null

127
libffado.spec Normal file
View File

@ -0,0 +1,127 @@
%global _export_PLAGS \
export CFLAGS="%{optflags} -ffast-math" \
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11" \
export LDFLAGS="%{build_ldflags}"
Name: libffado
Version: 2.4.1
Release: 8
Summary: Free firewire audio driver library
License: LGPLv2+ and GPLv2 and GPLv3 and GPLv3+
URL: http://www.ffado.org/
Source0: http://www.ffado.org/files/%{name}-%{version}.tgz
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
BuildRequires: python3-qt5-devel python3-devel python3-enum34 python3-scons subversion
Requires: udev dbus python3-dbus python3-qt5
Provides: ffado = %{version}-%{release}
Obsoletes: ffado < %{version}-%{release}
%description
The FFADO project aims to provide a universal open source solution for Linux-based FireWire-based audio device support.
It is the successor to the FreeBoB project.
%package devel
Summary: Free firewire audio driver library development headers
License: GPLv2 and GPLv3
Requires: %{name} = %{version}-%{release}
%description devel
The libffado-devel package conatins development files to build applications for libffado.
%package help
Summary: Help documents for libffado
%description help
The libffado-help package conatins manual pages for libffado.
%prep
%autosetup -p1
%ifarch loongarch64
%_update_config_guess
%_update_config_sub
%endif
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
%build
%{_export_PLAGS}
scons-3 %{?_smp_mflags} \
ENABLE_SETBUFFERSIZE_API_VER=True ENABLE_OPTIMIZATIONS=True CUSTOM_ENV=True BUILD_DOC=user \
PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} UDEVDIR=%{_prefix}/lib/udev/rules.d/ \
PYPKGDIR=%{python3_sitelib}/ffado/ PYTHON_INTERPRETER=/usr/bin/python3 BUILD_TESTS=1
%install
%{_export_PLAGS}
scons-3 DESTDIR=%{buildroot} install
install -d %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications --add-category="Settings" --set-icon=ffado support/xdg/ffado.org-ffadomixer.desktop
install -d %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
ln -s ../../../../libffado/icons/hi64-apps-ffado.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png
install -m 755 tests/ffado-test %{buildroot}%{_bindir}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/ffado.org-ffadomixer.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml
%files
%doc LICENSE.*
%dir %{_datadir}/libffado/
%{_bindir}/*
%{_libdir}/libffado.so.*
%{_libdir}/libffado/static_info.txt
%{_datadir}/libffado/*
%{_prefix}/lib/udev/rules.d/*
%{_datadir}/dbus-1/services/org.ffado.Control.service
%{_datadir}/applications/ffado.org-ffadomixer.desktop
%{_datadir}/icons/hicolor/64x64/apps/ffado.png
%{_datadir}/metainfo/ffado-mixer.appdata.xml
%{python3_sitelib}/ffado/
%files devel
%doc doc/reference/html/
%{_includedir}/libffado/
%{_libdir}/pkgconfig/libffado.pc
%{_libdir}/libffado.so
%files help
%doc AUTHORS ChangeLog README
%{_mandir}/man1/ffado-*.1*
%changelog
* Thu Mar 16 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 2.4.1-8
- update config.guess and config.sub for loongarch64
* 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
* Tue Dec 03 2019 liujing<liujing144@huawei.com> - 2.4.1-5
- Package init

2331
update_config_guess.patch Normal file

File diff suppressed because it is too large Load Diff