|
|
@ -1,12 +1,14 @@
|
|
|
|
Summary: Free firewire audio driver library
|
|
|
|
Summary: Free firewire audio driver library
|
|
|
|
Name: libffado
|
|
|
|
Name: libffado
|
|
|
|
Version: 2.4.1
|
|
|
|
Version: 2.4.1
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 9%{?dist}
|
|
|
|
# src/libutil/float_cast.h is LGPLv2+.
|
|
|
|
# src/libutil/float_cast.h is LGPLv2+.
|
|
|
|
# The rest is (GPLv2 or GPLv3)
|
|
|
|
# The rest is (GPLv2 or GPLv3)
|
|
|
|
License: LGPLv2+ and (GPLv2 or GPLv3)
|
|
|
|
License: LGPLv2+ and (GPLv2 or GPLv3)
|
|
|
|
URL: http://www.ffado.org/
|
|
|
|
URL: http://www.ffado.org/
|
|
|
|
Source0: http://www.ffado.org/files/%{name}-%{version}.tgz
|
|
|
|
Source0: http://www.ffado.org/files/%{name}-%{version}.tgz
|
|
|
|
|
|
|
|
# Convert the package to Python3. Sent upstream via email.
|
|
|
|
|
|
|
|
Patch0: libffado-mixer-py3.patch
|
|
|
|
# The trunk is tarballed as follows:
|
|
|
|
# The trunk is tarballed as follows:
|
|
|
|
# bash libffado-snapshot.sh 2088
|
|
|
|
# bash libffado-snapshot.sh 2088
|
|
|
|
# The fetch script
|
|
|
|
# The fetch script
|
|
|
@ -15,9 +17,8 @@ Source9: libffado-snapshot.sh
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: dbus-c++-devel
|
|
|
|
BuildRequires: dbus-c++-devel
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides
|
|
|
|
BuildRequires: python3-dbus
|
|
|
|
BuildRequires: python2-dbus
|
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
|
BuildRequires: python2-rpm-macros
|
|
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
@ -29,10 +30,9 @@ BuildRequires: libiec61883-devel
|
|
|
|
BuildRequires: libraw1394-devel
|
|
|
|
BuildRequires: libraw1394-devel
|
|
|
|
BuildRequires: libxml++-devel
|
|
|
|
BuildRequires: libxml++-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python2-PyQt5-devel
|
|
|
|
BuildRequires: python3-qt5-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python2-enum34
|
|
|
|
BuildRequires: python3-scons
|
|
|
|
BuildRequires: python2-scons
|
|
|
|
|
|
|
|
BuildRequires: subversion
|
|
|
|
BuildRequires: subversion
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
Requires: udev
|
|
|
|
Requires: udev
|
|
|
@ -59,8 +59,8 @@ License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3)
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: dbus
|
|
|
|
Requires: dbus
|
|
|
|
# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides
|
|
|
|
# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides
|
|
|
|
Requires: python2-dbus
|
|
|
|
Requires: python3-dbus
|
|
|
|
Requires: python2-qt5
|
|
|
|
Requires: python3-qt5
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ffado
|
|
|
|
%description -n ffado
|
|
|
|
Applications and utilities for use with libffado.
|
|
|
|
Applications and utilities for use with libffado.
|
|
|
@ -68,6 +68,7 @@ Applications and utilities for use with libffado.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%patch0 -p1 -b .py3
|
|
|
|
|
|
|
|
|
|
|
|
# We don't want to install all tests
|
|
|
|
# We don't want to install all tests
|
|
|
|
sed -i '/Install/d' tests/{,*/}SConscript
|
|
|
|
sed -i '/Install/d' tests/{,*/}SConscript
|
|
|
@ -76,7 +77,7 @@ sed -i '/Install/d' tests/{,*/}SConscript
|
|
|
|
sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py
|
|
|
|
sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py
|
|
|
|
|
|
|
|
|
|
|
|
# Fix Python shebangs
|
|
|
|
# Fix Python shebangs
|
|
|
|
sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \
|
|
|
|
sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \
|
|
|
|
admin/*.py doc/SConscript tests/python/*.py tests/*.py \
|
|
|
|
admin/*.py doc/SConscript tests/python/*.py tests/*.py \
|
|
|
|
support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
|
|
|
|
support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
|
|
|
|
support/tools/*.py support/tools/SConscript
|
|
|
|
support/tools/*.py support/tools/SConscript
|
|
|
@ -87,7 +88,7 @@ sed -i 's|-m32||' SConstruct
|
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
|
|
|
export LDFLAGS="%{build_ldflags}"
|
|
|
|
export LDFLAGS="%{build_ldflags}"
|
|
|
|
scons-2 %{?_smp_mflags} \
|
|
|
|
scons-3 %{?_smp_mflags} \
|
|
|
|
ENABLE_SETBUFFERSIZE_API_VER=True \
|
|
|
|
ENABLE_SETBUFFERSIZE_API_VER=True \
|
|
|
|
ENABLE_OPTIMIZATIONS=True \
|
|
|
|
ENABLE_OPTIMIZATIONS=True \
|
|
|
|
CUSTOM_ENV=True \
|
|
|
|
CUSTOM_ENV=True \
|
|
|
@ -96,8 +97,8 @@ scons-2 %{?_smp_mflags} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
UDEVDIR=%{_prefix}/lib/udev/rules.d/ \
|
|
|
|
UDEVDIR=%{_prefix}/lib/udev/rules.d/ \
|
|
|
|
PYPKGDIR=%{python2_sitelib}/ffado/ \
|
|
|
|
PYPKGDIR=%{python3_sitelib}/ffado/ \
|
|
|
|
PYTHON_INTERPRETER=/usr/bin/python2 \
|
|
|
|
PYTHON_INTERPRETER=/usr/bin/python3 \
|
|
|
|
BUILD_TESTS=1
|
|
|
|
BUILD_TESTS=1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -105,7 +106,7 @@ scons-2 %{?_smp_mflags} \
|
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
|
|
|
export LDFLAGS="%{build_ldflags}"
|
|
|
|
export LDFLAGS="%{build_ldflags}"
|
|
|
|
scons-2 DESTDIR=%{buildroot} PREFIX=%{_prefix}\
|
|
|
|
scons-3 DESTDIR=%{buildroot} PREFIX=%{_prefix}\
|
|
|
|
install
|
|
|
|
install
|
|
|
|
|
|
|
|
|
|
|
|
# We need to install the xdg stuff manually
|
|
|
|
# We need to install the xdg stuff manually
|
|
|
@ -153,10 +154,13 @@ appstream-util validate-relax --nonet \
|
|
|
|
%{_datadir}/applications/ffado.org-ffadomixer.desktop
|
|
|
|
%{_datadir}/applications/ffado.org-ffadomixer.desktop
|
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/ffado.png
|
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/ffado.png
|
|
|
|
%{_datadir}/metainfo/ffado-mixer.appdata.xml
|
|
|
|
%{_datadir}/metainfo/ffado-mixer.appdata.xml
|
|
|
|
%{python2_sitelib}/ffado/
|
|
|
|
%{python3_sitelib}/ffado/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Sep 18 2019 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 2.4.1-9
|
|
|
|
|
|
|
|
- Convert the package from Python2 to Python3
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 03 2019 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 2.4.1-8
|
|
|
|
* Sat Aug 03 2019 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 2.4.1-8
|
|
|
|
- scons renamed to scons-2 in the recent Fedora package
|
|
|
|
- scons renamed to scons-2 in the recent Fedora package
|
|
|
|
|
|
|
|
|
|
|
|