commit
691262355f
36
README.en.md
36
README.en.md
@ -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/)
|
||||
39
README.md
39
README.md
@ -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/)
|
||||
BIN
libffado-2.4.1.tgz
Normal file
BIN
libffado-2.4.1.tgz
Normal file
Binary file not shown.
34
libffado-snapshot.sh
Normal file
34
libffado-snapshot.sh
Normal 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
|
||||
103
libffado.spec
Normal file
103
libffado.spec
Normal file
@ -0,0 +1,103 @@
|
||||
%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: 5
|
||||
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
|
||||
|
||||
BuildRequires: alsa-lib-devel dbus-c++-devel dbus-devel python2-dbus desktop-file-utils doxygen gcc-c++ glibmm24-devel
|
||||
BuildRequires: graphviz libappstream-glib libconfig-devel libiec61883-devel libraw1394-devel libxml++-devel pkgconfig
|
||||
BuildRequires: python2-PyQt5-devel python2-devel python2-enum34 python2-scons subversion
|
||||
Requires: udev dbus python2-dbus python2-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
|
||||
|
||||
sed -i '/Install/d' tests/{,*/}SConscript
|
||||
sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py
|
||||
sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' 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 %{?_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=%{python_sitelib}/ffado/ PYTHON_INTERPRETER=/usr/bin/python2 BUILD_TESTS=1
|
||||
|
||||
%install
|
||||
%{_export_PLAGS}
|
||||
scons 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
|
||||
%{python_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
|
||||
* Tue Dec 03 2019 liujing<liujing144@huawei.com> - 2.4.1-5
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user