From d1e849c0e4068cfc78d145aa1af9f4e341fdd410 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Mon, 23 Sep 2024 09:33:36 +0200 Subject: [PATCH] Update to 1.18.10, cleanup --- .gitignore | 1 + lv2-no-gtk2.patch | 30 +++++++ lv2.spec | 215 +++------------------------------------------- sources | 2 +- 4 files changed, 43 insertions(+), 205 deletions(-) create mode 100644 lv2-no-gtk2.patch diff --git a/.gitignore b/.gitignore index 5f095fe..e9be6cf 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /lv2-1.18.2.tar.bz2 /lv2-1.18.4.tar.bz2 /lv2-1.18.8.tar.xz +/lv2-1.18.10.tar.xz diff --git a/lv2-no-gtk2.patch b/lv2-no-gtk2.patch new file mode 100644 index 0000000..c4a4bbb --- /dev/null +++ b/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/lv2.spec b/lv2.spec index c9c28ea..976352f 100644 --- a/lv2.spec +++ b/lv2.spec @@ -1,14 +1,13 @@ -%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} - Name: lv2 -Version: 1.18.8 -Release: 9%{?dist} +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 @@ -23,12 +22,6 @@ Buildrequires: python3-rdflib Buildrequires: python3-markdown Buildrequires: python3-lxml -# this package replaces lv2core -Provides: lv2core = 6.0-4 -Obsoletes: lv2core < 6.0-4 -Provides: lv2-ui = 2.4-5 -Obsoletes: lv2-ui < 2.4-5 - %description LV2 is a standard for plugins and matching host applications, mainly targeted at audio processing and generation. @@ -49,10 +42,6 @@ Summary: API for the LV2 Audio Plugin Standard Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3-rdflib Requires: python3-markdown -Provides: lv2core-devel = 6.0-4 -Obsoletes: lv2core-devel < 6.0-4 -Provides: lv2-ui-devel = 2.4-5 -Obsoletes: lv2-ui-devel < 2.4-5 %description devel lv2-devel contains the lv2.h header file and headers for all of the @@ -65,8 +54,6 @@ header file. %package doc Summary: Documentation for the LV2 Audio Plugin Standard BuildArch: noarch -Obsoletes: %{name}-docs < 1.6.0-2 -Provides: %{name}-docs = %{version}-%{release} %description doc Documentation for the LV2 plugin API. @@ -97,58 +84,6 @@ sed -i '1s|^#!.*|#!%{__python3}|' lv2specgen/lv2specgen.py # Let RPM pick docs in the files section rm -fr %{buildroot}%{_docdir}/%{name} -%pretrans devel -p --- Remove all symlinks existed in lv2-devel-1.18.2-2.fc36 - -hdir = "%{_includedir}/%{name}" -pdir = hdir .. "/lv2plug.in" - --- List parent directories in reverse order --- inside lv2 specific directories -parent_dirs = {} -table.insert(parent_dirs, pdir .. "/ns/extensions") -table.insert(parent_dirs, pdir .. "/ns/ext") -table.insert(parent_dirs, pdir .. "/ns") -table.insert(parent_dirs, hdir) - -for i = 1, #parent_dirs, 1 do -- not use ipairs here to guarantee order - parent = parent_dirs[i] - - dir_entry = posix.dir(parent) - if not(dir_entry) then - goto skip_2 - end - for j, path in pairs(dir_entry) do - exclude_list = {"." , ".."} - for k, ex in ipairs(exclude_list) do - if path == ex then - goto skip_1 - end - end - - fullpath = parent .. "/" - fullpath = fullpath .. path - st = posix.stat(fullpath) - if st and st.type == "link" then - os.remove(fullpath) - end - - ::skip_1:: - end - ::skip_2:: -end - --- Remove extra symlinks -pathlist = {} -table.insert(pathlist, "%{_inclduedir}/lv2.h") -for i = 1, #pathlist, 1 do - fullpath = pathlist[i] - st = posix.stat(fullpath) - if st and st.type == "link" then - os.remove(fullpath) - end -end - %files %license COPYING %doc NEWS README.md @@ -193,13 +128,19 @@ end %{_libdir}/%{name}/eg-metro.lv2 %{_libdir}/%{name}/eg-midigate.lv2 %{_libdir}/%{name}/eg-params.lv2 -%{_libdir}/%{name}/eg-sampler.lv2 -%{_libdir}/%{name}/eg-scope.lv2 %files doc %doc %{_vpath_builddir}/doc/* %changelog +* 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 @@ -244,137 +185,3 @@ end * Fri Oct 08 2021 Guido Aulisi - 1.18.2-1 - Update to 1.18.2 - Add BR gcc-c++ - -* Thu Jul 22 2021 Fedora Release Engineering - 1.18.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jan 26 2021 Fedora Release Engineering - 1.18.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Aug 26 2020 Guido Aulisi - 1.18.0-1 -- Update to 1.18.0 -- Add missing BR - -* Tue Jul 28 2020 Fedora Release Engineering - 1.16.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 1.16.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 1.16.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Tue Apr 23 2019 Guido Aulisi - 1.16.0-1 -- Update to 1.16.0 -- Use python3 -- Some spec cleanup - -* Tue Feb 19 2019 Guido Aulisi - 1.14.0-9 -- Add missing dependency in devel package - -* Fri Feb 01 2019 Fedora Release Engineering - 1.14.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sun Jul 15 2018 Guido Aulisi - 1.14.0-7 -- Fix FTBFS due to the move of /usr/bin/python into a separate package - -* Fri Jul 13 2018 Fedora Release Engineering - 1.14.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Iryna Shcherbina - 1.14.0-5 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Thu Aug 03 2017 Fedora Release Engineering - 1.14.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.14.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon Mar 27 2017 Guido Aulisi - 1.14.0-2 -- Fix wrong interpreter in lv2specgen.py - -* Mon Mar 13 2017 Guido Aulisi - 1.14.0-1 -- Update to 1.14.0 -- Move examples to the example-plugins subpackage -- Provide debuginfo for the examples -- Use hardened LDFLAGS -- Enable syntax highlighting in doc subpackage -- Remove deprecated Group tags - -* Fri Feb 10 2017 Fedora Release Engineering - 1.12.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Sep 16 2016 Brendan Jones - 1.12.0-1 -- Update to 1.12.0 - -* Thu Feb 04 2016 Fedora Release Engineering - 1.10.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 1.10.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Tue Aug 19 2014 Brendan Jones 1.10.0-2 -- Add missing libsndfile - -* Tue Aug 19 2014 Brendan Jones 1.10.0-1 -- Update to 1.10.0 - -* Sun Aug 17 2014 Fedora Release Engineering - 1.8.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 1.8.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Jan 09 2014 Brendan Jones 1.8.0-1 -- Upstream maintenance release -- Add example plugins - -* Sun Sep 22 2013 Michael Schwendt - 1.6.0-2 -- Don't duplicate -doc package contents in base package (#913540). -- Define and use %%_pkgdocdir as suggested by the Unversioned Docdirs - change for Fedora 20 (#993908). -- Pass --docdir= to waf. -- Use Group Documentation in -doc subpackage. -- Rename -docs package to -doc as recommended in the guidelines. -- The documentation subpackage does not need the base package. - -* Fri Aug 23 2013 Brendan Jones 1.6.0-1 -- Update to 1.6.0 - -* Sat Aug 03 2013 Fedora Release Engineering - 1.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Tue May 21 2013 Brendan Jones 1.4.0-1 -- New upstream release - -* Thu Feb 14 2013 Fedora Release Engineering - 1.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Oct 20 2012 Brendan Jones 1.2.0-1 -- New upstream release - -* Thu Jul 19 2012 Fedora Release Engineering - 1.0.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Wed Jun 13 2012 Brendan Jones 1.0.0-7 -- Remove date from doxygen footers - -* Sat Apr 21 2012 Brendan Jones - 1.0.0-6 -- Re-suppress debuginfo - -* Sat Apr 21 2012 Brendan Jones - 1.0.0-5 -- libsndfile no longer required - -* Sat Apr 21 2012 Brendan Jones - 1.0.0-4 -- remove examples - -* Fri Apr 20 2012 Brendan Jones - 1.0.0-3 -- dd libsndfile BR - -* Fri Apr 20 2012 Brendan Jones - 1.0.0-2 -- Remove debuginfo supression, correct changelog - -* Fri Apr 20 2012 Brendan Jones - 1.0.0-1 -- Created - diff --git a/sources b/sources index 8604699..ffb5231 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lv2-1.18.8.tar.xz) = 9925290818bd683200bc738e3e9342b946fe82a04d983e89c240ae70b9053a7a59a8d505c522fe7af5b804adeba00fdf94403bd34844ce11e26cc1ff62c2f254 +SHA512 (lv2-1.18.10.tar.xz) = ab4bcf593f633b1ed16c0eb6aa4525458a00655ef9c87619bf85eaa966f8fd094a8e871b825f679e0d97923f8bbbf11841ff467022390ca2f1a5b5f66ccd5d1b