File jack.spec of Package jack

#
# spec file for package jack (Version 0.116.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           jack
BuildRequires:  alsa-devel doxygen flac-devel gcc-c++ pkgconfig readline-devel
BuildRequires:  libfreebob-devel libsamplerate-devel libsndfile-devel
%define my_provides /tmp/my-provides
Summary:        Jack Audio Connection Kit
Version:        0.116.2
Release:        4
License:        GPL v2 or later
Group:          System/Sound Daemons
# Source:       jack-%{cvs_version}.tar.bz2
Source:         jack-audio-connection-kit-no-rsa-%{version}.tar.bz2
Patch:          jack-fix-pclose.diff
Patch1:         jack-fix-strdup-leak.diff
Url:            http://jackaudio.org/
Provides:       jack-audio-connection-kit
# bug437293
%ifarch ppc64
Obsoletes:      jack-64bit
%endif
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
JACK is a low-latency audio server written primarily for the Linux
operating system. It can connect a number of different applications to
an audio device, as well as allow them to share audio between
themselves. Its clients can run in their own processes (as a normal
application), or they can run within a JACK server (as a plug-in).



Authors:
--------
    pbd@users.sourceforge.net

%package -n libjack0
License:        LGPL v2.1 or later
Summary:        Jack Audio Connection Kit Library
Group:          System/Libraries
Provides:       libjack
Obsoletes:      libjack
# bug437293
%ifarch ppc64
Obsoletes:      jack-64bit
%endif
#

%description -n libjack0
This package contains the library to access JACK (Jack Audio Connection
Kit).



Authors:
--------
    pbd@users.sourceforge.net

%package -n libjack-devel
License:        LGPL v2.1 or later
Summary:        Development package for jack
Group:          Development/Libraries/C and C++
Requires:       libjack = %{version}, pkgconfig
Requires:       libsamplerate-devel
Provides:       jack-audio-connection-kit-devel
Provides:       jack-devel
Obsoletes:      jack-devel
# bug437293
%ifarch ppc64
Obsoletes:      jack-devel-64bit
%endif
#

%description -n libjack-devel
This package contains the files needed to compile programs that
communicates jack clients/servers.



Authors:
--------
    pbd@sourceforge.net

%package freebob
License:        GPL v2 or later
Summary:        FreeBoB backend for JACK
Group:          System/Sound Daemons
Requires:       jack = %{version}

%description freebob
This package contains a FreeBoB backend driver for JACK (Jack Audio
Connection Kit), which supports devices known as FireWire or i-Link.



Authors:
--------
    Pieter Palmers <pieterpalmers@users.sourceforge.net>

%prep
%setup -q -n jack-audio-connection-kit-%{version}
%patch -p1
%patch1 -p1

%build
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
# autoreconf -fi
libtoolize -f
aclocal -I config
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
export CFLAGS
%configure \
     --disable-static \
     --disable-optimize \
     --enable-timestamps \
     --disable-ensure-mlock \
     --enable-resize \
     --enable-timestamps \
     --with-html-dir=%{_docdir}/%{name} \
     --with-default-tmpdir=/dev/shm
make %{?jobs:-j %jobs}

%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp AUTHORS COPYING.* README* TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v $RPM_BUILD_ROOT%{_libdir}/jack | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define _use_internal_dependecy_generator 0
%define __find_provides %{my_provides}

%post -n libjack0 -p /sbin/ldconfig

%postun -n libjack0 -p /sbin/ldconfig

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT
rm -f %{my_provides}

%files
%defattr(-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING.GPL
%doc %{_docdir}/%{name}/README*
%doc %{_docdir}/%{name}/TODO
%doc %{_mandir}/man1/*
%{_bindir}/*
%dir %{_libdir}/jack
%{_libdir}/jack/inprocess.so
%{_libdir}/jack/intime.so
%{_libdir}/jack/jack_alsa.so
%{_libdir}/jack/jack_dummy.so
%{_libdir}/jack/jack_oss.so
%{_libdir}/jack/jack_net.so

%files -n libjack0
%defattr(-, root, root)
%{_libdir}/lib*.so.*

%files -n libjack-devel
%defattr(-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/reference
%doc %{_docdir}/%{name}/COPYING.LGPL
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/jack/*.*a
%{_libdir}/pkgconfig/*
%{_includedir}/jack

%files freebob
%defattr(-, root, root)
%{_libdir}/jack/jack_freebob.so

%changelog
openSUSE Build Service is sponsored by