Repository navigation
Expand file tree
/
Copy pathfaust.spec
More file actions
271 lines (228 loc) · 9.45 KB
/
Copy pathfaust.spec
File metadata and controls
271 lines (228 loc) · 9.45 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
%define major 2
%define libname %mklibname %{name} %{major}
%define major_itp 1
%define libname_itp %mklibname %{name}machine %{major_itp}
%define major_http 0
%define libname_http %mklibname httpdfaust %{major_http}
%define major_osc 1
%define libname_osc %mklibname oscfaust %{major_osc}
%define develname %mklibname %{name} -d
Summary: Faust AUdio Stream (real-time audio signal processing language)
Name: faust
Version: 2.88.0
Release: 1
License: LGPL-2.1-or-later and BSD-1-Clause
Group: Development/Other
Url: https://faust.grame.fr/
Source0: https://github.com/grame-cncm/faust/releases/download/%{version}/%{name}-%{version}.tar.gz
Source100: faust.rpmlintrc
Patch0: faust-2.88.0-fix-env-shebangs.patch
Patch1: faust-2.85.5-fix-faustmachine-soname.patch
# Fixed upstream
#Patch2: faust-2.85.9-llvm-23.patch
BuildSystem: cmake
BuildOption: -S ../build
BuildOption: -C ../build/backends/all.cmake
BuildOption: -C ../build/targets/all.cmake
BuildOption: -DINCLUDE_DYNAMIC:BOOL=ON
BuildOption: -DINCLUDE_STATIC:BOOL=OFF
BuildOption: -DINCLUDE_ITP:BOOL=ON
BuildOption: -DINCLUDE_STATIC:BOOL=OFF
#BuildOption: -DLLVM_LINK_STATIC:BOOL=OFF
BuildOption: -DLINK_LLVM_STATIC:BOOL=OFF
BuildOption: -DLIBSDIR="%{_lib}"
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: git-core
BuildRequires: graphviz
BuildRequires: make
BuildRequires: cmake(LLVM)
BuildRequires: cmake(zstd)
BuildRequires: llvm-polly-devel
BuildRequires: llvm-static-devel
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(z3)
Requires: %{libname} = %{EVRD}
Requires: glitz
Suggests: csound
Suggests: jackit
Suggests: octave
%description
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
FAUST is intended for developers who need to develop efficient C/C++ audio
plugins for existing systems or full standalone audio applications. Thanks to
some specific compilation techniques and powerful optimizations, the C++ code
generated by the Faust compiler is usually very fast. It can generally compete
with (and sometimes outperform) hand-written C code.
Programming with FAUST is somehow like working with electronic circuits and
signals. A FAUST program is a list of definitions that defines a signal
processor block-diagram: a piece of code that produces output signals
according to its input signals (and maybe some user interface parameters)
%files
# All this stuff is already in %%{_datadir}/%%{name}/examples
# and generates boatloads of rpmlint warnings: don't list it twice
#doc examples
%license COPYING.txt
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_bindir}/%{name}path
%{_bindir}/%{name}optflags
%{_bindir}/faustremote
%{_bindir}/encoderunitypackage
%{_bindir}/filename2ident
%{_bindir}/sound2reader
%{_bindir}/usage.sh
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
#----------------------------------------------------------------------------
%package -n %{libname}
Summary: Main library for %{name}
Group: System/Libraries
%description -n %{libname}
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
This package contains the main %{name} library.
%files -n %{libname}
%license COPYING.txt
%{_libdir}/lib%{name}.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{libname_itp}
Summary: Faust Machine library
Group: System/Libraries
%description -n %{libname_itp}
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
This package contains the %{name} machine component library.
%files -n %{libname_itp}
%license COPYING.txt
%{_libdir}/lib%{name}machine.so.%{major_itp}*
#----------------------------------------------------------------------------
%package -n %{libname_http}
Summary: HTTPD Faust library
Group: System/Libraries
%description -n %{libname_http}
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
This package contains the HTTPD %{name} component library.
%files -n %{libname_http}
%license COPYING.txt
%{_libdir}/libHTTPDFaust.so.%{major_http}*
#----------------------------------------------------------------------------
%package -n %{libname_osc}
Summary: OSC Faust library
Group: System/Libraries
%description -n %{libname_osc}
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
This package contains the OSC %{name} component library.
%files -n %{libname_osc}
%license COPYING.txt
%{_libdir}/libOSCFaust.so.%{major_osc}*
#----------------------------------------------------------------------------
%package -n %{develname}
Summary: Development package for %{name}
Group: Development/C++
Requires: %{libname} = %{EVRD}
Requires: %{libname_itp} = %{EVRD}
Requires: %{libname_http} = %{EVRD}
Requires: %{libname_osc} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
# Before now the includes were in main package
Conflicts: %{name} < %{version}-%{release}
%description -n %{develname}
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of FAUST as a
structured block diagram language with a textual syntax.
This package contains the files needed for development with %{name}.
%files -n %{develname}
%license COPYING.txt
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}machine.so
%{_libdir}/libHTTPDFaust.so
%{_libdir}/libOSCFaust.so
#----------------------------------------------------------------------------
%package doc
Summary: Documentation for %{name}
License: GPL-2.0-or-later
Group: Development/Other
BuildArch: noarch
%description doc
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. This package provides documentation files to help with
writing programs with faust.
%files doc
# Only install dirs with actual docs
%doc documentation/*.pdf
%doc documentation/misc
#----------------------------------------------------------------------------
%package tools
Summary: 3rd party tools written for %{name}
License: GPL-2.0-or-later
Group: Development/Other
Requires: %{name} = %{EVRD}
%description tools
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. These additional tools are provided by various contributors
to help the building process of applications and plugins with Faust.
%files tools
%{_bindir}/%{name}2*
#----------------------------------------------------------------------------
%package kate
Summary: Kate/Kwrite plugin for %{name}
License: GPL-2.0-or-later
Group: Development/Other
Requires: %{name} = %{EVRD}
%description kate
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. This package provides Faust code syntax highlighting support
for KDE's Kate/Kwrite.
%files kate
%doc syntax-highlighting/README.md
%{_datadir}/katepart/syntax/%{name}.xml
#----------------------------------------------------------------------------
%install -a
# Install kate/kwrite syntax highlighter
mkdir -p %{buildroot}%{_datadir}/katepart/syntax
cp syntax-highlighting/%{name}.xml %{buildroot}%{_datadir}/katepart/syntax
# Remove unwanted stuff (support for android, ios...)...
rm -fr %{buildroot}%{_datadir}/%{name}/AU/
rm -fr %{buildroot}%{_datadir}/%{name}/api/
rm -fr %{buildroot}%{_datadir}/%{name}/iOS/
rm -fr %{buildroot}%{_datadir}/%{name}/iOSKeyboard/
rm -fr %{buildroot}%{_datadir}/%{name}/iPhone/
rm -fr %{buildroot}%{_datadir}/%{name}/smartKeyboard/
# ... and the unneeded android lib too...
rm -fr %{buildroot}%{_datadir}/%{name}/android/
# ... and static libs,,,
rm -fr %{buildroot}%{_libdir}/*.a
# ... and non-ELF binary files...
rm -f %{buildroot}%{_datadir}/%{name}/max-msp/sndfile/arm/libsndfile.a
rm -f %{buildroot}%{_datadir}/%{name}/max-msp/sndfile/intel/libsndfile.a
# ... and zero lenght files
rm -f %{buildroot}%{_datadir}/%{name}/esp32/drivers/ac101/component.mk
rm -f %{buildroot}%{_datadir}/%{name}/esp32/drivers/es8388/component.mk
rm -f %{buildroot}%{_datadir}/%{name}/esp32/drivers/wm8978/component.mk
# Fix perms
#chmod -x %%{buildroot}%%{_bindir}/%%{name}2wwise.cmd
chmod +x %{buildroot}%{_bindir}/%{name}2wwise
chmod +x %{buildroot}%{_datadir}/%{name}/daisy/daisy_soundfile_gen.py
chmod +x %{buildroot}%{_datadir}/%{name}/daisy/sd_upload.py
#chmod +x %%{buildroot}%%{_datadir}/%%{name}/autodiff/autodiff.sh
chmod +x %{buildroot}%{_datadir}/%{name}/clap/faust-hot-reload.py
chmod +x %{buildroot}%{_datadir}/%{name}/wwise/orchestrator.py