]>
Commit | Line | Data |
---|---|---|
5e1ce647 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with apidocs # API documentation | |
4 | ||
1aa9ade6 JB |
5 | Summary: LV2 host library to make LV2 plugin use as simple as possible |
6 | Summary(pl.UTF-8): Biblioteka hosta LV2 ułatwiająca korzystanie z wtyczek LV2 | |
7 | Name: lilv | |
40cbf1ce | 8 | Version: 0.24.20 |
5e1ce647 | 9 | Release: 1 |
1aa9ade6 JB |
10 | License: ISC |
11 | Group: Libraries | |
5e1ce647 | 12 | Source0: http://download.drobilla.net/%{name}-%{version}.tar.xz |
40cbf1ce | 13 | # Source0-md5: 561ff65228b54e58744a7ae6e2141741 |
1aa9ade6 | 14 | URL: http://drobilla.net/software/lilv/ |
ac55eab6 | 15 | BuildRequires: libsndfile-devel >= 1.0.0 |
1aa9ade6 | 16 | BuildRequires: libstdc++-devel |
5e1ce647 JB |
17 | BuildRequires: lv2-devel >= 1.18.2 |
18 | BuildRequires: meson >= 0.56.0 | |
19 | BuildRequires: ninja >= 1.5 | |
1aa9ade6 | 20 | BuildRequires: pkgconfig |
50afd6bb JB |
21 | # or python 2.6+, but no sense to introduce in 2020 |
22 | BuildRequires: python3 >= 1:3.4 | |
23 | BuildRequires: python3-modules >= 1:3.4 | |
24 | BuildRequires: rpmbuild(macros) >= 1.507 | |
40cbf1ce JB |
25 | BuildRequires: serd-devel >= 0.30.10 |
26 | BuildRequires: sord-devel >= 0.16.10 | |
27 | BuildRequires: sratom-devel >= 0.6.10 | |
5e1ce647 JB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
30 | %if %{with apidocs} | |
31 | BuildRequires: doxygen | |
32 | BuildRequires: sphinx-pdg | |
33 | %endif | |
34 | Requires: lv2 >= 1.18.2 | |
40cbf1ce JB |
35 | Requires: serd >= 0.30.10 |
36 | Requires: sord >= 0.16.10 | |
37 | Requires: sratom >= 0.6.10 | |
1aa9ade6 JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Lilv is a library to make the use of LV2 plugins as simple as possible | |
42 | for applications. Lilv is the successor to SLV2, rewritten to be | |
43 | significantly faster and have minimal dependencies. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Lilv to biblioteka ułatwiająca korzystanie z wtyczek LV2 w | |
47 | aplikacjach. Jest następczynią SLV2; została przepisana tak, aby była | |
48 | znacznie szybsza i miała minimalne zależności. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for Lilv library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lilv | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
5e1ce647 | 55 | Requires: lv2-devel >= 1.18.2 |
40cbf1ce JB |
56 | Requires: serd-devel >= 0.30.10 |
57 | Requires: sord-devel >= 0.16.10 | |
58 | Requires: sratom-devel >= 0.6.10 | |
1aa9ade6 JB |
59 | |
60 | %description devel | |
61 | Header files for Lilv library. | |
62 | ||
63 | %description devel -l pl.UTF-8 | |
64 | Pliki nagłówkowe biblioteki Lilv. | |
65 | ||
66 | %package -n bash-completion-lilv | |
67 | Summary: Bash auto-completion for lilv commands | |
68 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla poleceń lilv | |
69 | Group: Applications/Shells | |
70 | Requires: bash-completion | |
71 | ||
72 | %description -n bash-completion-lilv | |
73 | Bash auto-completion script for lv2info and lv2jack commands. | |
74 | ||
75 | %description -n bash-completion-lilv -l pl.UTF-8 | |
76 | Skrypt bashowego dopełniania parametrów dla poleceń lv2info i lv2jack. | |
77 | ||
50afd6bb JB |
78 | %package -n python3-lilv |
79 | Summary: Python binding for lilv | |
80 | Summary(pl.UTF-8): Wiązania Pythona do lilv | |
81 | Group: Libraries/Python | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | Requires: python3-modules >= 1:3.4 | |
84 | ||
85 | %description -n python3-lilv | |
86 | Python binding for lilv. | |
87 | ||
88 | %description -n python3-lilv -l pl.UTF-8 | |
89 | Wiązania Pythona do lilv. | |
90 | ||
1aa9ade6 JB |
91 | %prep |
92 | %setup -q | |
93 | ||
94 | %build | |
5e1ce647 JB |
95 | %meson build \ |
96 | --default-library=shared \ | |
97 | %{!?with_apidocs:-Ddocs=disabled} | |
1aa9ade6 | 98 | |
5e1ce647 | 99 | %ninja_build -C build |
1aa9ade6 JB |
100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
5e1ce647 | 104 | %ninja_install -C build |
1aa9ade6 | 105 | |
50afd6bb JB |
106 | %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir} |
107 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir} | |
108 | ||
1aa9ade6 JB |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
50afd6bb | 117 | %doc AUTHORS COPYING NEWS README.md |
ac55eab6 | 118 | %attr(755,root,root) %{_bindir}/lv2apply |
a3e8a303 | 119 | %attr(755,root,root) %{_bindir}/lv2bench |
1aa9ade6 JB |
120 | %attr(755,root,root) %{_bindir}/lv2info |
121 | %attr(755,root,root) %{_bindir}/lv2ls | |
122 | %attr(755,root,root) %{_libdir}/liblilv-0.so.*.*.* | |
123 | %attr(755,root,root) %ghost %{_libdir}/liblilv-0.so.0 | |
ac55eab6 | 124 | %{_mandir}/man1/lv2apply.1* |
5e1ce647 | 125 | %{_mandir}/man1/lv2bench.1* |
1aa9ade6 JB |
126 | %{_mandir}/man1/lv2info.1* |
127 | %{_mandir}/man1/lv2ls.1* | |
128 | ||
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
131 | %attr(755,root,root) %{_libdir}/liblilv-0.so | |
132 | %{_includedir}/lilv-0 | |
133 | %{_pkgconfigdir}/lilv-0.pc | |
134 | ||
135 | %files -n bash-completion-lilv | |
136 | %defattr(644,root,root,755) | |
137 | /etc/bash_completion.d/lilv | |
50afd6bb JB |
138 | |
139 | %files -n python3-lilv | |
140 | %defattr(644,root,root,755) | |
141 | %{py3_sitescriptdir}/lilv.py | |
142 | %{py3_sitescriptdir}/__pycache__/lilv.cpython-*.py[co] |