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