File pd.spec of Package pd
#
# spec file for package pd
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define pkg_version 0.55-2
Name: pd
Version: 0.55.2
Release: 0
Summary: Pure Data (Pd) multimedia programming language
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Utilities
URL: https://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
Patch1: pd-fiddle_fsqrt.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext-runtime
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: portmidi-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(portaudio-2.0)
Conflicts: pd-extended
%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
%autosetup -p1 -n pd-%{pkg_version}
%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_build 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
%license LICENSE.txt
%doc README.txt
%{_mandir}/man1/*
%{_bindir}/pd
%{_bindir}/pdreceive
%{_bindir}/pdsend
%{_bindir}/pd-gui
%{_libdir}/pd/
%{_datadir}/applications/pd.desktop
%{_datadir}/pixmaps/pd.png
%{_datadir}/applications/org.puredata.pd-gui.desktop
%{_datadir}/icons/hicolor/48x48/apps/puredata.png
%{_datadir}/icons/hicolor/512x512/apps/puredata.png
%{_datadir}/icons/hicolor/scalable/apps/puredata.svg
%{_datadir}/metainfo/org.puredata.pd-gui.metainfo.xml
%{_datadir}/pd/font/DejaVuSansMono-Bold.ttf
%{_datadir}/pd/font/DejaVuSansMono-BoldOblique.ttf
%{_datadir}/pd/font/DejaVuSansMono-Oblique.ttf
%{_datadir}/pd/font/DejaVuSansMono.ttf
%{_datadir}/pixmaps/puredata.xpm
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/512x512/apps
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%files devel
%{_includedir}/pd/
%{_includedir}/m_pd.h
%{_libdir}/pkgconfig/pd.pc
%{_datadir}/pd/LICENSE.txt
%{_datadir}/pd/README.txt
%{_datadir}/pd/font/LICENSE
%{_datadir}/pd/font/README.txt
%dir %{_datadir}/pd
%dir %{_datadir}/pd/font
%changelog