# https://github.com/x42/scarlett-mixer/commit/8454348e88a64d0471b5927539ed169f522a9e06 %global commit 8454348e88a64d0471b5927539ed169f522a9e06 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20181210 # Build instruction # git clone https://github.com/x42/scarlett-mixer.git # cd scarlett-mixer; git submodule init; git submodule update # cd ../; mv scarlett-mixer/ scarlett-mixer-8454348e88a64d0471b5927539ed169f522a9e06 # tar cfz scarlett-mixer-0.1.0-8454348.tar.gz scarlett-mixer-8454348e88a64d0471b5927539ed169f522a9e06 Summary: Quickly hacked GUI for Linux/ALSA Name: scarlett-mixer Version: 0.1.0 Release: 2.%{gitdate}git%{shortcommit}%{?dist} License: GPLv3+ URL: https://github.com/x42/scarlett-mixer #Source0: %%{url}/archive/%%{commit}/%%{name}-%%{version}-%%{shortcommit}.tar.gz Source0: %{name}-%{version}-%{shortcommit}.tar.gz BuildRequires: gcc BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(pangocairo) BuildRequires: pkgconfig(lv2) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(alsa) %description Graphical Mixer Interface for the Scarlett series Currently supported models, first generation of 18i6 18i8 18i20 6i6 (untested) This is just a GUI, the device must be supported by the ALSA Linux kernel device-driver. The mixer-elements are numerically indexed and only work with vanilla Linux. At the time of writing only the 1st generation of Scarlett devices are supported (Linux 4.16, April 2018). This UI a quick hack, it may or may not work and is prepared for other Scarlett devices, but you are on your own. Please do not package this software as-is, nor make it available to end-users since most will be disappointed. %prep %setup -qn %{name}-%{commit} sed -i -e 's|PREFIX ?= /usr/local|PREFIX ?= /usr|g' Makefile %build %make_build %install %make_install %files %license COPYING %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.* %changelog * Fri Aug 24 2018 Martin Gansser - 0.1.0-2.20181210git8454348 - Update to 0.1.0-2.20181210git8454348 * Mon Aug 13 2018 Martin Gansser - 0.1.0-1.20180529gitfb5b599 - Initial build