File supercollider.spec of Package supercollider

#
# spec file for package supercollider
#
# Copyright (c) 2022 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/
#


Name:           supercollider
Version:        3.12.2
Release:        0
Summary:        A platform for audio synthesis and algorithmic composition
License:        GPL-3.0-only
Group:          Development/Libraries/C and C++
URL:            https://supercollider.github.io
Source0:        https://github.com/supercollider/supercollider/releases/download/Version-3.12.2/SuperCollider-%{version}-Source.tar.bz2
Patch0:         Fixes-compatibility-with-libsndfile-1.1.0.patch
BuildRequires:  alsa-devel
BuildRequires:  cmake
BuildRequires:  emacs-nox
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  jack-devel
BuildRequires:  libQt5Concurrent-devel
BuildRequires:  libQt5Core-devel
BuildRequires:  libQt5Network-devel
BuildRequires:  libQt5OpenGL-devel
BuildRequires:  libQt5Sql-devel
BuildRequires:  libQt5Widgets-devel
BuildRequires:  libX11-devel
BuildRequires:  libXt-devel
BuildRequires:  libavahi-devel
BuildRequires:  libqt5-linguist-devel
BuildRequires:  libqt5-qtsvg-devel
BuildRequires:  libqt5-qtwebengine-devel
BuildRequires:  libqt5-qtwebsockets-devel
BuildRequires:  libsndfile-devel
BuildRequires:  libudev-devel

%description
SuperCollider is a platform for audio synthesis and algorithmic
composition, used by musicians, artists, and researchers working with
sound. It is free and open source software available for Windows,
macOS, and Linux.

SuperCollider consists of three separate components:
1. scsynth or supernova - audio engine (the "server")
2. sclang - programming language runtime interpreter including Qt graphical user interfaces
3. IDE (integrated development environment) - an editor for writing code and running supercollider

%package -n libsupercollider
Summary:        Library Files for %{name}
Group:          Development/Libraries/C and C++

%description -n libsupercollider
This package contains libraries necessary for developing
applications based on %{name}.

%package devel
Summary:        Development Files for %{name}
Group:          Development/Libraries/C and C++

%description devel
This package contains development files necessary for developing
applications based on %{name}.

%prep
%setup -q -n SuperCollider-%{version}-Source

%if 0%{?suse_version} > 1500
%patch0 -p1
%endif

%build

# Delete nonsense hidden files
find . -name '.placeholder' -delete

%cmake \
    -DLIB_SUFFIX=64 \
    -DCPACK_STRIP_FILES=YES
%cmake_build

%install
%cmake_install

%files
%{_bindir}/*
%{_datadir}/*
%attr(644,root,root) %{_datadir}/applications/SuperColliderIDE.desktop

%files -n libsupercollider
%{_libdir}/*

%files devel
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by