SHA256
1
0
forked from pool/pulseeffects

Accepting request 1176913 from multimedia:apps

- Switch to _service source tarball
- Update spec
- Add 01-fix-depricated-boost-filesystem-copy_option.patch fixing
  build with current boost

OBS-URL: https://build.opensuse.org/request/show/1176913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pulseeffects?expand=0&rev=13
This commit is contained in:
Ana Guerrero 2024-05-27 09:55:44 +00:00 committed by Git OBS Bridge
commit d2fea2212b
5 changed files with 54 additions and 5 deletions

View File

@ -0,0 +1,26 @@
diff --git a/src/convolver_ui.cpp b/src/convolver_ui.cpp
index fba3d6bfd..d40f3afff 100644
--- a/src/convolver_ui.cpp
+++ b/src/convolver_ui.cpp
@@ -186,7 +186,7 @@ void ConvolverUi::import_irs_file(const std::string& file_path) {
out_path.replace_extension(".irs");
- boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_option::overwrite_if_exists);
+ boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_options::overwrite_existing);
util::debug(log_tag + "imported irs file to: " + out_path.string());
} else {
diff --git a/src/presets_manager.cpp b/src/presets_manager.cpp
index 6926e3d9d..57c333aaf 100644
--- a/src/presets_manager.cpp
+++ b/src/presets_manager.cpp
@@ -472,7 +472,7 @@ void PresetsManager::import(PresetType preset_type, const std::string& file_path
out_path = user_dir / p.filename();
- boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_option::overwrite_if_exists);
+ boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_options::overwrite_existing);
util::debug(log_tag + "imported preset to: " + out_path.string());
}

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/wwmm/easyeffects</param>
<param name="scm">git</param>
<param name="revision">pulseaudio-legacy</param>
<param name="version">4.8.7</param>
<param name="filename">pulseeffects</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d841f27df87b99747349be6b8de62d131422369908fcb57a81f39590437a8099
size 2028489
oid sha256:1d2abeb40cf0fed1f69e43c0b73c204862771174bc1a15c19d7006d69fde8484
size 2066973

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu May 23 23:04:56 UTC 2024 - Konstantin Voinov <kv@kott.no-ip.biz>
- Switch to _service source tarball
- Update spec
- Add 01-fix-depricated-boost-filesystem-copy_option.patch fixing
build with current boost
-------------------------------------------------------------------
Sun May 22 06:55:48 UTC 2022 - Konstantin Voinov <kv@kott.no-ip.biz>

View File

@ -1,7 +1,7 @@
#
# spec file for package pulseeffects
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,7 +22,8 @@ Release: 0
Summary: Audio effects for Pulseaudio applications
License: GPL-3.0-or-later
URL: https://github.com/wwmm/pulseeffects
Source0: https://github.com/wwmm/pulseeffects/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
Patch0: 01-fix-depricated-boost-filesystem-copy_option.patch
BuildRequires: appstream-glib
BuildRequires: gcc-c++
BuildRequires: itstool
@ -62,7 +63,7 @@ effects for Pulseaudio applications.
%lang_package
%prep
%setup -q -n easyeffects-%{version}
%autosetup -p1
# we don't need this
sed -i '/^meson.add_install_script/d' meson.build