diff --git a/lv2-1.18.2.tar.bz2 b/lv2-1.18.2.tar.bz2 new file mode 100644 index 0000000..7833c7d Binary files /dev/null and b/lv2-1.18.2.tar.bz2 differ diff --git a/lv2.spec b/lv2.spec new file mode 100644 index 0000000..a8f2f21 --- /dev/null +++ b/lv2.spec @@ -0,0 +1,51 @@ +Name: lv2 +Version: 1.18.2 +Release: 1 +Summary: Audio Plugin Standard +License: ISC +URL: http://lv2plug.in +Source: http://lv2plug.in/spec/lv2-%{version}.tar.bz2 + +BuildRequires: libsndfile-devel cairo-devel +BuildRequires: gcc gcc-c++ python3-devel + +%description +LV2 is a standard for plugins + +%package devel +Summary: API for the LV2 Audio Plugin Standard +Requires: %{name} = %{version}-%{release} + +%description devel +lv2-devel contains the lv2.h header file and headers for all of the +LV2 specification extensions and bundles. + +%prep +%autosetup -n %{name}-%{version} -p1 +# use python3 +sed -i '1s|^#!.*|#!%{__python3}|' lv2specgen/lv2specgen.py + +%build +%set_build_flags +%{__python3} waf configure -vv --prefix=%{_prefix} --libdir=%{_libdir} \ + --lv2dir=%{_libdir}/lv2 --no-check-links +%{__python3} waf -vv + +%install +DESTDIR=%{buildroot} %{__python3} waf -vv install + +%files +%{_libdir}/%{name}/ + +%files devel +%{_bindir}/lv2specgen.py +%{_bindir}/lv2_validate +%{_datadir}/lv2specgen +%{_includedir}/%{name}.h +%{_includedir}/%{name}/ +%{_libdir}/%{name}/*/*.[hc] +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Tue Mar 22 2022 yangchenguang - 1.18.2-1 +- Init package