!1 Add source code.
From: @dwl301 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
dfb28ae7bc
BIN
lilv-0.24.14.tar.bz2
Normal file
BIN
lilv-0.24.14.tar.bz2
Normal file
Binary file not shown.
120
lilv.spec
Normal file
120
lilv.spec
Normal file
@ -0,0 +1,120 @@
|
||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
%global maj 0
|
||||
|
||||
Name: lilv
|
||||
Version: 0.24.14
|
||||
Release: 1
|
||||
Summary: An LV2 Resource Description Framework Library
|
||||
License: MIT
|
||||
URL: http://drobilla.net/software/lilv/
|
||||
Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2
|
||||
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: sord-devel >= 0.14.0
|
||||
BuildRequires: sratom-devel >= 0.4.4
|
||||
BuildRequires: lv2-devel >= 1.18.0
|
||||
BuildRequires: python3
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: serd-devel >= 0.30.0
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libsndfile-devel >= 1.0.0
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_lv2_theme
|
||||
|
||||
Requires: lv2 >= 1.18.0
|
||||
|
||||
# To try and deal with multilib issues from the -libs split:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2052588
|
||||
Obsoletes: lilv < 0.24.12-2
|
||||
|
||||
%description
|
||||
%{name} is a library to make the use of LV2 plugins as simple as possible
|
||||
for applications. Lilv is the successor to SLV2, rewritten to be significantly
|
||||
faster and have minimal dependencies.
|
||||
|
||||
%package libs
|
||||
Summary: Libraries for %{name}
|
||||
Obsoletes: lilv < 0.24.12-2
|
||||
|
||||
%description libs
|
||||
%{name} is a lightweight C library for Resource Description Syntax which
|
||||
supports reading and writing Turtle and NTriples.
|
||||
|
||||
This package contains the libraries for %{name}.
|
||||
|
||||
%package devel
|
||||
Summary: Development libraries and headers for %{name}
|
||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%{name} is a lightweight C library for Resource Description Syntax which
|
||||
supports reading and writing Turtle and NTriples.
|
||||
|
||||
This package contains the headers and development libraries for %{name}.
|
||||
|
||||
%package -n python3-%{name}
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
Summary: Python bindings for %{name}
|
||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python3-%{name}
|
||||
%{name} is a lightweight C library for Resource Description Syntax which
|
||||
supports reading and writing Turtle and NTriples.
|
||||
|
||||
This package contains the python libraries for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
# Do not run ld config
|
||||
sed -i -e 's|bld.add_post_fun(autowaf.run_ldconfig)||' wscript
|
||||
# for packagers sake, build the tests with debug symbols
|
||||
sed -i -e "s|'-ftest-coverage'\]|\
|
||||
'-ftest-coverage' \] + '%{optflags}'.split(' ')|" wscript
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
export LINKFLAGS="%{__global_ldflags}"
|
||||
%{__python3} waf configure -v --prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} --configdir=%{_sysconfdir} --mandir=%{_mandir} \
|
||||
--docdir=%{_pkgdocdir} \
|
||||
--docs --test --dyn-manifest
|
||||
%{__python3} waf -v build %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__python3} waf -v install --destdir=%{buildroot}
|
||||
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
|
||||
|
||||
%check
|
||||
%{__python3} waf test
|
||||
|
||||
%files
|
||||
%exclude %{_pkgdocdir}/%{name}-%{maj}/
|
||||
%{_bindir}/lilv-bench
|
||||
%{_bindir}/lv2info
|
||||
%{_bindir}/lv2ls
|
||||
%{_bindir}/lv2bench
|
||||
%{_bindir}/lv2apply
|
||||
%{_sysconfdir}/bash_completion.d/lilv
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%files libs
|
||||
%doc AUTHORS NEWS README.md
|
||||
%license COPYING
|
||||
%{_libdir}/lib%{name}-%{maj}.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}-%{maj}.so
|
||||
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
|
||||
%{_includedir}/%{name}-%{maj}/
|
||||
%{_pkgdocdir}/%{name}-%{maj}/
|
||||
|
||||
%files -n python3-%{name}
|
||||
%{python3_sitelib}/%{name}.*
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.24.14-1
|
||||
- Init Packaging
|
||||
Loading…
x
Reference in New Issue
Block a user