-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfcp-support.spec.template
More file actions
72 lines (57 loc) · 1.97 KB
/
Copy pathfcp-support.spec.template
File metadata and controls
72 lines (57 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%global tag_version TAG_VERSION
Name: fcp-support
Version: VERSION
Release: 1%{?dist}
Summary: FCP (Focusrite Control Protocol) Support
License: GPLv3+
URL: https://github.com/geoffreybennett/fcp-support
Source0: %{name}-%{tag_version}.tar.gz
BuildRequires: make
BuildRequires: gcc
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: systemd-rpm-macros
Requires: alsa-lib
%description
FCP (Focusrite Control Protocol) Support provides user-space
components for Focusrite USB audio interfaces using the Linux FCP
driver, currently the 4th Gen Scarlett 16i16, 18i16 and 18i20
interfaces and the ISA C8X.
The package includes a user-space server that communicates with
devices via the kernel driver, creates ALSA controls, and manages
device configuration. It also provides a command-line tool for
firmware updates and device maintenance operations.
Requires the Linux FCP kernel driver. Install alsa-scarlett-gui as
well for graphical device control.
%prep
%setup -q -n %{name}-%{tag_version}
%build
# %{version} carries a tilde for rpm's ordering of pre-releases. The
# binary reports the tag, which is how the online update index names
# versions.
%make_build VERSION=%{tag_version} PREFIX=%{_prefix}
%install
%make_install PREFIX=%{_prefix}
%files
%license COPYING
%doc README.md
%{_bindir}/fcp-tool
%{_bindir}/fcp-server
%{_prefix}/lib/systemd/system/fcp-server@.service
%{_tmpfilesdir}/fcp-server.conf
%{_prefix}/lib/udev/rules.d/99-fcp.rules
%{_datadir}/fcp-server/fcp-alsa-map-*.json
%post
%systemd_post fcp-server@.service
%tmpfiles_create fcp-server.conf
/bin/udevadm control --reload-rules || :
%preun
%systemd_preun fcp-server@.service
%postun
%systemd_postun_with_restart fcp-server@.service
%changelog
* Mon Jan 26 2026 Geoffrey D. Bennett <g@b4.vu> - 1.0~rc1-1
- Initial 1.0 release candidate