You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lilv/lilv.spec

114 lines
2.9 KiB

%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%global maj 0
Name: lilv
Version: 0.24.20
Release: %autorelease
Summary: An LV2 Resource Description Framework Library
License: MIT
URL: https://drobilla.net/software/lilv
Source0: https://download.drobilla.net/%{name}-%{version}.tar.xz
3 years ago
BuildRequires: meson
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: sord-devel >= 0.16.9
BuildRequires: sratom-devel >= 0.6.9
BuildRequires: lv2-devel >= 1.18.2
BuildRequires: python3-devel
BuildRequires: serd-devel >= 0.30.9
BuildRequires: gcc
BuildRequires: libsndfile-devel >= 1.0.0
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_lv2_theme
Requires: lv2 >= 1.18.2
# 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
%build
%meson
%meson_build
%install
%meson_install
# Delete sphinx buildinfo
rm %{buildroot}%{_docdir}/%{name}-%{maj}/{html,singlehtml}/.buildinfo
# Move devel docs to the right directory
install -d %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_docdir}/%{name}-%{maj} %{buildroot}%{_docdir}/%{name}
%check
%meson_test
%files
%exclude %{_pkgdocdir}/%{name}-%{maj}/
%{_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
%autochangelog