From b692d2fc88f6d4a609bf0f99f1e02b95061bc6a886ae99cce0a1dda7250686b1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 22 Feb 2024 07:41:46 +0000 Subject: [PATCH] - Use %patch -P N instead of deprecated %patchN. - Remove %clean section - Remove old 0%{?suse_version} >= 1210 condition OBS-URL: https://build.opensuse.org/package/show/graphics/luvcview?expand=0&rev=9 --- luvcview.changes | 7 +++++++ luvcview.spec | 34 +++++++++++++--------------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/luvcview.changes b/luvcview.changes index 27ad86f..403fa7b 100644 --- a/luvcview.changes +++ b/luvcview.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 22 07:39:01 UTC 2024 - Michael Vetter + +- Use %patch -P N instead of deprecated %patchN. +- Remove %clean section +- Remove old 0%{?suse_version} >= 1210 condition + ------------------------------------------------------------------- Thu Jul 7 10:30:12 UTC 2011 - idonmez@novell.com diff --git a/luvcview.spec b/luvcview.spec index 1677638..2b90559 100644 --- a/luvcview.spec +++ b/luvcview.spec @@ -1,7 +1,7 @@ # -# spec file for package luvcview (Version 20070512) +# spec file for package luvcview # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -12,24 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # - Name: luvcview -BuildRequires: SDL-devel SDL_image-devel -%if 0%{?suse_version} >= 1210 +BuildRequires: SDL-devel +BuildRequires: SDL_image-devel BuildRequires: libv4l-devel >= 0.8.4 -%endif -AutoReqProv: on Group: Productivity/Multimedia/Video/Players Summary: Simple V4L2 application using sdl Version: 20070512 -Release: 5 +Release: 0 Source: %name-%version.src.tar.gz -Url: http://mxhaard.free.fr/spca50x/Investigation/uvc/ -License: GPLv2+ +URL: http://mxhaard.free.fr/spca50x/Investigation/uvc/ +License: GPL-2.0-or-later BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch1: luvcview-add-COPYING.patch Patch2: luvcview-memory-leaks.patch @@ -42,16 +39,14 @@ luvcview is a simple V4L2 application using sdl Authors: -------- - Laurent Pinchart - Michel Xhaard + Laurent Pinchart + Michel Xhaard %prep %setup -n luvcview-%version -%patch1 -p1 -%patch2 -%if 0%{?suse_version} >= 1210 -%patch3 -p1 -%endif +%patch -P 1 -p1 +%patch -P 2 +%patch -P 3 -p1 %build make @@ -60,9 +55,6 @@ make %{__mkdir_p} %{buildroot}%{_bindir} %{__install} -s -m 755 luvcview %{buildroot}%{_bindir} -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root) %{_bindir}/luvcview