Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:portaudio
portaudio-opensuse
portaudio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File portaudio.spec of Package portaudio-opensuse
# # spec file for package portaudio # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define soname_c 2 %define soname_p 2 %define lname_c libportaudio%{soname_c} %define lname_p libportaudiocpp%{soname_p} %define lname_c libportaudio%{soname_c} %define lname_p libportaudiocpp%{soname_p} Name: portaudio Version: 190700_20210406~git.1713568167.db778cf Release: 0 Summary: Portable Real-Time Audio Library License: MIT Group: Development/Libraries/C and C++ URL: https://www.portaudio.com/ Source: http://files.portaudio.com/archives/pa_stable-v%{version}.tar.xz Source1: baselibs.conf BuildRequires: autoconf BuildRequires: automake BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig # BuildRequires: sndio-devel BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(libpulse) %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: alsa-lib-devel %else BuildRequires: alsa-devel %endif %description PortAudio is a portable audio I/O library designed for cross-platform support of audio. It uses a callback mechanism to request audio processing. Audio can be generated in various formats, including 32 bit floating point, and will be converted to the native format internally. %package -n %{lname_c} Summary: Portable Real-Time Audio Library # portaudio was last used in openSUSE 12.1 Group: System/Libraries Provides: portaudio = %{version} Obsoletes: portaudio < %{version} %description -n %{lname_c} PortAudio is a portable audio I/O library designed for cross-platform support of audio. It uses a callback mechanism to request audio processing. Audio can be generated in various formats, including 32 bit floating point, and will be converted to the native format internally. %package -n %{lname_p} Summary: Portable Real-Time Audio Library # packman used to provide this Group: System/Libraries Obsoletes: libportaudiocpp %description -n %{lname_p} PortAudio is a portable audio I/O library designed for cross-platform support of audio. It uses a callback mechanism to request audio processing. Audio can be generated in various formats, including 32 bit floating point, and will be converted to the native format internally. %package devel Summary: Development package for the portaudio library Group: Development/Languages/C and C++ Requires: %{lname_c} = %{version} Requires: %{lname_p} = %{version} Obsoletes: libportaudiocpp-devel %description devel This package contains the files needed to compile programs that use the portaudio library. %prep %setup -q -n pa_stable-v%{version} FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" qa/loopback/src/paqa.c src/common/pa_front.c FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" qa/loopback/src/paqa.c src/common/pa_front.c echo 'HTML_TIMESTAMP=NO' >> Doxyfile echo 'Requires: alsa' >> portaudio-2.0.pc.in %build %cmake %make_build cd ../bindings/cpp export CXXFLAGS="-I%{_builddir}/pa_stable-v%{version}/include -L%{_builddir}/pa_stable-v%{version}/build" export LD_LIBRARY_PATH=%{_builddir}/pa_stable-v%{version}/build export PKG_CONFIG_PATH=%{_builddir}/pa_stable-v%{version}/build %cmake -DPortAudio_DIR=%{_builddir}/pa_stable-v%{version}/build %make_build %install cd build %make_install cd ../bindings/cpp/build %make_install # make install DESTDIR=%{?buildroot} find %{buildroot} -type f -name "*.la" -delete -print %post -n %{lname_c} -p /sbin/ldconfig %post -n %{lname_p} -p /sbin/ldconfig %postun -n %{lname_c} -p /sbin/ldconfig %postun -n %{lname_p} -p /sbin/ldconfig %files -n %{lname_c} %{_libdir}/libportaudio.so.%{soname_c}* %files -n %{lname_c} %{_libdir}/libportaudio.so.* %files -n %{lname_p} %{_libdir}/libportaudiocpp.so.%{soname_p}* %files devel %{_docdir}/* %{_includedir}/* %{_libdir}/pkgconfig/*.pc %{_libdir}/lib*.so %{_libdir}/cmake/PortAudio/*.cmake %{_libdir}/cmake/portaudio/*.cmake %{_libdir}/cmake/portaudio/modules/*.cmake %dir %{_libdir}/cmake/PortAudio %dir %{_libdir}/cmake/portaudio %dir %{_libdir}/cmake/portaudio/modules %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor