epel8
Orcan Ogetbil 15 years ago
parent acdb66fd59
commit 387a56dc36

@ -1 +1 @@
jack-audio-connection-kit-0.118.0.tar.gz jack-1.9.5.tar.bz2

@ -0,0 +1,11 @@
--- jack-1.9.5/wscript~ 2010-02-12 05:58:08.000000000 -0500
+++ jack-1.9.5/wscript 2010-05-18 14:14:27.000000000 -0400
@@ -230,6 +230,8 @@
print Logs.colors.NORMAL,
print
+ conf.env.append_unique('LINKFLAGS', '-lm -lstdc++')
+
if Options.options.mixed == True:
env_variant2 = conf.env.copy()
conf.set_env_name('lib32', env_variant2)

@ -1,5 +0,0 @@
<hr size="1"><address style="text-align: right;"><small>Generated for $projectname by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>$doxygenversion</small></address>
</body>
</html>

@ -0,0 +1,22 @@
diff -rupN jack-1.9.5.old/doxyfile jack-1.9.5/doxyfile
--- jack-1.9.5.old/doxyfile 2010-02-12 05:57:30.000000000 -0500
+++ jack-1.9.5/doxyfile 2010-07-19 23:18:57.000000000 -0400
@@ -413,7 +413,7 @@ HTML_HEADER =
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER =
+HTML_FOOTER = no_date_footer.html
# The HTML_STYLESHEET tag can be used to specify a user defined cascading
# style sheet that is used by each HTML page. It can be used to
diff -rupN jack-1.9.5.old/no_date_footer.html jack-1.9.5/no_date_footer.html
--- jack-1.9.5.old/no_date_footer.html 1969-12-31 19:00:00.000000000 -0500
+++ jack-1.9.5/no_date_footer.html 2010-07-19 23:19:19.000000000 -0400
@@ -0,0 +1,6 @@
+<hr size="1"><address style="text-align: right;"><small>
+Generated for $projectname by <a href="http://www.doxygen.org/
+index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
+$doxygenversion</small></address>
+</body>
+</html>

