File ossia-score.spec of Package ossia-score
#
# spec file for package ossia-score
#
# Copyright (c) 2021 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: ossia-score
Version: 3.0.10
Release: 0
Summary: Interactive sequencer for the intermedia arts
License: GPL-3.0-only
URL: https://ossia.io
Source0: https://github.com/ossia/score/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: faustlibs-7a42e2f.tar.gz
Patch0: 01-faustlibs-bundled.patch
BuildRequires: cmake
BuildRequires: llvm
BuildRequires: llvm-devel
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5ScriptTools)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: faust-devel
BuildRequires: libfaust2
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(lilv-0)
BuildRequires: pkgconfig(suil-0)
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisenc)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: alsa-devel
BuildRequires: sndio-devel
BuildRequires: libboost_headers-devel
BuildRequires: fftw3-threads-devel
BuildRequires: libQt5Widgets-private-headers-devel
BuildRequires: libqt5-qtdeclarative-private-headers-devel
%description
ossia score is a sequencer for audio-visual artists, designed to create interactive shows.
Sequence OSC, MIDI, DMX, sound, video and more, between multiple software and hardware, create interactive and intermedia scores and script with JavaScript, PureData or C++ to customize your score.
%prep
%setup -q
%autopatch -p0
cp %{SOURCE1} .
%build
%cmake -DCMAKE_UNITY_BUILD=1 -DDEPLOYMENT_BUILD=1 -DENABLE_EXTERNAL_LIBS=On -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix}
%cmake_build
%install
chmod -x README.md LICENSE.txt
cd build
cmake -DCMAKE_INSTALL_DO_STRIP=1 -DCOMPONENT=OssiaScore -P cmake_install.cmake
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/appdata
cp ../src/lib/resources/ossia-score.png %{buildroot}%{_datadir}/pixmaps/
cp ../cmake/Deployment/Linux/ossia-score.desktop.in %{buildroot}%{_datadir}/applications/ossia-score.desktop
cp ../cmake/Deployment/Linux/ossia-score.appdata.xml %{buildroot}%{_datadir}/appdata/
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/ossia-score*
%{_datadir}/applications/
%{_datadir}/pixmaps/
%{_datadir}/appdata
%changelog