File jack_capture.spec of Package jack_capture

# spec file for package jack_capture
# Copyright (c) 2005 JackLab, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild
%if 0%{?fedora_version}
%global debug_package %{nil}
%endif

Name: 		jack_capture
Summary: 	A small program to jack 
Version: 	0.9.73
Release: 	1
Source0:	%{name}-%{version}.tar.xz
URL:	 	http://ccrma.stanford.edu/~kjetil/src/	
License:	GPL-2.0+
Group:		Productivity/Multimedia/Utilities
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libsndfile-devel
# for GTK2 GUI
BuildRequires: gtk2-devel

%if %{defined fedora}
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: pkgconfig
%else
BuildRequires: libjack-devel
BuildRequires: pkg-config
%endif


%description
jack_capture is a small program to capture whatever
sound is going out to your speakers into a file.

Author: Kjetil S. Matheussen

%prep
%setup -q -n %{name}-%{version}

%build
export CXXFLAGS="%{optflags}"
%__make
%__make %{name}_gui2

%install

%__install -dm 755 %{buildroot}%{_bindir}
%__install -s -m 755 %{name} %{buildroot}%{_bindir}
%__install -s -m 755 %{name}_gui2 %{buildroot}%{_bindir}
%__install -m 755 %{name}_gui %{buildroot}%{_bindir}

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by