xberry / rpms / libffado

Forked from rpms/libffado 4 years ago
Clone
9648851
Summary:        Free firewire audio driver library
9648851
Name:           libffado
Orcan Ogetbil 993c65b
Version:        2.4.1
a52a69c
Release:        8%{?dist}
9648851
# src/libutil/float_cast.h is LGPLv2+.
9648851
# The rest is (GPLv2 or GPLv3)
9648851
License:        LGPLv2+ and (GPLv2 or GPLv3)
9648851
URL:            http://www.ffado.org/
1c84d6d
Source0:        http://www.ffado.org/files/%{name}-%{version}.tgz
9648851
# The trunk is tarballed as follows:
75bf0fc
# bash libffado-snapshot.sh 2088
9368290
# The fetch script
9368290
Source9:        libffado-snapshot.sh
49ad40f
9648851
BuildRequires:  alsa-lib-devel
9648851
BuildRequires:  dbus-c++-devel
9648851
BuildRequires:  dbus-devel
Orcan Ogetbil b28eb72
# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides
8f81398
BuildRequires:  python2-dbus
Orcan Ogetbil ad10920
BuildRequires:  python2-rpm-macros
9648851
BuildRequires:  desktop-file-utils
9648851
BuildRequires:  doxygen
Orcan Ogetbil 755e069
BuildRequires:  gcc-c++
9648851
BuildRequires:  glibmm24-devel
9648851
BuildRequires:  graphviz
Orcan Ogetbil 993c65b
BuildRequires:  libappstream-glib
9648851
BuildRequires:  libconfig-devel
9648851
BuildRequires:  libiec61883-devel
9648851
BuildRequires:  libraw1394-devel
9648851
BuildRequires:  libxml++-devel
9648851
BuildRequires:  pkgconfig
Orcan Ogetbil b28eb72
BuildRequires:  python2-PyQt5-devel
9648851
BuildRequires:  python2-devel
Orcan Ogetbil 5e9d372
BuildRequires:  python2-enum34
8f81398
BuildRequires:  python2-scons
9648851
BuildRequires:  subversion
c26cd06
ExcludeArch:    s390 s390x
1c84d6d
Requires:       udev
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
License:        GPLv2 or GPLv3
423a268
Requires:       %{name}%{?_isa} = %{version}-%{release}
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
# 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)
423a268
Requires:       %{name}%{?_isa} = %{version}-%{release}
9648851
Requires:       dbus
Orcan Ogetbil b28eb72
# the following got renamed to python2-dbus on F28. We are using the backward-compatible Provides
8f81398
Requires:       python2-dbus
8f81398
Requires:       python2-qt5
9648851
9648851
%description -n ffado
9648851
Applications and utilities for use with libffado.
9648851
9648851
9648851
%prep
9368290
%setup -q
9648851
925a2e6
# We don't want to install all tests
925a2e6
sed -i '/Install/d' tests/{,*/}SConscript
925a2e6
Orcan Ogetbil b28eb72
# Use standard icon name
Orcan Ogetbil b28eb72
sed -i 's|hi64-apps-ffado.png|ffado.png|' support/mixer-qt4/ffado/ffadowindow.py
Orcan Ogetbil b28eb72
Orcan Ogetbil 5e9d372
# Fix Python shebangs
a52a69c
sed -i 's|/usr/bin/.*python$|/usr/bin/python2|' \
Orcan Ogetbil 5e9d372
    admin/*.py doc/SConscript tests/python/*.py tests/*.py \
Orcan Ogetbil 5e9d372
    support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
Orcan Ogetbil 5e9d372
    support/tools/*.py support/tools/SConscript
Orcan Ogetbil 5e9d372
9648851
%build
Orcan Ogetbil 17a374b
export CFLAGS="%{optflags} -ffast-math"
Orcan Ogetbil 17a374b
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
b23a06a
export LDFLAGS="%{build_ldflags}"
Orcan Ogetbil c0dd923
scons-2 %{?_smp_mflags} \
Orcan Ogetbil b28eb72
      ENABLE_SETBUFFERSIZE_API_VER=True \
Orcan Ogetbil 17a374b
      ENABLE_OPTIMIZATIONS=True \
Orcan Ogetbil 17a374b
      CUSTOM_ENV=True \
Orcan Ogetbil 993c65b
      BUILD_DOC=user \
9648851
      PREFIX=%{_prefix} \
9648851
      LIBDIR=%{_libdir} \
1c84d6d
      MANDIR=%{_mandir} \
1c84d6d
      UDEVDIR=%{_prefix}/lib/udev/rules.d/ \
Orcan Ogetbil ad10920
      PYPKGDIR=%{python2_sitelib}/ffado/ \
a52a69c
      PYTHON_INTERPRETER=/usr/bin/python2 \
925a2e6
      BUILD_TESTS=1
Brendan Jones eabded1
9648851
%install
Orcan Ogetbil 17a374b
# Exporting flags so that the install does not trigger another build
Orcan Ogetbil 17a374b
export CFLAGS="%{optflags} -ffast-math"
Orcan Ogetbil 17a374b
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"
Orcan Ogetbil c16fdf4
export LDFLAGS="%{build_ldflags}"
b0ceebd
scons-2 DESTDIR=%{buildroot} PREFIX=%{_prefix}\
Orcan Ogetbil 17a374b
      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 \
Orcan Ogetbil ce0b4e1
                     --add-category="Settings" \
Orcan Ogetbil ce0b4e1
                     --set-icon=ffado \
Orcan Ogetbil ce0b4e1
                     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
925a2e6
# Install ffado-test RHBZ#805940
925a2e6
install -m 755 tests/ffado-test %{buildroot}%{_bindir}
9648851
2cf4503
%ldconfig_scriptlets
9648851
Orcan Ogetbil 993c65b
%check
Orcan Ogetbil 993c65b
desktop-file-validate \
Orcan Ogetbil 993c65b
      %{buildroot}%{_datadir}/applications/ffado.org-ffadomixer.desktop
Orcan Ogetbil 993c65b
appstream-util validate-relax --nonet \
Orcan Ogetbil 993c65b
      %{buildroot}%{_datadir}/metainfo/ffado-mixer.appdata.xml
Orcan Ogetbil 993c65b
9648851
%files
Orcan Ogetbil c0dd923
%license LICENSE.*
Orcan Ogetbil c0dd923
%doc AUTHORS ChangeLog README
9648851
%{_libdir}/libffado.so.*
9648851
%dir %{_datadir}/libffado/
9648851
%{_datadir}/libffado/configuration
1c84d6d
%{_prefix}/lib/udev/rules.d/*
Orcan Ogetbil 993c65b
%{_libdir}/libffado/static_info.txt
9648851
9648851
%files devel
9648851
%doc doc/reference/html/
9648851
%{_includedir}/libffado/
9648851
%{_libdir}/pkgconfig/libffado.pc
9648851
%{_libdir}/libffado.so
9648851
9648851
%files -n ffado
1c84d6d
%{_mandir}/man1/ffado-*.1*
9648851
%{_bindir}/*
9648851
%{_datadir}/libffado/*.xml
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
Orcan Ogetbil 993c65b
%{_datadir}/metainfo/ffado-mixer.appdata.xml
5e7a2d9
%{python2_sitelib}/ffado/
9648851
1c84d6d
9648851
%changelog
Orcan Ogetbil c0dd923
* Sat Aug 03 2019 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 2.4.1-8
Orcan Ogetbil c0dd923
- scons renamed to scons-2 in the recent Fedora package
Orcan Ogetbil c0dd923
cc7b471
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-7
cc7b471
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cc7b471
Orcan Ogetbil ad10920
* Thu Feb 07 2019 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.4.1-6
Orcan Ogetbil ad10920
- Added BR: python2-rpm-macros
Orcan Ogetbil ad10920
3d2fc90
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-5
3d2fc90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3d2fc90
aa1c1a0
* Tue Jul 24 2018 Tom Callaway <spot@fedoraproject.org> - 2.4.1-4
aa1c1a0
- rebuild for new libconfig
aa1c1a0
Orcan Ogetbil 5e9d372
* Thu Jul 19 2018 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.4.1-3
Orcan Ogetbil 5e9d372
- Fixed Python shebangs
Orcan Ogetbil 5e9d372
- Added BR: python2-enum34
Orcan Ogetbil 5e9d372
938ef10
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
938ef10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
938ef10
Orcan Ogetbil 993c65b
* Wed Apr 25 2018 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.4.1-1
Orcan Ogetbil 993c65b
- Update to 2.4.1
Orcan Ogetbil 993c65b
- Drop upstreamed patches
Orcan Ogetbil 993c65b
8f81398
* Wed Apr 18 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 2.4.0-6
8f81398
- Update Python 2 dependency declarations to new packaging standards
8f81398
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8f81398
Orcan Ogetbil c16fdf4
* Sat Feb 10 2018 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.4.0-5
Orcan Ogetbil c16fdf4
- Build with RPM_LD_FLAGS exported in install section as well
Orcan Ogetbil c16fdf4
b23a06a
* Fri Feb  9 2018 Florian Weimer <fweimer@redhat.com> - 2.4.0-4
b23a06a
- Use LDFLAGS from redhat-rpm-config
b23a06a
4c78029
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
4c78029
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c78029
2cf4503
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4.0-2
2cf4503
- Switch to %%ldconfig_scriptlets
2cf4503
Orcan Ogetbil b28eb72
* Fri Jan 05 2018 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.4.0-1
Orcan Ogetbil b28eb72
- Update to 2.4.0
Orcan Ogetbil b28eb72
- Drop upstreamed patches
Orcan Ogetbil b28eb72
4d8ba64
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.0-8
4d8ba64
- Remove obsolete scriptlets
4d8ba64
Orcan Ogetbil 17a374b
* Mon Nov 06 2017 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.3.0-7
Orcan Ogetbil 17a374b
- Build against scons3
Orcan Ogetbil 17a374b
- Build against newer gcc/glibc
Orcan Ogetbil 17a374b
Orcan Ogetbil cd70591
* Thu Aug 10 2017 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.3.0-6
Orcan Ogetbil cd70591
- Fix FTBFS on F27
Orcan Ogetbil cd70591
- Backported fixes from trunk for various compilation warnings
Orcan Ogetbil cd70591
- MIPS support RHBZ#1366701
Orcan Ogetbil cd70591
dc79b12
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
dc79b12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dc79b12
6930005
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
6930005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6930005
4419e7c
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
4419e7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
4419e7c
c2b4450
* Thu Feb 16 2017 Jonathan Wakely <jwakely@redhat.com> - 2.3.0-2
c2b4450
- Patch invalid code to build with GCC 7
c2b4450
2a2b45a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
2a2b45a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2a2b45a
Orcan Ogetbil afff2e5
* Mon Aug 08 2016 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.3.0-1
Orcan Ogetbil afff2e5
- Update to 2.3.0.
Orcan Ogetbil afff2e5
f3b3180
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-9
f3b3180
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f3b3180
e7d51c2
* Tue Mar 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.2.1-8
e7d51c2
- Fix FTBFS with GCC 6 (#1307721)
e7d51c2
175daff
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
175daff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
175daff
49ad40f
* Fri Jan 22 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.2.1-6
49ad40f
- Fix FTBFS
49ad40f
5b7d0fe
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-5
5b7d0fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5b7d0fe
db10398
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.2.1-4
db10398
- Rebuilt for GCC 5 C++11 ABI change
db10398
79de29e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
79de29e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
79de29e
c6866dc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
c6866dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6866dc
fba5df8
* Sun Jun 01 2014 Brendan Jones <brendan.jones.it@gmail.com> 2.2.1-1
fba5df8
- Update to 2.2.1
fba5df8
- Remove incorporated udev rules patch
fba5df8
c60882b
* Mon Sep 30 2013 Brendan Jones <brendan.jones.it@gmail.com> 2.1.0-4
c60882b
- Corrrect udev rules RFBZ#999580
c60882b
- Correct changelog
c60882b
fafbd52
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
fafbd52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fafbd52
c94ff1f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
c94ff1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c94ff1f
1c84d6d
* Thu Sep 20 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-1
1c84d6d
- Update to 2.1.0.
1c84d6d
- Drop upstreamed & old patches, README.Fedora file.
1c84d6d
30b2de4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-0.10.20120325.svn2088
30b2de4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30b2de4
423a268
* Tue Jun 12 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.9.20120325.svn2088
423a268
- Fix multilib confict RHBZ#831405
423a268
- Fix DSO linking #ticket 355
423a268
75bf0fc
* Sun Mar 25 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.8.20120325.svn2088
75bf0fc
- Update to svn2088.
75bf0fc
- Drop upstreamed gcc-4.7 patch.
75bf0fc
925a2e6
* Thu Mar 22 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.7.20111030.svn2000
925a2e6
- Include the ffado-test executable RHBZ#805940
925a2e6
- Fix .desktop file warning
925a2e6
d96be61
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-0.6.20111030.svn2000
d96be61
- Rebuilt for c++ ABI breakage
d96be61
a7929d2
* Tue Jan 10 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.5.20111030.svn2000
a7929d2
- gcc-4.7 compile fix
a7929d2
fca88cc
* Sun Oct 30 2011 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.4.20111030.svn2000
fca88cc
- Update to svn2000.
fca88cc
- Drop the gold linker patch. The issue is properly solved upstream. See upstream tracker #293
fca88cc
f3af56e
* Tue Apr 26 2011 Brendan Jones <brendan.jones.it@gmail.com> - 2.1.0-0.3.20110426.svn1983
Brendan Jones eabded1
- Update to svn1983
Brendan Jones eabded1
- Clean up redundant patches
Brendan Jones eabded1
- Patch to rebuild using gold linker. Fixes RHBZ#684392
Brendan Jones eabded1
3598fdf
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-0.2.20101015.svn1913
3598fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3598fdf
9368290
* Fri Oct 15 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 2.1.0-0.1.20101015.svn1913
9368290
- Update to svn1913. Fixes RHBZ#635315
9368290
- Drop upstreamed patches
9368290
c26cd06
* Thu Aug 26 2010 Dan HorĂ¡k <dan[at]danny.cz> - 2.0.1-5.20100706.svn1864
c26cd06
- no Firewire on s390(x)
c26cd06
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