2021-01-05 17:34:32 +00:00
|
|
|
%if ! 0%{?rhel} || 0%{?rhel} > 8
|
2024-03-04 13:36:21 +00:00
|
|
|
%bcond scons_quirk 0
|
2021-01-05 17:34:32 +00:00
|
|
|
%else
|
2024-03-04 13:36:21 +00:00
|
|
|
%bcond scons_quirk 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{without scons_quirk}
|
|
|
|
%global scons scons
|
|
|
|
%else
|
|
|
|
%global scons scons-3
|
2021-01-05 17:34:32 +00:00
|
|
|
%endif
|
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
Summary: Free firewire audio driver library
|
|
|
|
Name: libffado
|
2024-03-04 13:36:21 +00:00
|
|
|
Version: 2.4.8
|
2023-02-06 10:31:27 +00:00
|
|
|
Release: %autorelease
|
2021-01-05 15:51:20 +00:00
|
|
|
License: GPLv2 or GPLv3
|
2010-07-18 21:09:40 +00:00
|
|
|
URL: http://www.ffado.org/
|
2012-09-21 03:57:00 +00:00
|
|
|
Source0: http://www.ffado.org/files/%{name}-%{version}.tgz
|
2010-07-18 21:09:40 +00:00
|
|
|
# The trunk is tarballed as follows:
|
2012-03-25 18:08:11 +00:00
|
|
|
# bash libffado-snapshot.sh 2088
|
2010-10-15 07:25:35 +00:00
|
|
|
# The fetch script
|
|
|
|
Source9: libffado-snapshot.sh
|
2021-01-05 15:55:38 +00:00
|
|
|
Patch0: libffado-2.4.4-no-test-apps.patch
|
|
|
|
Patch1: libffado-2.4.4-icon-name.patch
|
2021-01-05 17:34:32 +00:00
|
|
|
Patch2: libffado-2.4.4-scons-quirk.patch
|
2024-03-04 13:36:21 +00:00
|
|
|
# Patch for Python 3.12 imp module removal
|
2023-07-13 07:12:23 +00:00
|
|
|
Patch3: libffado-2.4.7-python312-imp-removal.patch
|
2016-01-22 20:53:17 +00:00
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: dbus-c++-devel
|
|
|
|
BuildRequires: dbus-devel
|
2019-09-19 00:22:54 +00:00
|
|
|
BuildRequires: python3-dbus
|
|
|
|
BuildRequires: python3-rpm-macros
|
2010-07-18 21:09:40 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: doxygen
|
2018-03-01 01:58:57 +00:00
|
|
|
BuildRequires: gcc-c++
|
2010-07-18 21:09:40 +00:00
|
|
|
BuildRequires: glibmm24-devel
|
|
|
|
BuildRequires: graphviz
|
2018-04-25 05:15:43 +00:00
|
|
|
BuildRequires: libappstream-glib
|
2010-07-18 21:09:40 +00:00
|
|
|
BuildRequires: libconfig-devel
|
|
|
|
BuildRequires: libiec61883-devel
|
|
|
|
BuildRequires: libraw1394-devel
|
|
|
|
BuildRequires: libxml++-devel
|
|
|
|
BuildRequires: pkgconfig
|
2019-09-19 00:22:54 +00:00
|
|
|
BuildRequires: python3-qt5-devel
|
|
|
|
BuildRequires: python3-devel
|
2024-03-04 13:36:21 +00:00
|
|
|
%if %{without scons_quirk}
|
2021-01-05 15:55:38 +00:00
|
|
|
BuildRequires: python3-scons >= 3.0.2
|
2021-01-05 17:34:32 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: python3-scons
|
|
|
|
%endif
|
2024-03-04 13:36:21 +00:00
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
BuildRequires: rpm_macro(py3_shebang_fix)
|
2010-08-26 08:31:48 +00:00
|
|
|
ExcludeArch: s390 s390x
|
2022-12-02 14:48:24 +00:00
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The FFADO project aims to provide a generic, open-source solution for the
|
|
|
|
support of FireWire based audio devices for the Linux platform. It is the
|
|
|
|
successor of the FreeBoB project.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Free firewire audio driver library development headers
|
|
|
|
License: GPLv2 or GPLv3
|
2012-06-13 01:30:35 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-07-18 21:09:40 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files needed to build applications against libffado.
|
|
|
|
|
|
|
|
%package -n ffado
|
|
|
|
Summary: Free firewire audio driver library applications and utilities
|
|
|
|
# support/tools/* is GPLv3
|
|
|
|
# Some files in support/mixer-qt4/ffado are GPLv3+
|
|
|
|
# The rest is GPLv2 or GPLv3
|
|
|
|
License: GPLv3 and GPLv3+ and (GPLv2 or GPLv3)
|
2012-06-13 01:30:35 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-07-18 21:09:40 +00:00
|
|
|
Requires: dbus
|
2019-09-19 00:22:54 +00:00
|
|
|
Requires: python3-dbus
|
|
|
|
Requires: python3-qt5
|
2010-07-18 21:09:40 +00:00
|
|
|
|
|
|
|
%description -n ffado
|
|
|
|
Applications and utilities for use with libffado.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-06-10 10:13:17 +00:00
|
|
|
%autosetup -N
|
2023-07-13 07:12:23 +00:00
|
|
|
%patch -P0 -p1 -b .no-test-apps
|
|
|
|
%patch -P1 -p1 -b .icon-name
|
2024-03-04 13:36:21 +00:00
|
|
|
%if %{with scons_quirk}
|
2023-07-13 07:12:23 +00:00
|
|
|
%patch -P2 -p1 -b .scons-quirk
|
2021-01-05 17:34:32 +00:00
|
|
|
%endif
|
2024-03-04 13:36:21 +00:00
|
|
|
%patch -P3 -p1 -b .py312-imp-removal
|
2018-01-06 02:28:55 +00:00
|
|
|
|
2018-07-20 02:41:55 +00:00
|
|
|
# Fix Python shebangs
|
2024-03-04 13:36:21 +00:00
|
|
|
%py3_shebang_fix \
|
2018-07-20 02:41:55 +00:00
|
|
|
admin/*.py doc/SConscript tests/python/*.py tests/*.py \
|
|
|
|
support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
|
|
|
|
support/tools/*.py support/tools/SConscript
|
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
%build
|
2017-11-07 04:38:43 +00:00
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
2018-02-09 11:22:54 +00:00
|
|
|
export LDFLAGS="%{build_ldflags}"
|
2024-03-04 13:36:21 +00:00
|
|
|
%{scons} %{?_smp_mflags} \
|
2021-01-05 15:55:38 +00:00
|
|
|
DETECT_USERSPACE_ENV=False \
|
2018-01-06 02:28:55 +00:00
|
|
|
ENABLE_SETBUFFERSIZE_API_VER=True \
|
2017-11-07 04:38:43 +00:00
|
|
|
ENABLE_OPTIMIZATIONS=True \
|
|
|
|
CUSTOM_ENV=True \
|
2018-04-25 05:15:43 +00:00
|
|
|
BUILD_DOC=user \
|
2010-07-18 21:09:40 +00:00
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
2012-09-21 03:57:00 +00:00
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
UDEVDIR=%{_prefix}/lib/udev/rules.d/ \
|
2019-09-19 00:22:54 +00:00
|
|
|
PYPKGDIR=%{python3_sitelib}/ffado/ \
|
|
|
|
PYTHON_INTERPRETER=/usr/bin/python3 \
|
2012-03-23 02:34:01 +00:00
|
|
|
BUILD_TESTS=1
|
2011-04-27 21:55:50 +00:00
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
%install
|
2017-11-07 04:38:43 +00:00
|
|
|
# Exporting flags so that the install does not trigger another build
|
|
|
|
export CFLAGS="%{optflags} -ffast-math"
|
|
|
|
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
|
2018-02-10 19:41:54 +00:00
|
|
|
export LDFLAGS="%{build_ldflags}"
|
2024-03-04 13:36:21 +00:00
|
|
|
%{scons} DESTDIR=%{buildroot} PREFIX=%{_prefix}\
|
2017-11-07 04:38:43 +00:00
|
|
|
install
|
2010-07-18 21:09:40 +00:00
|
|
|
|
|
|
|
# We need to install the xdg stuff manually
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
|
2018-01-06 02:35:03 +00:00
|
|
|
--add-category="Settings" \
|
|
|
|
--set-icon=ffado \
|
|
|
|
support/xdg/ffado.org-ffadomixer.desktop
|
2010-07-18 21:09:40 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
|
|
|
ln -s ../../../../libffado/icons/hi64-apps-ffado.png \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png
|
|
|
|
|
2012-03-23 02:34:01 +00:00
|
|
|
# Install ffado-test RHBZ#805940
|
|
|
|
install -m 755 tests/ffado-test %{buildroot}%{_bindir}
|
2010-07-18 21:09:40 +00:00
|
|
|
|
2018-02-03 16:54:41 +00:00
|
|
|
%ldconfig_scriptlets
|
2010-07-18 21:09:40 +00:00
|
|
|
|
2018-04-25 05:15:43 +00:00
|
|
|
%check
|
|
|
|
desktop-file-validate \
|
|
|
|
%{buildroot}%{_datadir}/applications/ffado.org-ffadomixer.desktop
|
|
|
|
appstream-util validate-relax --nonet \
|
|
|
|
%{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml
|
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
%files
|
2019-08-04 03:27:34 +00:00
|
|
|
%license LICENSE.*
|
|
|
|
%doc AUTHORS ChangeLog README
|
2010-07-18 21:09:40 +00:00
|
|
|
%{_libdir}/libffado.so.*
|
|
|
|
%dir %{_datadir}/libffado/
|
|
|
|
%{_datadir}/libffado/configuration
|
2012-09-21 03:57:00 +00:00
|
|
|
%{_prefix}/lib/udev/rules.d/*
|
2024-06-10 10:15:27 +00:00
|
|
|
%{_libdir}/libffado
|
2010-07-18 21:09:40 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc doc/reference/html/
|
|
|
|
%{_includedir}/libffado/
|
|
|
|
%{_libdir}/pkgconfig/libffado.pc
|
|
|
|
%{_libdir}/libffado.so
|
|
|
|
|
|
|
|
%files -n ffado
|
2012-09-21 03:57:00 +00:00
|
|
|
%{_mandir}/man1/ffado-*.1*
|
2010-07-18 21:09:40 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/libffado/*.xml
|
|
|
|
%{_datadir}/libffado/icons/
|
|
|
|
%{_datadir}/dbus-1/services/org.ffado.Control.service
|
|
|
|
%{_datadir}/applications/ffado.org-ffadomixer.desktop
|
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/ffado.png
|
2018-04-25 05:15:43 +00:00
|
|
|
%{_datadir}/metainfo/ffado-mixer.appdata.xml
|
2019-09-19 00:22:54 +00:00
|
|
|
%{python3_sitelib}/ffado/
|
2010-07-18 21:09:40 +00:00
|
|
|
|
2012-09-21 03:57:00 +00:00
|
|
|
|
2010-07-18 21:09:40 +00:00
|
|
|
%changelog
|
2023-02-06 10:31:27 +00:00
|
|
|
%autochangelog
|