init package

This commit is contained in:
yangchenguang 2022-03-22 15:30:17 +08:00
parent 25f8219aef
commit 340d28cb47
2 changed files with 51 additions and 0 deletions

BIN
lv2-1.18.2.tar.bz2 Normal file

Binary file not shown.

51
lv2.spec Normal file
View File

@ -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 <yangchenguang@uniontech.com> - 1.18.2-1
- Init package