diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 9cc22ee002f39ea85e0f18452deb414e44586dca..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -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/) diff --git a/README.md b/README.md deleted file mode 100644 index 33b0b8a4a314cef77eb89660e0430d3a23330256..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -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/) diff --git a/libffado-2.4.1.tgz b/libffado-2.4.1.tgz new file mode 100644 index 0000000000000000000000000000000000000000..6e6c957445e177d87b26bdeba53ad10661a5d193 Binary files /dev/null and b/libffado-2.4.1.tgz differ diff --git a/libffado-snapshot.sh b/libffado-snapshot.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c3b37f31095b62431d56dded1b8430ecded2c44 --- /dev/null +++ b/libffado-snapshot.sh @@ -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 diff --git a/libffado.spec b/libffado.spec new file mode 100644 index 0000000000000000000000000000000000000000..1446c9642c512d23826dbdb1f58605a22f521c40 --- /dev/null +++ b/libffado.spec @@ -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 - 2.4.1-5 +- Package init