File iannix.spec of Package iannix
#
# spec file for package iannix
#
# Copyright (c) 2020 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: iannix
Version: @SERVICE@
Release: 0
Summary: Graphical open-source sequencer
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/buzzinglight/IanniX
Source: %{name}-%{version}.tar.xz
Patch1: example_and_tools_path.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libudev)
BuildRequires: update-desktop-files
%description
IanniX is a graphical open-source sequencer, based on Iannis Xenakis works,
for digital art. IanniX syncs via Open Sound Control (OSC) events and
curves to your real-time environment.
%prep
%autosetup -p1
sed -i "s/\(Exec=\).*/\1%{name}/" %{name}.desktop
sed -i "s/\(Icon=\).*/\1%{name}/" %{name}.desktop
%build
%qmake5 IanniX.pro \
PREFIX=%{_prefix}
%make_build
%install
%qmake5_install
%suse_update_desktop_file -r -G "Graphical sequencer" %{name} Qt AudioVideo AudioVideoEditing Midi Sequencer
install -dm 0755 %{buildroot}%{_datadir}/%{name}
cp -pr Examples/ %{buildroot}%{_datadir}/%{name}/
cp -pr Tools/ %{buildroot}%{_datadir}/%{name}/
%fdupes -s %{buildroot}%{_datadir}/%{name}/
%files
%doc Readme.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/Examples/
%{_datadir}/%{name}/Tools/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.??g
%license COPYING.txt
%changelog