File postfish.spec of Package postfish

# spec file for package postfish (Version svn17492)
# Copyright (c) 2010 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

# norootforbuild

Name:           postfish
BuildRequires:  fftw3-devel gtk2-devel
Requires:       fftw3 gtk2
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
PreReq:         %install_info_prereq
AutoReqProv:    on
Version:        svn17492
Release:        1
Summary:        A digital audio post-processing tool
Source:         %{name}-%{version}.tar.bz2
Patch0:         happy-gcc43.diff
Patch1:         bnc_536201_fclose.patch
Patch2:         postfish-gtk2.19.7.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

the Postfish is a digital audio post-processing, restoration, filtering
and mixdown tool. It works as a linear audio filter, much like a rack
of analog effects. The first stage of the filter pipeline provides a
bank of configurable per-channel processing filters for up to 32 input
channels. The second stage provides mixdown of the processed input
audio into a group of up to eight output channels. The third stage
applies processing filters to the output group post-mixdown.

    TD, Xiph.Org

%setup -q
%patch0 -p1
%patch1 -p1
%if 0%{suse_version} > 1120
%patch2 -p1

%define archopt %{nil}
%ifarch ppc ppc64
%define archopt -maltivec
make CC="gcc %{archopt} $RPM_OPT_FLAGS"  ETCDIR=%{_datadir}/%{name}

install -d -m 0755 $RPM_BUILD_ROOT/%{_bindir}
install -d -m 0755 $RPM_BUILD_ROOT/%{_mandir}/man1
install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 0755 postfish   $RPM_BUILD_ROOT/%{_bindir}
install -m 0644 postfish.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 0644 postfish-*rc $RPM_BUILD_ROOT/%{_datadir}/%{name}


openSUSE Build Service is sponsored by