@ -1,42 +1,56 @@
Summary: The Jack Audio Connection Kit %global groupname jackuser
Name: jack-audio-connection-kit %global pagroup pulse-rt
Version: 0.118.0
Release: 1%{?dist} Summary: The Jack Audio Connection Kit
License: GPLv2 and LGPLv2 Name: jack-audio-connection-kit
Group: System Environment/Daemons Version: 1.9.5
Source0: http://www.jackaudio.org/downloads/%{name}-%{version}.tar.gz Release: 1%{?dist}
Source1: %{name}-README.Fedora # The entire source (~500 files) is a mixture of these three licenses
Source2: %{name}-script.pa License: GPLv2 and GPLv2+ and LGPLv2+
Source3: %{name}-no_date_footer.html Group: System Environment/Daemons
Source4: %{name}-limits.conf URL: http://www.jackaudio.org
URL: http://www.jackaudio.org Source0: http://www.grame.fr/~letz/jack-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source1: %{name}-README.Fedora
Source2: %{name}-script.pa
Source3: %{name}-limits.conf
# No-date-footer hack to remove dates from doxygen documentation
Patch0: jack-audio-connection-kit-no_date_footer.patch
# Enables renaming of the jack ports based on a configuration file
# Under discussion upstream. We need it for CCRMA compatibility
Patch1: jack-infrastructure.patch
# Fix DSO linking
Patch2: jack-DSO-linking.patch
# Manpages. From ustream trunk
Patch3: jack-manpages.patch
# Make jack compatible with both the Fedora kernel and the realtime kernel
Patch4: jack-realtime-compat.patch
# Compile against celt-0.8.0
Patch5: jack-celt08.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel BuildRequires: alsa-lib-devel
BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: dbus-devel
BuildRequires: pkgconfig BuildRequires: celt-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: readline-devel, ncurses-devel BuildRequires: expat-devel
BuildRequires: autoconf >= 2.59, automake >= 1.9.3, libtool BuildRequires: libffado-devel
%ifnarch s390 s390x BuildRequires: libfreebob-devel
BuildRequires: libfreebob-devel >= 1.0.0 BuildRequires: libsamplerate-devel
%endif BuildRequires: libsndfile-devel
BuildRequires: ncurses-devel
%define groupname jackuser BuildRequires: pkgconfig
%define pagroup pulse-rt BuildRequires: python2
BuildRequires: readline-devel
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): /sbin/ldconfig Requires: pam
Requires: pam
# To fix multilib conflicts take a basepoint as following
%define doxyfile doc/reference.doxygen.in
%description %description
JACK is a low-latency audio server, written primarily for the Linux JACK is a low-latency audio server, written primarily for the Linux
operating system. It can connect a number of different applications to operating system. It can connect a number of different applications to
an audio device, as well as allowing them to share audio between an audio device, as well as allowing them to share audio between
themselves. Its clients can run in their own processes (ie. as a themselves. Its clients can run in their own processes (i.e. as a
normal application), or can they can run within a JACK server (ie. a normal application), or can they can run within a JACK server (i.e. a
"plugin"). "plugin").
JACK is different from other audio server efforts in that it has been JACK is different from other audio server efforts in that it has been
@ -45,61 +59,58 @@ work. This means that it focuses on two key areas: synchronous
execution of all clients, and low latency operation. execution of all clients, and low latency operation.
%package devel %package devel
Summary: Header files for Jack Summary: Header files for Jack
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
Header files for the Jack Audio Connection Kit. Header files for the Jack Audio Connection Kit.
%package example-clients %package example-clients
Summary: Example clients that use Jack Summary: Example clients that use Jack
Group: Applications/Multimedia Group: Applications/Multimedia
Requires: %{name} = %{version} Requires: %{name} = %{version}-%{release}
%description example-clients %description example-clients
Small example clients that use the Jack Audio Connection Kit. Small example clients that use the Jack Audio Connection Kit.
%prep %prep
%setup -q %setup -q -n jack-%{version}
%patch0 -p1 -b .nodate
# Put custom HTML_FOOTER to avoid timestamp inside %patch1 -p1 -b .infra
# (recipe was taken from http://fedoraproject.org/wiki/PackagingDrafts/MultilibTricks) %patch2 -p1 -b .linking
cp %{SOURCE3} doc/no_date_footer.html %patch3 -p1
# Fix Doxyfile: %patch4 -p1
# - apply custom html footer (#477718, #341621) %if 0%{?fedora} > 13
# - avoid font packaging (workaround for #477402, fix will come with #478747) %patch5 -p1 -b .celt08
sed -e 's,^HTML_FOOTER[ \t]*=.*,HTML_FOOTER = no_date_footer.html,; %endif
s,^GENERATE_LATEX[ \t]*=.*,GENERATE_LATEX = NO,;' %{doxyfile} > %{doxyfile}.new
touch -r %{doxyfile} %{doxyfile}.new
mv -f %{doxyfile}.new %{doxyfile}
%build # Fix encoding issues
# x86_64 issue reported by Rudolf Kastl (not checked, but not bad). for file in ChangeLog README TODO; do
autoreconf --force --install sed 's|\r||' $file > $file.tmp
iconv -f ISO-8859-1 -t UTF8 $file.tmp > $file.tmp2
touch -r $file $file.tmp2
mv -f $file.tmp2 $file
done
%configure \ %build
--with-html-dir=%{_docdir} \ export CPPFLAGS="$RPM_OPT_FLAGS"
%ifnarch s390 s390x ./waf configure --prefix=%{_prefix} --libdir=/%{_lib} --doxygen --dbus --classic
--enable-freebob \ ./waf build %{?_smp_mflags} -v
%endif
--disable-oss \
--disable-portaudio \
--with-default-tmpdir=/dev/shm
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
./waf --destdir=$RPM_BUILD_ROOT install
# can't use the makeinstall macro, jack needs DESTDIR and prefix gets # move doxygen documentation to the right place
# added to it and messes up part of the install mv $RPM_BUILD_ROOT%{_datadir}/jack-audio-connection-kit/reference .
make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT%{_datadir}/jack-audio-connection-kit
# install our limits to the /etc/security/limits.d # install our limits to the /etc/security/limits.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d
sed -e 's,@groupname@,%groupname,g; s,@pagroup@,%pagroup,g;' \ sed -e 's,@groupname@,%groupname,g; s,@pagroup@,%pagroup,g;' \
%{SOURCE4} > $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/99-jack.conf %{SOURCE3} > $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/99-jack.conf
# prepare README.Fedora for documentation including # prepare README.Fedora for documentation including
install -p -m644 %{SOURCE1} README.Fedora install -p -m644 %{SOURCE1} README.Fedora
@ -107,15 +118,11 @@ install -p -m644 %{SOURCE1} README.Fedora
# install pulseaudio script for jack (as documentation part) # install pulseaudio script for jack (as documentation part)
install -p -m644 %{SOURCE2} jack.pa install -p -m644 %{SOURCE2} jack.pa
# remove extra install of the documentation # For compatibility with jack1
rm -fr $RPM_BUILD_ROOT%{_docdir} mv $RPM_BUILD_ROOT%{_bindir}/jack_rec $RPM_BUILD_ROOT%{_bindir}/jackrec
# remove *.la files
rm -f $RPM_BUILD_ROOT%{_libdir}/jack/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# Fix timestamps to avoid multiarch conflicts # Fix permissions of the modules
find doc/reference -type f | xargs touch -r %{doxyfile} chmod 755 $RPM_BUILD_ROOT%{_libdir}/jack/*.so $RPM_BUILD_ROOT%{_libdir}/libjack*.so.*.*.*
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -129,37 +136,56 @@ exit 0
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc AUTHORS TODO COPYING* %doc ChangeLog README README_NETJACK2 TODO
%doc README.Fedora %doc README.Fedora
%doc jack.pa %doc jack.pa
%{_bindir}/alsa_in
%{_bindir}/alsa_out
%{_bindir}/jackd %{_bindir}/jackd
%{_bindir}/jack_load %{_bindir}/jack_load
%{_bindir}/jack_unload %{_bindir}/jack_unload
%{_bindir}/jack_freewheel %{_bindir}/jack_freewheel
%exclude %{_bindir}/jackdbus
%exclude %{_bindir}/jack_control
%{_bindir}/jack_cpu
%{_bindir}/jack_cpu_load
%{_bindir}/jack_delay
%{_bindir}/jack_server_control
%{_bindir}/jack_test
%{_bindir}/jack_thru
%{_bindir}/jack_zombie
%{_datadir}/dbus-1/services/org.jackaudio.service
%{_libdir}/jack/ %{_libdir}/jack/
%{_mandir}/man1/jack*.1*
%{_libdir}/libjack.so.* %{_libdir}/libjack.so.*
%{_libdir}/libjackserver.so.* %{_libdir}/libjackserver.so.*
%{_sysconfdir}/security/limits.d/*.conf %config(noreplace) %{_sysconfdir}/security/limits.d/*.conf
%{_mandir}/man1/alsa_*.1*
%{_mandir}/man1/jack_freewheel*.1*
%{_mandir}/man1/jack_load*.1*
%{_mandir}/man1/jack_unload*.1*
%{_mandir}/man1/jackd*.1*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root,-)
%doc doc/reference %doc reference/*
%{_includedir}/jack/ %{_includedir}/jack/
%{_libdir}/libjack.so %{_libdir}/libjack.so
%{_libdir}/libjackserver.so %{_libdir}/libjackserver.so
%{_libdir}/pkgconfig/jack.pc %{_libdir}/pkgconfig/jack.pc
%files example-clients %files example-clients
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/jackrec %{_bindir}/jackrec
%{_bindir}/jack_alias %{_bindir}/jack_alias
%{_bindir}/jack_bufsize %{_bindir}/jack_bufsize
%{_bindir}/jack_connect %{_bindir}/jack_connect
%{_bindir}/jack_disconnect %{_bindir}/jack_disconnect
%{_bindir}/jack_evmon %{_bindir}/jack_evmon
%{_bindir}/jack_impulse_grabber # These are not ready yet
#{_bindir}/jack_impulse_grabber
%exclude %{_mandir}/man1/jack_impulse_grabber.1*
%{_bindir}/jack_lsp %{_bindir}/jack_lsp
%{_bindir}/jack_metro %{_bindir}/jack_metro
%{_bindir}/jack_netsource %{_bindir}/jack_netsource
@ -169,11 +195,28 @@ exit 0
%{_bindir}/jack_wait %{_bindir}/jack_wait
%{_bindir}/jack_monitor_client %{_bindir}/jack_monitor_client
%{_bindir}/jack_simple_client %{_bindir}/jack_simple_client
%{_bindir}/jack_transport_client
%{_bindir}/jack_midiseq %{_bindir}/jack_midiseq
%{_bindir}/jack_midisine %{_bindir}/jack_midisine
%{_bindir}/jack_multiple_metro
%{_mandir}/man1/jack_bufsize.1*
%{_mandir}/man1/jack_connect.1*
%{_mandir}/man1/jack_disconnect.1*
%{_mandir}/man1/jack_lsp.1*
%{_mandir}/man1/jack_metro.1*
%{_mandir}/man1/jack_monitor_client.1*
%{_mandir}/man1/jack_netsource.1*
%{_mandir}/man1/jack_samplerate.1*
%{_mandir}/man1/jack_showtime.1*
%{_mandir}/man1/jack_simple_client.1*
%{_mandir}/man1/jack_transport.1*
%{_mandir}/man1/jack_wait.1*
%{_mandir}/man1/jackrec.1*
%changelog %changelog
* Mon Jul 19 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.9.5-1
- Jack 2!
* Sat Nov 21 2009 Andy Shevchenko <andy@smile.org.ua> - 0.118.0-1 * Sat Nov 21 2009 Andy Shevchenko <andy@smile.org.ua> - 0.118.0-1
- update to 0.118.0 (should fix #533419) - update to 0.118.0 (should fix #533419)
- remove upstreamed patch - remove upstreamed patch
@ -274,7 +317,7 @@ exit 0
- remove --enable-stripped-jackd and --enable-optimize (use default flags) - remove --enable-stripped-jackd and --enable-optimize (use default flags)
* Fri May 19 2006 Andy Shevchenko <andriy@asplinux.com.ua> 0.101.1-8 * Fri May 19 2006 Andy Shevchenko <andriy@asplinux.com.ua> 0.101.1-8
- uniform directories items at %files section - uniform directories items at %%files section
* Wed May 17 2006 Andy Shevchenko <andriy@asplinux.com.ua> 0.101.1-7 * Wed May 17 2006 Andy Shevchenko <andriy@asplinux.com.ua> 0.101.1-7
- change License tag to GPL/LGPL - change License tag to GPL/LGPL

@ -0,0 +1,30 @@
diff -rupN jack-1.9.5.old/common/JackNetOneDriver.cpp jack-1.9.5/common/JackNetOneDriver.cpp
--- jack-1.9.5.old/common/JackNetOneDriver.cpp 2010-02-12 05:57:48.000000000 -0500
+++ jack-1.9.5/common/JackNetOneDriver.cpp 2010-07-20 01:26:44.000000000 -0400
@@ -709,9 +709,9 @@ JackNetOneDriver::render_payload_to_jack
CELTDecoder *decoder = (CELTDecoder *)src_node->data;
if( !packet_payload )
- celt_decode_float( decoder, NULL, net_period_down, buf );
+ celt_decode_float( decoder, NULL, net_period_down, buf, NULL );
else
- celt_decode_float( decoder, packet_bufX, net_period_down, buf );
+ celt_decode_float( decoder, packet_bufX, net_period_down, buf, NULL );
src_node = jack_slist_next (src_node);
}
diff -rupN jack-1.9.5.old/common/netjack_packet.c jack-1.9.5/common/netjack_packet.c
--- jack-1.9.5.old/common/netjack_packet.c 2010-02-12 05:57:47.000000000 -0500
+++ jack-1.9.5/common/netjack_packet.c 2010-07-20 01:12:42.000000000 -0400
@@ -1428,9 +1428,9 @@ render_payload_to_jack_ports_celt (void
CELTDecoder *decoder = src_node->data;
if( !packet_payload )
- celt_decode_float( decoder, NULL, net_period_down, buf );
+ celt_decode_float( decoder, NULL, net_period_down, buf, NULL );
else
- celt_decode_float( decoder, packet_bufX, net_period_down, buf );
+ celt_decode_float( decoder, packet_bufX, net_period_down, buf, NULL );
src_node = jack_slist_next (src_node);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,56 @@
diff -rupN jack-1.9.5.old/common/JackControlAPI.cpp jack-1.9.5/common/JackControlAPI.cpp
--- jack-1.9.5.old/common/JackControlAPI.cpp 2010-02-12 05:57:47.000000000 -0500
+++ jack-1.9.5/common/JackControlAPI.cpp 2010-07-20 00:42:55.000000000 -0400
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <assert.h>
#include <signal.h>
+#include <sys/utsname.h>
#include "jslist.h"
#include "driver_interface.h"
@@ -675,7 +676,13 @@ EXPORT jackctl_server_t * jackctl_server
goto fail_free_parameters;
}
- value.i = 10;
+ struct utsname utsname;
+ int success;
+ success = uname( &utsname );
+ if( success == 0 && strstr( utsname.version, "ccrma" ) )
+ value.i = 60;
+ else
+ value.i = 20;
if (jackctl_add_parameter(
&server_ptr->parameters,
"realtime-priority",
diff -rupN jack-1.9.5.old/common/JackServerGlobals.cpp jack-1.9.5/common/JackServerGlobals.cpp
--- jack-1.9.5.old/common/JackServerGlobals.cpp 2010-02-12 05:57:47.000000000 -0500
+++ jack-1.9.5/common/JackServerGlobals.cpp 2010-07-20 00:40:43.000000000 -0400
@@ -22,6 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridg
#include "shm.h"
#include <getopt.h>
#include <errno.h>
+#include <sys/utsname.h>
static char* server_name = NULL;
@@ -67,9 +68,17 @@ void JackServerGlobals::Delete()
bool JackServerGlobals::Init()
{
+ struct utsname utsname;
+ int success;
+ success = uname( &utsname );
+
int realtime = 0;
int client_timeout = 0; /* msecs; if zero, use period size. */
- int realtime_priority = 10;
+ int realtime_priority;
+ if( success == 0 && strstr( utsname.version, "ccrma" ) )
+ realtime_priority = 60;
+ else
+ realtime_priority = 20;
int verbose_aux = 0;
int do_mlock = 1;
unsigned int port_max = 128;

@ -1 +1 @@
d58e29a55f285d54e75134cec8e02a10 jack-audio-connection-kit-0.118.0.tar.gz fdb86434b57255139b72c7f91e827fea jack-1.9.5.tar.bz2

Loading…
Cancel
Save