Sync from SUSE:SLFO:Main jack revision a76166464a3e43c2d37837a8f1b6700d

This commit is contained in:
Adrian Schröter 2024-05-03 13:51:53 +02:00
commit 8a26d28052
5 changed files with 1282 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

5
baselibs.conf Normal file
View File

@ -0,0 +1,5 @@
jack
libjack0
libjacknet0
libjackserver0
libjack-devel

BIN
jack-1.9.22.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

1044
jack.changes Normal file

File diff suppressed because it is too large Load Diff

207
jack.spec Normal file
View File

@ -0,0 +1,207 @@
#
# spec file for package jack
#
# Copyright (c) 2023 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 buildoc 1
%define debug_package_requires %{name} = %{version}-%{release}
# Switch the --dbus on and off, on = 1
%define wdbus 1
%define sonum 0
Name: jack
Version: 1.9.22
Release: 0
#to_be_filled_by_service
Summary: Jack-Audio Connection Kit
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Sound Daemons
URL: https://jackaudio.org/
Source0: https://github.com/jackaudio/jack2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: readline-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(celt) >= 0.5.0
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(eigen3) >= 3.1.2
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(flac++)
BuildRequires: pkgconfig(libffado) >= 2.0.1.2040
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sndfile)
Provides: jack-audio-connection-kit
Provides: jack2 = %{version}
Obsoletes: jack2 < %{version}
%description
JACK is system for handling real-time, low latency audio
(and MIDI). It runs on GNU/Linux, Solaris, FreeBSD, OS X and
Windows (and can be ported to other POSIX-conformant
platforms). It can connect a number of different
applications to an audio device, as well as allowing them to
share audio between themselves. Its clients can run in their
own processes (ie. as normal applications), or can they can
run within the JACK server (ie. as a "plugin"). JACK also
has support for distributing audio processing across a
network, both fast & reliable LANs as well as slower, less
reliable WANs.
%package -n libjack%{sonum}
Summary: Jack Audio Connection Kit Library
Group: System/Libraries
Provides: libjack = %{version}
Obsoletes: libjack < %{version}
Provides: libjack2
%description -n libjack%{sonum}
This package contains the library to access JACK
(Jack Audio ConnectionKit).
%package -n libjacknet%{sonum}
Summary: Jack Audio Connection Kit Library
# libjacknet was packaged with libjack0 prior to 1.9.12
Group: System/Libraries
Conflicts: libjack0 < 1.9.12
Provides: libjack0:%{_libdir}/libjacknet.so.%{sonum}*
%description -n libjacknet%{sonum}
This package contains the library to access JACK
(Jack Audio ConnectionKit) network functions.
%package -n libjackserver%{sonum}
Summary: Jack Audio Connection Kit Library
# libjackserver was packaged with libjack0 prior to 1.9.12
Group: System/Libraries
Conflicts: libjack0 < 1.9.12
Provides: libjack0:%{_libdir}/libjackserver.so.%{sonum}*
%description -n libjackserver%{sonum}
This package contains the library to access JACK
(Jack Audio ConnectionKit) server functions.
%package -n libjack-devel
Summary: Development package for jack
Group: Development/Libraries/C and C++
Requires: libjack%{sonum} = %{version}
Requires: libjacknet%{sonum} = %{version}
Requires: libjackserver%{sonum} = %{version}
Requires: pkgconfig
Provides: jack-audio-connection-kit-devel
Provides: jack-devel
Provides: libjack2-devel = %{version}
Obsoletes: libjack2-devel < %{version}
%description -n libjack-devel
This package contains the files needed to compile programs that
communicate with jack clients/servers.
%prep
%setup -q -n %{name}2-%{version}
%autopatch -p1
#Change python script headers to python3
for i in `grep -rl "%{_bindir}/env python"`;do sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' ${i} ;done
%build
%define _lto_cflags %{nil}
export CFLAGS="%{optflags} -ggdb -fPIC"
export CXXFLAGS="$CFLAGS"
./waf -v %{?_smp_mflags} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--classic \
%if 0%{?wdbus} == 1
--dbus \
%endif
--firewire \
%if %{buildoc} == 1
--doxygen \
%endif
--alsa \
--ports=1024 \
--enable-pkg-config-dbus-service-dir \
--mandir=%{_mandir}/man1 \
configure
./waf -v %{?_smp_mflags} build
%install
./waf -j1 install --destdir=%{buildroot}
mkdir -p %{buildroot}%{_docdir}
%if %{buildoc} == 1
mv %{buildroot}%{_datadir}/jack-audio-connection-kit %{buildroot}%{_docdir}
%endif
%fdupes -s %{buildroot}%{_docdir}
%post -n libjack%{sonum} -p /sbin/ldconfig
%postun -n libjack%{sonum} -p /sbin/ldconfig
%post -n libjacknet%{sonum} -p /sbin/ldconfig
%postun -n libjacknet%{sonum} -p /sbin/ldconfig
%post -n libjackserver%{sonum} -p /sbin/ldconfig
%postun -n libjackserver%{sonum} -p /sbin/ldconfig
%files
%doc ChangeLog.rst README*
%license COPYING
%{_mandir}/man1/*
%{_bindir}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/%{name}_alsa.so
%{_libdir}/%{name}/%{name}_dummy.so
%{_libdir}/%{name}/%{name}_net.so
%{_libdir}/%{name}/netmanager.so*
%{_libdir}/%{name}/profiler.so*
%{_libdir}/%{name}/netadapter.so*
%{_libdir}/%{name}/audioadapter.so*
%{_libdir}/%{name}/%{name}_loopback.so*
%{_libdir}/%{name}/%{name}_netone.so*
%{_libdir}/%{name}/jack_alsarawmidi.so
%{_libdir}/%{name}/%{name}_firewire.so
%{_libdir}/%{name}/%{name}_proxy.so
%if 0%{?wdbus} == 1
%{_datadir}/dbus-1/services/org.jackaudio.service
%endif
%files -n libjack%{sonum}
%{_libdir}/libjack.so.%{sonum}*
%files -n libjacknet%{sonum}
%{_libdir}/libjacknet.so.%{sonum}*
%files -n libjackserver%{sonum}
%{_libdir}/libjackserver.so.%{sonum}*
%files -n libjack-devel
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}
%if %{buildoc} == 1
%dir %{_docdir}/jack-audio-connection-kit
%doc %{_docdir}/jack-audio-connection-kit/*
%endif
%changelog