%global maj 0 Name: sratom Version: 0.6.14 Release: %autorelease Summary: A C library for serializing LV2 plugins License: MIT URL: https://drobilla.net/software/%{name}/ Source0: https://download.drobilla.net/%{name}-%{version}.tar.xz BuildRequires: meson BuildRequires: doxygen BuildRequires: graphviz BuildRequires: sord-devel >= 0.14.0 BuildRequires: serd-devel >= 0.30.0 BuildRequires: lv2-devel >= 1.16.0 BuildRequires: gcc BuildRequires: python3-sphinx BuildRequires: python3-sphinx_lv2_theme %description %{name} is a new C library for serializing LV2 atoms to/from Turtle. It is intended to be a full serialization solution for LV2 atoms, allowing implementations to serialize binary atoms to strings and read them back again. This is particularly useful for saving plugin state, or implementing plugin control with network transparency. %package devel Summary: Development libraries and headers for %{name} Requires: %{name}%{_isa} = %{version}-%{release} %description devel %{name} is a C library for serializing LV2 atoms to/from Turtle. It is intended to be a full serialization solution for LV2 atoms, allowing implementations to serialize binary atoms to strings and read them back again. This is particularly useful for saving plugin state, or implementing plugin control with network transparency. This package contains the headers and development 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 %doc README.md %license COPYING %{_libdir}/lib%{name}-%{maj}.so.* %files devel %doc %{_docdir}/%{name}/%{name}-%{maj}/ %{_libdir}/lib%{name}-%{maj}.so %{_libdir}/pkgconfig/%{name}-%{maj}.pc %{_includedir}/%{name}-%{maj}/ %changelog %autochangelog