Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > abdd19d79c532de42a27c54477b48f24 > files > 7

portaudio-19.7.0-2.mga9.src.rpm

#define _smp_ncpus_max 4

%define	major		2
%define libname		%mklibname portaudio %{major}
%define develname	%mklibname portaudio -d

%define cppmajor	0
%define libcpp		%mklibname %{name}cpp %{cppmajor}

%define date		20210406
%define sver		%(echo %{version} | tr '.' '0')

%define rel		2

Summary:	Cross platform audio I/O library
Name:		portaudio
Version:	19.7.0
Release:	%mkrel %{rel}
Group:		System/Libraries
License:	BSD
URL:		http://www.portaudio.com/
Source0:	http://files.portaudio.com/archives/pa_stable_v%{sver}_%{date}.tgz
Patch0:		portaudio-parallel-build.patch
Patch1:		portaudio-doxynodate.patch
Patch2:		portaudio-pkgconfig-alsa.patch
# Add some extra API needed by audacity
Patch3:		debian-20161225-audacity-portmixer.patch
Patch4:		portaudio-autoconf.patch
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(celt)

%description
PortAudio is a free, cross platform, open-source, audio I/O
library. It lets you write simple audio programs in 'C' that will
compile and run on many platforms including Windows, Macintosh
(8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to
promote the exchange of audio synthesis software between
developers on different platforms, and was recently selected as
the audio component of a larger PortMusic project that includes
MIDI and sound file support.

PortAudio provides a very simple API for recording and/or playing
sound using a simple callback function. Example programs are
included that synthesize sine waves and pink noise, perform fuzz
distortion on a guitar, list available audio devices, etc.

%package -n	%{libname}
Summary:	Cross platform audio I/O library
Group:		System/Libraries

%description -n	%{libname}
PortAudio is a free, cross platform, open-source, audio I/O
library. It lets you write simple audio programs in 'C' that will
compile and run on many platforms including Windows, Macintosh
(8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to
promote the exchange of audio synthesis software between
developers on different platforms, and was recently selected as
the audio component of a larger PortMusic project that includes
MIDI and sound file support.

PortAudio provides a very simple API for recording and/or playing
sound using a simple callback function. Example programs are
included that synthesize sine waves and pink noise, perform fuzz
distortion on a guitar, list available audio devices, etc.

%package -n	%{libcpp}
Summary:	Cross platform audio I/O library
Group:		System/Libraries

%description -n	%{libcpp}
PortAudio is a free, cross platform, open-source, audio I/O
library. It lets you write simple audio programs in 'C' that will
compile and run on many platforms including Windows, Macintosh
(8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to
promote the exchange of audio synthesis software between
developers on different platforms, and was recently selected as
the audio component of a larger PortMusic project that includes
MIDI and sound file support.

PortAudio provides a very simple API for recording and/or playing
sound using a simple callback function. Example programs are
included that synthesize sine waves and pink noise, perform fuzz
distortion on a guitar, list available audio devices, etc

%package -n	%{develname}
Summary:	Static library and header files for the PortAudio library
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	lib%{name}cpp-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libcpp} = %{version}-%{release}
Obsoletes:	%{_lib}portaudio0-devel < 19

%description -n	%{develname}
PortAudio is a free, cross platform, open-source, audio I/O
library. It lets you write simple audio programs in 'C' that will
compile and run on many platforms including Windows, Macintosh
(8,9,X), Unix (OSS), SGI, and BeOS. PortAudio is intended to
promote the exchange of audio synthesis software between
developers on different platforms, and was recently selected as
the audio component of a larger PortMusic project that includes
MIDI and sound file support.

PortAudio provides a very simple API for recording and/or playing
sound using a simple callback function. Example programs are
included that synthesize sine waves and pink noise, perform fuzz
distortion on a guitar, list available audio devices, etc.

This package contains the static PortAudio library and its header
files.

%prep
%setup -q -n %{name}
%autopatch -p1

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644
chmod 755 configure bindings/cpp/configure

# strip away annoying ^M
find . -type f | xargs perl -p -i -e 's/\r//'

%build
# Needed for patch3
autoreconf -vfi

# fix cxx lib overlinking issue
pushd bindings/cpp
	autoreconf -vfi
popd

%configure \
	--disable-static \
	--enable-cxx \
	--with-alsa \
	--with-jack
%make_build

%install
%make_install

#we don't want these
find %{buildroot} -name "*.la" -delete

%files -n %{libname}
%doc LICENSE.txt README.md
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

%files -n %{libcpp}
%{_libdir}/lib%{name}cpp.so.%{cppmajor}
%{_libdir}/lib%{name}cpp.so.%{cppmajor}.*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}cpp.so
%{_libdir}/pkgconfig/portaudio-*.pc
%{_libdir}/pkgconfig/portaudiocpp.pc


%changelog
* Fri Apr 01 2022 umeabot <umeabot> 19.7.0-2.mga9
+ Revision: 1838590
- Mageia 9 Mass Rebuild

* Mon Apr 19 2021 wally <wally> 19.7.0-1.mga9
+ Revision: 1717200
- new version 19.7.0

* Sat Nov 07 2020 wally <wally> 19.6.0-snapshot20161030.8.mga8
+ Revision: 1643524
- fix build with autoconf 2.69d

* Fri Feb 14 2020 umeabot <umeabot> 19.6.0-snapshot20161030.7.mga8
+ Revision: 1516132
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 19.6.0-snapshot20161030.6.mga7
+ Revision: 1300346
- Mageia 7 Mass Rebuild

* Sun Dec 10 2017 zezinho <zezinho> 19.6.0-snapshot20161030.5.mga7
+ Revision: 1181846
- refresh audacity patch from debian

* Fri Dec 16 2016 wally <wally> 19.6.0-snapshot20161030.4.mga6
+ Revision: 1075676
- fix cxx lib overlinking issue

* Fri Dec 16 2016 wally <wally> 19.6.0-snapshot20161030.3.mga6
+ Revision: 1075640
- submit to core/release

* Fri Dec 16 2016 wally <wally> 19.6.0-snapshot20161030.2.2.mga6
+ Revision: 1075638
- new version 19.6.0 (snapshot 20161030)

* Tue Feb 16 2016 umeabot <umeabot> 19-22.snapshot20140130.7.mga6
+ Revision: 962185
- Mageia 6 Mass Rebuild

* Sat Dec 06 2014 akien <akien> 19-22.snapshot20140130.6.mga5
+ Revision: 801711
- Revert previous obsoletes, portaudio0 must be dropped by sysadmins

* Sat Dec 06 2014 akien <akien> 19-22.snapshot20140130.5.mga5
+ Revision: 801703
- Obsolete old libportaudio0

* Wed Oct 15 2014 umeabot <umeabot> 19-22.snapshot20140130.4.mga5
+ Revision: 739087
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 19-22.snapshot20140130.3.mga5
+ Revision: 687725
- Mageia 5 Mass Rebuild

* Sun Aug 24 2014 wally <wally> 19-22.snapshot20140130.2.mga5
+ Revision: 667140
- obsolete old portaudio v18 as nothing requires it anymore

* Thu Aug 14 2014 wally <wally> 19-22.snapshot20140130.1.mga5
+ Revision: 662428
- update to 20140130 'stable' snapshot
- add snapshot date to release tag
- sync patches with Fedora
- build C++ library (mga#12493)
- drop old and unneeded obsoletes

* Fri Oct 18 2013 umeabot <umeabot> 19-21.mga4
+ Revision: 517609
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 19-20.mga3
+ Revision: 378076
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 01 2013 spuhler <spuhler> 19-19.mga3
+ Revision: 337102
- cleaned spec file
  bumped rel for mga3 rebuild

* Tue Jan 03 2012 zezinho <zezinho> 19-18.mga2
+ Revision: 189952
- rebuild for current libc

* Sun Sep 18 2011 fwang <fwang> 19-17.mga2
+ Revision: 144844
- drop .la files
+ dmorgan <dmorgan>
- Remove mdv macros
- imported package portaudio


* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 19-16mdv2011.0
+ Revision: 607191
- rebuild

* Sat Feb 27 2010 Götz Waschk <waschk@mandriva.org> 19-15mdv2010.1
+ Revision: 512441
- rebuild for new libjack

* Wed Jan 27 2010 Götz Waschk <waschk@mandriva.org> 19-14mdv2010.1
+ Revision: 497063
- rebuild for new celt

* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 19-13mdv2010.0
+ Revision: 426738
- rebuild
- Don't uselessly call autoreconf

* Sat Dec 13 2008 Adam Williamson <awilliamson@mandriva.org> 19-12mdv2009.1
+ Revision: 314007
- celt-devel not libcelt-devel
- buildrequires libcelt-devel too
- buildrequires libsamplerate-devel, apparently?
- add alsa_pulse.patch (from Fedora #445644 / Kevin Kofler): fix support
  for non-mmap ALSA devices (importantly, Pulse)

* Wed Jun 18 2008 Thierry Vignaud <tv@mandriva.org> 19-11mdv2009.0
+ Revision: 225023
- rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Fri Mar 07 2008 Funda Wang <fwang@mandriva.org> 19-10mdv2008.1
+ Revision: 181137
- conflicts with portaudio0-devel

* Thu Mar 06 2008 Anssi Hannula <anssi@mandriva.org> 19-9mdv2008.1
+ Revision: 180947
- do not obsolete portaudio0, we still have it

* Tue Mar 04 2008 Funda Wang <fwang@mandriva.org> 19-8mdv2008.1
+ Revision: 178485
- obsoletes more old devel package

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 19-7mdv2008.1
+ Revision: 171049
- rebuild
- summary is not licence tag
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake

* Fri Feb 15 2008 Frederic Crozat <fcrozat@mandriva.com> 19-6mdv2008.1
+ Revision: 169000
- Update to stable v19 20071207 snapshot (fixes espeak when using pulseaudio alsa plugin)

* Fri Jan 25 2008 Funda Wang <fwang@mandriva.org> 19-5mdv2008.1
+ Revision: 157826
- new devel package policy

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Aug 19 2007 Oden Eriksson <oeriksson@mandriva.com> 19-4mdv2008.0
+ Revision: 67030
- use a new snapshot due to api changes in latest jackit
- the patch (P4) does not apply (no more pablio/ringbuffer.h)


* Fri Oct 13 2006 Oden Eriksson <oeriksson@mandriva.com>
+ 2006-10-12 07:12:50 (63693)
- fix deps

* Wed Oct 11 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-10-10 16:22:50 (63359)
- Fix major

* Wed Oct 11 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-10-10 13:53:06 (63287)
- Fix Makefile (add 2 needed .h files)

* Wed Oct 11 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-10-10 12:49:52 (63263)
Import portaudio

* Wed Oct 11 2006 Nicolas Lécureuil <neoclust@mandriva.org> 19-1mdv2007.1
- Snapshot of V19
- Remove patches (merged upstream)

* Fri Sep 16 2005 Oden Eriksson <oeriksson@mandriva.com> 18.1-4mdk
- use libtool to make the shared lib (P0, debian)
- added two oss patches (P1, P2, debian)

* Fri Sep 16 2005 Oden Eriksson <oeriksson@mandriva.com> 18.1-3mdk
- link it against -lpthread (gb)

* Fri May 06 2005 Oden Eriksson <oeriksson@mandriva.com> 18.1-2mdk
- fix requires-on-release

* Mon Sep 13 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 18.1-1mdk
- initial mandrake package
- build it different and add pablio to it (P0)