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 http://bugs.opensuse.org/
#


%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
Url:            http://puredata.info
Source:         http://msp.ucsd.edu/Software/%{name}-%{pkg_version}.src.tar.gz
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

%description
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.

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

%build
./autogen.sh
%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 \
	--with-wish=wish
make %{?_smp_mflags} all

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

%post
/sbin/ldconfig
%desktop_database_post

%postun
/sbin/ldconfig
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%{_mandir}/man1/*
%{_bindir}/pd
%{_bindir}/pdreceive
%{_bindir}/pdsend
%{_bindir}/pd-gui
%{_libdir}/pd/
%{_datadir}/applications/pd.desktop
%{_datadir}/pixmaps/pd.png

%files devel
%defattr(-,root,root)
%{_includedir}/pd/
%{_includedir}/m_pd.h
%{_libdir}/pkgconfig/pd.pc

%changelog