From 56a420c5ee6d390ae0ddcd815e8d52c3f41444a8 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Fri, 14 Jun 2024 10:32:22 +0200 Subject: [PATCH] Enable Packit Use Git tag rather than the official source URL. Confirmed that the content is virtually identical and the download URL is stable. Signed-off-by: Michel Lind --- packit.yaml | 12 ++++++++++++ vamp-plugin-sdk.spec | 13 +++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 packit.yaml diff --git a/packit.yaml b/packit.yaml new file mode 100644 index 0000000..0d62d21 --- /dev/null +++ b/packit.yaml @@ -0,0 +1,12 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +upstream_project_url: https://github.com/vamp-plugins/vamp-plugin-sdk +upstream_tag_template: vamp-plugin-sdk-v{version} +copy_upstream_release_description: false + +jobs: +- job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-rawhide diff --git a/vamp-plugin-sdk.spec b/vamp-plugin-sdk.spec index aeb95e0..3bfc7c7 100644 --- a/vamp-plugin-sdk.spec +++ b/vamp-plugin-sdk.spec @@ -1,17 +1,18 @@ Name: vamp-plugin-sdk -Version: 2.9.0 +Version: 2.9 Release: 9%{?dist} Summary: An API for audio analysis and feature extraction plugins +%global gittag %{name}-v%{version} + License: BSD URL: https://vamp-plugins.org/ -Source0: https://code.soundsoftware.ac.uk/attachments/download/2588/%{name}-%{version}.tar.gz -Patch0: %{name}-2.9.0-libdir.patch +Source: https://github.com/vamp-plugins/vamp-plugin-sdk/archive/%{gittag}/%{name}-%{version}.tar.gz +Patch : %{name}-2.9.0-libdir.patch -BuildRequires: make +BuildRequires: make BuildRequires: gcc-c++ BuildRequires: libsndfile-devel -#Requires: %description Vamp is an API for C and C++ plugins that process sampled audio data @@ -36,7 +37,7 @@ developing static applications that use %{name}. %prep -%autosetup -p1 +%autosetup -p1 -n %{name}-%{gittag} sed -i 's|/lib/vamp|/%{_lib}/vamp|g' src/vamp-hostsdk/PluginHostAdapter.cpp sed -i 's|/lib/|/%{_lib}/|g' src/vamp-hostsdk/PluginLoader.cpp