From 480c812eaa35fbb28462d6433b1b9a3232ad338c5bc7a21714e19c0c3e23d430 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 22 Feb 2024 07:14:56 +0000 Subject: [PATCH] - Use %autosetup macro. Allows to eliminate the usage of deprecated %patchN. - Add BuildArch noarch to autoconfig subpackage OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=109 --- sane-backends.changes | 7 +++++++ sane-backends.spec | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sane-backends.changes b/sane-backends.changes index 5869148..19ded84 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 22 07:14:09 UTC 2024 - Michael Vetter + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. +- Add BuildArch noarch to autoconfig subpackage + ------------------------------------------------------------------- Fri Apr 7 18:15:29 UTC 2023 - Javier Llorente diff --git a/sane-backends.spec b/sane-backends.spec index f67b6d1..9dc9dcb 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,7 +1,7 @@ # # spec file for package sane-backends # -# Copyright (c) 2023 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 @@ -153,6 +153,7 @@ Group: Hardware/Scanner Requires: %{libname} = %{version} # When sane-backends is already installed, try to install also sane-backends-autoconfig if available: Supplements: sane-backends +BuildArch: noarch %description autoconfig USB scanner autoconfiguration happens via udev. @@ -187,11 +188,10 @@ Conflicts: %{name} < %{version} Saned allows access to locally attached scanners over the network. %prep -%setup -q # Patch100... is SUSE specific stuff: # Patch102 adapt_epkowa.desc_for_yast2-scanner.patch adapts epkowa.desc for yast2-scanner # see https://bugzilla.opensuse.org/show_bug.cgi?id=788756#c14 -%patch102 +%autosetup -p0 # Remove hpoj.desc completely to avoid confusion with its successor hpaio.desc # because since openSUSE 10.3 the package hp-officeJet (for hpoj.desc) is dropped.