File visualjackm.spec of Package visualjackm
#
# spec file for package visualjackm
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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/
#
Name: visualjackm
Version: 0.0+20120307
Release: 0
Summary: Connects ProjectM Visualization with Jack
License: GPL-2.0+
Group: System/Sound Daemons
Url: https://bitbucket.org/asiniscalchi/visualjackm
Source: visualjackm-20120307.tar.bz2
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: libqjack-devel
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: projectM-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This application lets you connect projectM visualization to jack.
%prep
%setup -q -n visualjackm
%build
install -d build
pushd build
cmake \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
-DCMAKE_CXX_FLAGS="%{optflags}" \
..
make %{?_smp_mflags}
popd
%install
install -D -m0755 build/visualjackm \
"%{buildroot}%{_bindir}/visualjackm"
%suse_update_desktop_file -c "%{name}" "%{name}" "Connect Jack to ProjectM" visualjackm "" AudioVideo Audio Midi
sed -i '/^Icon=/d' "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%files
%defattr(-,root,root)
%doc README
%{_bindir}/visualjackm
%{_datadir}/applications/%{name}.desktop
%changelog