]>
Commit | Line | Data |
---|---|---|
85313853 JB |
1 | # |
2 | # Conditional build: | |
e5ab92a0 | 3 | %bcond_without apidocs # API documentation |
85313853 | 4 | |
1698630a JB |
5 | Summary: LV2 (LADSPA Version 2) Audio Plugin Standard |
6 | Summary(pl.UTF-8): LV2 (LADSPA Version 2) - standard wtyczek dźwiękowych | |
7 | Name: lv2 | |
e5ab92a0 | 8 | Version: 1.18.10 |
4e9f0ccb | 9 | Release: 1 |
1698630a JB |
10 | License: ISC |
11 | Group: Libraries | |
85313853 | 12 | Source0: https://lv2plug.in/spec/%{name}-%{version}.tar.xz |
e5ab92a0 | 13 | # Source0-md5: 9c1f3143ea2eea341e8d6e1bad9e5e0e |
a245c08f | 14 | URL: https://lv2plug.in/ |
947bded5 | 15 | # for eg-scope ui |
e5ab92a0 | 16 | BuildRequires: cairo-devel >= 1.8.10 |
947bded5 | 17 | # for eg-sampler and eg-scope ui |
e5ab92a0 | 18 | BuildRequires: gtk+2-devel >= 2:2.18.0 |
85313853 JB |
19 | # for eg-sampler |
20 | BuildRequires: libsamplerate-devel >= 0.1.0 | |
947bded5 | 21 | # for eg-sampler |
1698630a | 22 | BuildRequires: libsndfile-devel >= 1.0.0 |
85313853 JB |
23 | BuildRequires: meson >= 0.56.0 |
24 | BuildRequires: ninja >= 1.5 | |
1698630a | 25 | BuildRequires: pkgconfig |
85313853 | 26 | BuildRequires: python3 >= 1:3.7 |
a245c08f | 27 | BuildRequires: sed >= 4.0 |
85313853 JB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
30 | %if %{with apidocs} | |
31 | BuildRequires: doxygen | |
32 | BuildRequires: python3-lxml | |
33 | BuildRequires: python3-markdown | |
34 | BuildRequires: python3-pygments | |
35 | BuildRequires: python3-rdflib | |
36 | %endif | |
37 | Obsoletes: lv2core < 8 | |
38 | Obsoletes: lv2-data-access < 1.6 | |
39 | Obsoletes: lv2-dynmanifest < 1.4 | |
40 | Obsoletes: lv2-event < 1.6 | |
41 | Obsoletes: lv2-instance-access < 1.6 | |
42 | Obsoletes: lv2-midi < 1.6 | |
43 | Obsoletes: lv2-presets < 2.6 | |
44 | Obsoletes: lv2-ui < 2.8 | |
45 | Obsoletes: lv2-units < 5.6 | |
46 | Obsoletes: lv2-uri-map < 1.6 | |
47 | Obsoletes: lv2-urid < 1.2 | |
1698630a JB |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
372f7b05 JK |
50 | %define _noautoprovfiles %{_libdir}/lv2 |
51 | ||
1698630a JB |
52 | %description |
53 | LV2 is a standard for audio systems. It defines a minimal yet | |
54 | extensible C API for plugin code and a format for plugin "bundles". | |
a245c08f | 55 | See <https://lv2plug.in/> for more information. |
1698630a JB |
56 | |
57 | This package contains specifications (a C header and/or a schema in | |
58 | Turtle), documentation generation tools, and example plugins. | |
59 | ||
60 | %description -l pl.UTF-8 | |
61 | LV2 to standard systemów dźwiękowych. Definiuje minimalne, ale | |
62 | rozszerzalne API C dla kodu wtyczek oraz format "paczek" wtyczek. | |
a245c08f | 63 | Więcej informacji pod adresem <https://lv2plug.in/>. |
1698630a JB |
64 | |
65 | Ten pakiet zawiera specyfikacje (plik nagłówkowy C i/lub schemat w | |
66 | formacie Turtle), narzędzia do generowania dokumentacji oraz | |
67 | przykładowe wtyczki. | |
68 | ||
69 | %package devel | |
70 | Summary: LV2 API header file | |
71 | Summary(pl.UTF-8): Plik nagłówkowy API LV2 | |
72 | License: LGPL v2.1+ | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
85313853 JB |
75 | Obsoletes: lv2core-devel < 8 |
76 | Obsoletes: lv2-data-access-devel < 1.6 | |
77 | Obsoletes: lv2-dynmanifest-devel < 1.4 | |
78 | Obsoletes: lv2-event-devel < 1.6 | |
79 | Obsoletes: lv2-instance-access-devel < 1.6 | |
80 | Obsoletes: lv2-midi-devel < 1.6 | |
81 | Obsoletes: lv2-presets-devel < 2.6 | |
82 | Obsoletes: lv2-ui-devel < 2.8 | |
83 | Obsoletes: lv2-units-devel < 5.6 | |
84 | Obsoletes: lv2-uri-map-devel < 1.6 | |
85 | Obsoletes: lv2-urid-devel < 1.2 | |
1698630a JB |
86 | |
87 | %description devel | |
88 | LV2 API header file. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Plik nagłówkowy API LV2. | |
92 | ||
93 | %package eg-sampler | |
94 | Summary: Sampler example plugin for LV2 | |
95 | Summary(pl.UTF-8): Przykładowa wtyczka dla LV2: Sampler | |
96 | Group: Libraries | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | Requires: gtk+2 >= 2:2.18.0 | |
99 | Requires: libsndfile >= 1.0.0 | |
100 | ||
101 | %description eg-sampler | |
102 | Sampler example plugin for LV2. | |
103 | ||
104 | %description eg-sampler -l pl.UTF-8 | |
105 | Przykładowa wtyczka dla LV2: Sampler. | |
106 | ||
947bded5 JB |
107 | %package eg-scope |
108 | Summary: Simple Oscilloscope example plugin for LV2 | |
109 | Summary(pl.UTF-8): Przykładowa wtyczka dla LV2: prosty oscyloskop | |
110 | Group: Libraries | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: cairo >= 1.8.10 | |
113 | Requires: gtk+2 >= 2:2.18.0 | |
114 | ||
115 | %description eg-scope | |
116 | Simple oscilloscope example plugin for LV2. | |
117 | ||
118 | %description eg-scope -l pl.UTF-8 | |
119 | Przykładowa wtyczka dla LV2: prosty oscyoloskop. | |
120 | ||
e5ab92a0 JB |
121 | %package apidocs |
122 | Summary: LV2 API documentation | |
123 | Summary(pl.UTF-8): Dokumentacja API LV2 | |
124 | Group: Documentation | |
125 | ||
126 | %description apidocs | |
127 | LV2 API documentation. | |
128 | ||
129 | %description apidocs -l pl.UTF-8 | |
130 | Dokumentacja API LV2. | |
131 | ||
1698630a JB |
132 | %prep |
133 | %setup -q | |
134 | ||
85313853 | 135 | %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' lv2specgen/lv2specgen.py |
a245c08f | 136 | |
1698630a | 137 | %build |
85313853 JB |
138 | %meson build \ |
139 | %{!?with_apidocs:-Ddocs=disabled} | |
140 | ||
141 | %ninja_build -C build | |
1698630a JB |
142 | |
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
85313853 | 146 | %ninja_install -C build |
a815f2ec | 147 | |
1698630a JB |
148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
6fb3a3fa JB |
151 | %pretrans |
152 | # replace symlinks to %{_libdir}/lv2/* with directories | |
153 | for p in atom buf-size core data-access dynmanifest event instance-access log midi morph options parameters patch port-groups port-props presets resize-port state time ui units uri-map urid worker lv2plug.in/ns/lv2core ; do | |
154 | if [ -L "%{_includedir}/lv2/$p" ]; then | |
155 | rm -f "%{_includedir}/lv2/$p" | |
156 | fi | |
157 | done | |
158 | for p in atom buf-size data-access dynmanifest event instance-access log midi morph options parameters patch port-groups port-props presets resize-port state time uri-map urid worker ; do | |
159 | if [ -L "%{_includedir}/lv2/lv2plug.in/ns/ext/$p" ]; then | |
160 | rm -f "%{_includedir}/lv2/lv2plug.in/ns/ext/$p" | |
161 | fi | |
162 | done | |
163 | for p in ui units ; do | |
164 | if [ -L "%{_includedir}/lv2/lv2plug.in/ns/extensions/$p" ]; then | |
165 | rm -f "%{_includedir}/lv2/lv2plug.in/ns/extensions/$p" | |
166 | fi | |
167 | done | |
168 | ||
1698630a JB |
169 | %files |
170 | %defattr(644,root,root,755) | |
396d5bd6 | 171 | %doc COPYING NEWS README.md |
1698630a | 172 | %dir %{_libdir}/lv2 |
4e9f0ccb JK |
173 | %dir %{_libdir}/lv2/core.lv2 |
174 | %{_libdir}/lv2/core.lv2/lv2core.ttl | |
a245c08f | 175 | %{_libdir}/lv2/core.lv2/lv2core.meta.ttl |
4e9f0ccb JK |
176 | %{_libdir}/lv2/core.lv2/manifest.ttl |
177 | %{_libdir}/lv2/core.lv2/meta.ttl | |
a245c08f | 178 | %{_libdir}/lv2/core.lv2/people.ttl |
1698630a JB |
179 | %dir %{_libdir}/lv2/atom.lv2 |
180 | %{_libdir}/lv2/atom.lv2/*.ttl | |
a815f2ec JB |
181 | %dir %{_libdir}/lv2/buf-size.lv2 |
182 | %{_libdir}/lv2/buf-size.lv2/*.ttl | |
1698630a JB |
183 | %dir %{_libdir}/lv2/data-access.lv2 |
184 | %{_libdir}/lv2/data-access.lv2/*.ttl | |
185 | %dir %{_libdir}/lv2/dynmanifest.lv2 | |
186 | %{_libdir}/lv2/dynmanifest.lv2/*.ttl | |
187 | %dir %{_libdir}/lv2/eg-amp.lv2 | |
188 | %{_libdir}/lv2/eg-amp.lv2/*.ttl | |
189 | %attr(755,root,root) %{_libdir}/lv2/eg-amp.lv2/amp.so | |
396d5bd6 JB |
190 | %dir %{_libdir}/lv2/eg-fifths.lv2 |
191 | %{_libdir}/lv2/eg-fifths.lv2/*.ttl | |
192 | %attr(755,root,root) %{_libdir}/lv2/eg-fifths.lv2/fifths.so | |
7719b32c JB |
193 | %dir %{_libdir}/lv2/eg-metro.lv2 |
194 | %{_libdir}/lv2/eg-metro.lv2/*.ttl | |
195 | %attr(755,root,root) %{_libdir}/lv2/eg-metro.lv2/metro.so | |
196 | %dir %{_libdir}/lv2/eg-midigate.lv2 | |
197 | %{_libdir}/lv2/eg-midigate.lv2/*.ttl | |
198 | %attr(755,root,root) %{_libdir}/lv2/eg-midigate.lv2/midigate.so | |
36642e34 JB |
199 | %dir %{_libdir}/lv2/eg-params.lv2 |
200 | %{_libdir}/lv2/eg-params.lv2/*.ttl | |
201 | %attr(755,root,root) %{_libdir}/lv2/eg-params.lv2/params.so | |
1698630a JB |
202 | %dir %{_libdir}/lv2/event.lv2 |
203 | %{_libdir}/lv2/event.lv2/*.ttl | |
204 | %dir %{_libdir}/lv2/instance-access.lv2 | |
205 | %{_libdir}/lv2/instance-access.lv2/*.ttl | |
206 | %dir %{_libdir}/lv2/log.lv2 | |
207 | %{_libdir}/lv2/log.lv2/*.ttl | |
1698630a JB |
208 | %dir %{_libdir}/lv2/midi.lv2 |
209 | %{_libdir}/lv2/midi.lv2/*.ttl | |
a815f2ec JB |
210 | %dir %{_libdir}/lv2/morph.lv2 |
211 | %{_libdir}/lv2/morph.lv2/*.ttl | |
212 | %dir %{_libdir}/lv2/options.lv2 | |
213 | %{_libdir}/lv2/options.lv2/*.ttl | |
1698630a JB |
214 | %dir %{_libdir}/lv2/parameters.lv2 |
215 | %{_libdir}/lv2/parameters.lv2/*.ttl | |
216 | %dir %{_libdir}/lv2/patch.lv2 | |
217 | %{_libdir}/lv2/patch.lv2/*.ttl | |
218 | %dir %{_libdir}/lv2/port-groups.lv2 | |
219 | %{_libdir}/lv2/port-groups.lv2/*.ttl | |
220 | %dir %{_libdir}/lv2/port-props.lv2 | |
221 | %{_libdir}/lv2/port-props.lv2/*.ttl | |
222 | %dir %{_libdir}/lv2/presets.lv2 | |
223 | %{_libdir}/lv2/presets.lv2/*.ttl | |
224 | %dir %{_libdir}/lv2/resize-port.lv2 | |
225 | %{_libdir}/lv2/resize-port.lv2/*.ttl | |
396d5bd6 JB |
226 | %dir %{_libdir}/lv2/schemas.lv2 |
227 | %{_libdir}/lv2/schemas.lv2/*.ttl | |
1698630a JB |
228 | %dir %{_libdir}/lv2/state.lv2 |
229 | %{_libdir}/lv2/state.lv2/*.ttl | |
230 | %dir %{_libdir}/lv2/time.lv2 | |
231 | %{_libdir}/lv2/time.lv2/*.ttl | |
232 | %dir %{_libdir}/lv2/ui.lv2 | |
233 | %{_libdir}/lv2/ui.lv2/*.ttl | |
234 | %dir %{_libdir}/lv2/units.lv2 | |
235 | %{_libdir}/lv2/units.lv2/*.ttl | |
236 | %dir %{_libdir}/lv2/uri-map.lv2 | |
237 | %{_libdir}/lv2/uri-map.lv2/*.ttl | |
238 | %dir %{_libdir}/lv2/urid.lv2 | |
239 | %{_libdir}/lv2/urid.lv2/*.ttl | |
240 | %dir %{_libdir}/lv2/worker.lv2 | |
241 | %{_libdir}/lv2/worker.lv2/*.ttl | |
242 | ||
243 | %files devel | |
244 | %defattr(644,root,root,755) | |
4e9f0ccb | 245 | %attr(755,root,root) %{_bindir}/lv2_validate |
1698630a JB |
246 | %{_includedir}/lv2.h |
247 | %dir %{_includedir}/lv2 | |
4e9f0ccb JK |
248 | %{_includedir}/lv2/atom |
249 | %{_includedir}/lv2/buf-size | |
250 | %{_includedir}/lv2/core | |
251 | %{_includedir}/lv2/data-access | |
252 | %{_includedir}/lv2/dynmanifest | |
253 | %{_includedir}/lv2/event | |
254 | %{_includedir}/lv2/instance-access | |
255 | %{_includedir}/lv2/log | |
256 | %{_includedir}/lv2/midi | |
257 | %{_includedir}/lv2/morph | |
258 | %{_includedir}/lv2/options | |
259 | %{_includedir}/lv2/parameters | |
260 | %{_includedir}/lv2/patch | |
261 | %{_includedir}/lv2/port-groups | |
262 | %{_includedir}/lv2/port-props | |
263 | %{_includedir}/lv2/presets | |
264 | %{_includedir}/lv2/resize-port | |
265 | %{_includedir}/lv2/state | |
266 | %{_includedir}/lv2/time | |
267 | %{_includedir}/lv2/ui | |
268 | %{_includedir}/lv2/units | |
269 | %{_includedir}/lv2/uri-map | |
270 | %{_includedir}/lv2/urid | |
271 | %{_includedir}/lv2/worker | |
1698630a JB |
272 | %dir %{_includedir}/lv2/lv2plug.in |
273 | %dir %{_includedir}/lv2/lv2plug.in/ns | |
274 | %{_includedir}/lv2/lv2plug.in/ns/lv2core | |
275 | %dir %{_includedir}/lv2/lv2plug.in/ns/ext | |
276 | %{_includedir}/lv2/lv2plug.in/ns/ext/atom | |
a815f2ec | 277 | %{_includedir}/lv2/lv2plug.in/ns/ext/buf-size |
1698630a JB |
278 | %{_includedir}/lv2/lv2plug.in/ns/ext/data-access |
279 | %{_includedir}/lv2/lv2plug.in/ns/ext/dynmanifest | |
280 | %{_includedir}/lv2/lv2plug.in/ns/ext/event | |
281 | %{_includedir}/lv2/lv2plug.in/ns/ext/instance-access | |
282 | %{_includedir}/lv2/lv2plug.in/ns/ext/log | |
283 | %{_includedir}/lv2/lv2plug.in/ns/ext/midi | |
a815f2ec JB |
284 | %{_includedir}/lv2/lv2plug.in/ns/ext/morph |
285 | %{_includedir}/lv2/lv2plug.in/ns/ext/options | |
286 | %{_includedir}/lv2/lv2plug.in/ns/ext/parameters | |
1698630a JB |
287 | %{_includedir}/lv2/lv2plug.in/ns/ext/patch |
288 | %{_includedir}/lv2/lv2plug.in/ns/ext/port-groups | |
289 | %{_includedir}/lv2/lv2plug.in/ns/ext/port-props | |
290 | %{_includedir}/lv2/lv2plug.in/ns/ext/presets | |
291 | %{_includedir}/lv2/lv2plug.in/ns/ext/resize-port | |
292 | %{_includedir}/lv2/lv2plug.in/ns/ext/state | |
293 | %{_includedir}/lv2/lv2plug.in/ns/ext/time | |
294 | %{_includedir}/lv2/lv2plug.in/ns/ext/uri-map | |
295 | %{_includedir}/lv2/lv2plug.in/ns/ext/urid | |
296 | %{_includedir}/lv2/lv2plug.in/ns/ext/worker | |
297 | %dir %{_includedir}/lv2/lv2plug.in/ns/extensions | |
298 | %{_includedir}/lv2/lv2plug.in/ns/extensions/ui | |
299 | %{_includedir}/lv2/lv2plug.in/ns/extensions/units | |
300 | %{_pkgconfigdir}/lv2.pc | |
e5ab92a0 JB |
301 | %if %{with apidocs} |
302 | %attr(755,root,root) %{_bindir}/lv2specgen.py | |
303 | %{_datadir}/lv2specgen | |
304 | %endif | |
1698630a JB |
305 | |
306 | %files eg-sampler | |
307 | %defattr(644,root,root,755) | |
308 | %dir %{_libdir}/lv2/eg-sampler.lv2 | |
309 | %{_libdir}/lv2/eg-sampler.lv2/*.ttl | |
310 | %{_libdir}/lv2/eg-sampler.lv2/click.wav | |
85313853 | 311 | %attr(755,root,root) %{_libdir}/lv2/eg-sampler.lv2/sampler.so |
e5ab92a0 | 312 | %attr(755,root,root) %{_libdir}/lv2/eg-sampler.lv2/sampler_ui.so |
947bded5 JB |
313 | |
314 | %files eg-scope | |
315 | %defattr(644,root,root,755) | |
316 | %dir %{_libdir}/lv2/eg-scope.lv2 | |
317 | %attr(755,root,root) %{_libdir}/lv2/eg-scope.lv2/examploscope.so | |
e5ab92a0 | 318 | %attr(755,root,root) %{_libdir}/lv2/eg-scope.lv2/examploscope_ui.so |
9abb214a | 319 | %{_libdir}/lv2/eg-scope.lv2/*.ttl |
e5ab92a0 JB |
320 | |
321 | %files apidocs | |
322 | %defattr(644,root,root,755) | |
323 | %dir %{_docdir}/lv2 | |
324 | %{_docdir}/lv2/c | |
325 | %{_docdir}/lv2/ns | |
326 | %{_docdir}/lv2/style |