%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif Summary: Free firewire audio driver library Name: libffado Version: 2.1.0 Release: 0.1.20101015.svn1913%{?dist} # src/libutil/float_cast.h is LGPLv2+. # The rest is (GPLv2 or GPLv3) License: LGPLv2+ and (GPLv2 or GPLv3) Group: System Environment/Libraries URL: http://www.ffado.org/ # The trunk is tarballed as follows: # bash libffado-snapshot.sh 1913 Source0: %{name}-%{version}-svn1913.tar.bz2 # Additional README file until we have proper manpages Source1: README.ffado # The fetch script Source9: libffado-snapshot.sh # We want the documentation for the library API only, not for the entire source: # http://subversion.ffado.org/ticket/293 Patch0: libffado-api-doc-only.patch # Clean the redundant shebangs # http://subversion.ffado.org/ticket/292 Patch2: libffado-no-shebang.patch # Make libffado compile against libconfig-1.4.5 # http://subversion.ffado.org/ticket/290 Patch4: libffado-libconfig145.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel BuildRequires: dbus-c++-devel BuildRequires: dbus-devel BuildRequires: dbus-python-devel BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: glibmm24-devel BuildRequires: graphviz BuildRequires: libconfig-devel BuildRequires: libiec61883-devel BuildRequires: libraw1394-devel BuildRequires: libxml++-devel BuildRequires: pkgconfig BuildRequires: PyQt4-devel BuildRequires: python2-devel BuildRequires: scons BuildRequires: subversion ExcludeArch: s390 s390x %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 Group: Development/Libraries License: GPLv2 or GPLv3 Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel Development files needed to build applications against libffado. %package -n ffado Summary: Free firewire audio driver library applications and utilities Group: Applications/Multimedia # 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) Requires: %{name} = %{version}-%{release} Requires: dbus Requires: dbus-python Requires: PyQt4 %description -n ffado Applications and utilities for use with libffado. %prep %setup -q %patch0 -p1 -b .api.doc.only %patch2 -p1 %patch4 -p1 -b .libconfig145 cp -a %{SOURCE1} . %build scons %{?_smp_mflags} \ COMPILE_FLAGS="%{optflags} -ffast-math" \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ BUILD_TESTS=0 %install rm -rf %{buildroot} scons DESTDIR=%{buildroot} install # We need to install the xdg stuff manually mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications \ support/xdg/ffado.org-ffadomixer.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps ln -s ../../../../libffado/icons/hi64-apps-ffado.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ffado.png %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n ffado touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -n ffado if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans -n ffado gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog LICENSE.* README %{_libdir}/libffado.so.* %dir %{_datadir}/libffado/ %{_datadir}/libffado/configuration %files devel %defattr(-,root,root,-) %doc doc/reference/html/ %{_includedir}/libffado/ %{_libdir}/pkgconfig/libffado.pc %{_libdir}/libffado.so %files -n ffado %defattr(-,root,root,-) %doc README.ffado %{_bindir}/* %{_datadir}/libffado/*.xml %{_datadir}/libffado/python/ %{_datadir}/libffado/icons/ %{_datadir}/dbus-1/services/org.ffado.Control.service %{_datadir}/applications/ffado.org-ffadomixer.desktop %{_datadir}/icons/hicolor/64x64/apps/ffado.png %{python_sitelib}/ffado/ %changelog * Fri Oct 15 2010 Orcan Ogetbil - 2.1.0-0.1.20101015.svn1913 - Update to svn1913. Fixes RHBZ#635315 - Drop upstreamed patches * Thu Aug 26 2010 Dan HorĂ¡k - 2.0.1-5.20100706.svn1864 - no Firewire on s390(x) * Thu Jul 29 2010 Orcan Ogetbil - 2.0.1-4.20100706.svn1864 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Jul 14 2010 Orcan Ogetbil - 2.0.1-3.20100706.svn1864 - Remove ENABLE_ALL - Improve the libffado-dont-use-bundled-libs.patch - Drop BR: expat-devel libavc1394-devel - Move configuration file to the library package - Minor enhancement in the .desktop file - Add links to upstream tickets for patches - Add -ffast-math to the compiler flags - Add patch to compile against libconfig-1.4.5 * Tue Jul 13 2010 Orcan Ogetbil - 2.0.1-2.20100706.svn1864 - Add ENABLE_ALL flag to support more devices - Don't bundle tests - Include some preliminary documentation for the tools until the manpages arrive - Patch out bundled libraries. Also fixes some rpmlints - Improve the instructions how to create the tarball * Wed Jul 07 2010 Orcan Ogetbil - 2.0.1-1.20100706.svn1864 - Update to trunk, post 2.0.1. * Sat Jun 05 2010 Orcan Ogetbil - 2.0.0-1.20100605.svn1845 - Update to trunk, post 2.0.0. * Mon May 18 2009 Jarod Wilson - 2.0-0.4.rc2 - Update to 2.0.0-rc2 * Thu Nov 06 2008 Jarod Wilson - 2.0-0.3.beta7 - Update to beta7 - Put arch-dependent helper/test binaries in libexecdir instead of datadir * Sun Aug 10 2008 Jarod Wilson - 2.0-0.2.beta6 - Review clean-ups (#456353) * Tue Jul 22 2008 Jarod Wilson - 2.0-0.1.beta6 - Initial Fedora build of libffado