File string-machine.spec of Package string-machine

# spec file for package string-machine 
#
# Copyright (c) 2019 Jean Pierre Cimalando
#
# 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 debug_package %{nil}

Name:      string-machine
Version:   0.1.0
Release:   1%{?dist}
License:   BSL-1.0 and GPL-2.0-or-later and BSD-2-Clause
Group:     Productivity/Multimedia/Sound/Players
Summary:   Digital model of electronic string ensemble instrument
Url:       https://github.com/jpcima/string-machine
Source:    string-machine-0.1.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gcc-c++
BuildRequires: cairo-devel
BuildRequires: libX11-devel
%if 0%{?suse_version}
BuildRequires: Mesa-libGL-devel
%else
BuildRequires: mesa-libGL-devel
%endif
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: boost-devel

%description
Digital model of electronic string ensemble instrument

%prep
%setup
sed -i -e '/^#pragma once/a #include <cstdint>' sources/ui/Color.h

%build
%make_build

%install
install -D -m 755 bin/string-machine-vst.so -t %{buildroot}%{_libdir}/vst
install -D -m 644 bin/string-machine.lv2/manifest.ttl -t %{buildroot}%{_libdir}/lv2/string-machine.lv2
install -D -m 644 bin/string-machine.lv2/string-machine.ttl -t %{buildroot}%{_libdir}/lv2/string-machine.lv2
install -D -m 755 bin/string-machine.lv2/string-machine.so -t %{buildroot}%{_libdir}/lv2/string-machine.lv2

%files
%dir %{_libdir}/vst
%{_libdir}/vst/string-machine-vst.so
%dir %{_libdir}/lv2
%dir %{_libdir}/lv2/string-machine.lv2
%{_libdir}/lv2/string-machine.lv2/manifest.ttl
%{_libdir}/lv2/string-machine.lv2/string-machine.so
%{_libdir}/lv2/string-machine.lv2/string-machine.ttl

%changelog
* Mon Jul 15 12:17:54 UTC 2019 Jean Pierre Cimalando <jp-dev@inbox.ru> - 0.1.0-1
- software update
* Thu Jul 11 22:03:10 UTC 2019 Jean Pierre Cimalando <jp-dev@inbox.ru> - 0.0.0+20190711~gita7cdae0-1
- software update
* Thu Jul 11 13:19:16 UTC 2019 Jean Pierre Cimalando <jp-dev@inbox.ru> - 0.0.0+20190711~git4cbadd0-1
- initial release of the spec file
openSUSE Build Service is sponsored by