From 2afeb856ea267ce478af82a6157f14a8b000862f Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 23 Dec 2024 13:45:55 +0300 Subject: [PATCH] import lv2-1.18.10-1.el10 --- .gitignore | 1 + .lv2.metadata | 1 + SOURCES/lv2-no-gtk2.patch | 30 ++++++ SPECS/lv2.spec | 190 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+) create mode 100644 .gitignore create mode 100644 .lv2.metadata create mode 100644 SOURCES/lv2-no-gtk2.patch create mode 100644 SPECS/lv2.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7788c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lv2-1.18.10.tar.xz diff --git a/.lv2.metadata b/.lv2.metadata new file mode 100644 index 0000000..c56c290 --- /dev/null +++ b/.lv2.metadata @@ -0,0 +1 @@ +d1a13a3a2edc5bc6809b58a69c9f6a17cfc5c79c SOURCES/lv2-1.18.10.tar.xz diff --git a/SOURCES/lv2-no-gtk2.patch b/SOURCES/lv2-no-gtk2.patch new file mode 100644 index 0000000..c4a4bbb --- /dev/null +++ b/SOURCES/lv2-no-gtk2.patch @@ -0,0 +1,30 @@ +diff -Naur lv2-1.18.10.old/plugins/meson.build lv2-1.18.10/plugins/meson.build +--- lv2-1.18.10.old/plugins/meson.build 2024-09-23 09:20:09.575701931 +0200 ++++ lv2-1.18.10/plugins/meson.build 2024-09-23 09:25:32.321053448 +0200 +@@ -9,8 +9,6 @@ + subdir('eg-metro.lv2') + subdir('eg-midigate.lv2') + subdir('eg-params.lv2') +- subdir('eg-sampler.lv2') +- subdir('eg-scope.lv2') + endif + + if not get_option('docs').disabled() +@@ -37,17 +35,6 @@ + 'eg-params.lv2/params.c', + 'eg-params.lv2/params.ttl', + 'eg-params.lv2/state_map.h', +- 'eg-sampler.lv2/README.txt', +- 'eg-sampler.lv2/atom_sink.h', +- 'eg-sampler.lv2/peaks.h', +- 'eg-sampler.lv2/sampler.c', +- 'eg-sampler.lv2/sampler.ttl', +- 'eg-sampler.lv2/sampler_ui.c', +- 'eg-sampler.lv2/uris.h', +- 'eg-scope.lv2/README.txt', +- 'eg-scope.lv2/examploscope.c', +- 'eg-scope.lv2/examploscope_ui.c', +- 'eg-scope.lv2/uris.h', + ) + + # Compile book sources into book.txt asciidoc source diff --git a/SPECS/lv2.spec b/SPECS/lv2.spec new file mode 100644 index 0000000..b4d8dea --- /dev/null +++ b/SPECS/lv2.spec @@ -0,0 +1,190 @@ +Name: lv2 +Version: 1.18.10 +Release: 1%{?dist} +Summary: Audio Plugin Standard + +# lv2specgen template.html is CC-AT-SA +License: ISC +URL: https://lv2plug.in +Source: https://lv2plug.in/spec/lv2-%{version}.tar.xz +Patch0: %{name}-no-gtk2.patch + +BuildRequires: asciidoc +Buildrequires: cairo-devel >= 1.8.10 +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: graphviz +BuildRequires: libsndfile-devel +BuildRequires: meson +BuildRequires: pkgconfig(samplerate) +BuildRequires: python3-pygments +Buildrequires: python3-rdflib +Buildrequires: python3-markdown +Buildrequires: python3-lxml + +%description +LV2 is a standard for plugins and matching host applications, mainly +targeted at audio processing and generation. + +There are a large number of open source and free software synthesis +packages in use or development at this time. This API ('LV2') attempts +to give programmers the ability to write simple 'plugin' audio +processors in C/C++ and link them dynamically ('plug') into a range of +these packages ('hosts'). It should be possible for any host and any +plugin to communicate completely through this interface. + +LV2 is a successor to LADSPA, created to address the limitations of +LADSPA which many hosts have outgrown. + +%package devel +Summary: API for the LV2 Audio Plugin Standard + +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python3-rdflib +Requires: python3-markdown + +%description devel +lv2-devel contains the lv2.h header file and headers for all of the +LV2 specification extensions and bundles. + +Definitive technical documentation on LV2 plug-ins for both the host +and plug-in is contained within copious comments within the lv2.h +header file. + +%package doc +Summary: Documentation for the LV2 Audio Plugin Standard +BuildArch: noarch + +%description doc +Documentation for the LV2 plugin API. + +%package example-plugins +Summary: Examples of the LV2 Audio Plugin Standard +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description example-plugins +Example plugins for the LV2 Audio Plugin Standard. + +%prep +%autosetup -p1 +# Fix wrong interpreter in lv2specgen.py +sed -i '1s|^#!.*|#!%{__python3}|' lv2specgen/lv2specgen.py + +%build +%meson \ + -D docs=enabled \ + -D old_headers=true \ + -D tests=disabled + +%meson_build + +%install +%meson_install + +# Let RPM pick docs in the files section +rm -fr %{buildroot}%{_docdir}/%{name} + +%files +%license COPYING +%doc NEWS README.md +%dir %{_libdir}/%{name}/ +%{_libdir}/%{name}/atom.lv2 +%{_libdir}/%{name}/buf-size.lv2 +%{_libdir}/%{name}/core.lv2 +%{_libdir}/%{name}/data-access.lv2 +%{_libdir}/%{name}/dynmanifest.lv2 +%{_libdir}/%{name}/event.lv2 +%{_libdir}/%{name}/instance-access.lv2 +%{_libdir}/%{name}/log.lv2 +%{_libdir}/%{name}/midi.lv2 +%{_libdir}/%{name}/morph.lv2 +%{_libdir}/%{name}/options.lv2 +%{_libdir}/%{name}/parameters.lv2 +%{_libdir}/%{name}/patch.lv2 +%{_libdir}/%{name}/port-groups.lv2 +%{_libdir}/%{name}/port-props.lv2 +%{_libdir}/%{name}/presets.lv2 +%{_libdir}/%{name}/resize-port.lv2 +%{_libdir}/%{name}/schemas.lv2 +%{_libdir}/%{name}/state.lv2 +%{_libdir}/%{name}/time.lv2 +%{_libdir}/%{name}/ui.lv2 +%{_libdir}/%{name}/units.lv2 +%{_libdir}/%{name}/uri-map.lv2 +%{_libdir}/%{name}/urid.lv2 +%{_libdir}/%{name}/worker.lv2 + +%files devel +%{_bindir}/lv2specgen.py +%{_bindir}/lv2_validate +%{_datadir}/lv2specgen +%{_includedir}/%{name}/ +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/lv2.h + +%files example-plugins +%{_libdir}/%{name}/eg-amp.lv2 +%{_libdir}/%{name}/eg-fifths.lv2 +%{_libdir}/%{name}/eg-metro.lv2 +%{_libdir}/%{name}/eg-midigate.lv2 +%{_libdir}/%{name}/eg-params.lv2 + +%files doc +%doc %{_vpath_builddir}/doc/* + +%changelog +* Mon Dec 23 2024 MSVSphere Packaging Team - 1.18.10-1 +- Rebuilt for MSVSphere 10 + +* Mon Sep 23 2024 Simone Caronni - 1.18.10-1 +- Update to 1.18.10. +- Delete very old macro and provides/obsoletes definitions. We don't have any + of those versions anymore in any non-EOL release. +- Trim changelog. +- Drop examples that require GTK2. +- Remove %pretrans lua scriptlet, required only when going from el8 to el9. + +* Thu Jul 18 2024 Fedora Release Engineering - 1.18.8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.18.8-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.18.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.18.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.18.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Sep 30 2022 Mamoru TASAKA - 1.18.8-4 +- Fix pretrans lua script error for first installation (not upgrade) + (#2131236) + +* Fri Sep 23 2022 Mamoru TASAKA - 1.18.8-3 +- Remove all symlinks in previous -devel subpackage in %%pre_trans + to ensure update transaction (#2123422) + +* Sat Sep 17 2022 Guido Aulisi - 1.18.8-2 +- Readd old headers #2127286 + +* Tue Aug 30 2022 Simone Caronni - 1.18.8-1 +- Update to 1.18.8, switch to Meson. +- Update docs installation. +- Drop gcc/python-devel build requirements. +- Avoid exclude directives in the files section so build ids are not duplicated. + +* Thu Jul 21 2022 Fedora Release Engineering - 1.18.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 02 2022 Guido Aulisi - 1.18.4-1 +- Update to 1.18.4 + +* Thu Jan 20 2022 Fedora Release Engineering - 1.18.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Oct 08 2021 Guido Aulisi - 1.18.2-1 +- Update to 1.18.2 +- Add BR gcc-c++