File pd.spec of Package pd

# spec file for package pd
# Copyright (c) 2015 SUSE LINUX 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

%define pkg_version 0.50-0
Name:           pd
Version:        0.50.0
Release:        0
Summary:        Pure Data (Pd) multimedia programming language
License:        BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Utilities
Source1:        pd.desktop
Source2:        pd.png
Source3:        pd-rpmlintrc
Source99:       %{name}.changes
Patch0:         pd.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext-runtime
BuildRequires:  libtool
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(portaudio-2.0)
BuildRequires:  portmidi-devel
Conflicts:      pd-extended
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Pure Data (or pd) is a visual programming language developed by Miller
Puckette in the 1990s for the creation of interactive computer music
and multimedia works.

%package devel
Summary:        Files for pd development
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
The header files and development tools for Pure Data.

%setup -q -n pd-%{pkg_version}
%patch0 -p 1

%configure \
	--disable-debug \
	--disable-oss \
	--disable-jack-framework \
	--enable-alsa \
	--enable-jack \
	--disable-asio \
	--without-local-portaudio \
	--without-local-portmidi \
	--enable-portaudio \
	--enable-portmidi \
	--enable-fftw \
make %{?_smp_mflags} all

install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/pd.desktop
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/pd.png
%fdupes -s %{buildroot}%{_prefix}



%doc README.txt LICENSE.txt

%files devel