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