SHA256
1
0
forked from pool/luvcview

Accepting request 1149006 from graphics

- Use %patch -P N instead of deprecated %patchN.
- Remove %clean section
- Remove old 0%{?suse_version} >= 1210 condition

OBS-URL: https://build.opensuse.org/request/show/1149006
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/luvcview?expand=0&rev=18
This commit is contained in:
Ana Guerrero 2024-02-22 19:58:56 +00:00 committed by Git OBS Bridge
commit 5fe9352d51
2 changed files with 19 additions and 20 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 22 07:39:01 UTC 2024 - Michael Vetter <mvetter@suse.com>
- 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 Thu Jul 7 10:30:12 UTC 2011 - idonmez@novell.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package luvcview # spec file for package luvcview
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Name: luvcview
BuildRequires: SDL-devel SDL_image-devel BuildRequires: SDL-devel
%if 0%{?suse_version} >= 1210 BuildRequires: SDL_image-devel
BuildRequires: libv4l-devel >= 0.8.4 BuildRequires: libv4l-devel >= 0.8.4
%endif
AutoReqProv: on
Group: Productivity/Multimedia/Video/Players Group: Productivity/Multimedia/Video/Players
Summary: Simple V4L2 application using sdl Summary: Simple V4L2 application using sdl
Version: 20070512 Version: 20070512
Release: 15 Release: 0
Source: %name-%version.src.tar.gz Source: %name-%version.src.tar.gz
Url: http://mxhaard.free.fr/spca50x/Investigation/uvc/ URL: http://mxhaard.free.fr/spca50x/Investigation/uvc/
License: GPL-2.0+ License: GPL-2.0-or-later
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: luvcview-add-COPYING.patch Patch1: luvcview-add-COPYING.patch
Patch2: luvcview-memory-leaks.patch Patch2: luvcview-memory-leaks.patch
@ -42,16 +39,14 @@ luvcview is a simple V4L2 application using sdl
Authors: Authors:
-------- --------
Laurent Pinchart Laurent Pinchart
Michel Xhaard Michel Xhaard
%prep %prep
%setup -n luvcview-%version %setup -n luvcview-%version
%patch1 -p1 %patch -P 1 -p1
%patch2 %patch -P 2
%if 0%{?suse_version} >= 1210 %patch -P 3 -p1
%patch3 -p1
%endif
%build %build
make make
@ -60,9 +55,6 @@ make
%{__mkdir_p} %{buildroot}%{_bindir} %{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -s -m 755 luvcview %{buildroot}%{_bindir} %{__install} -s -m 755 luvcview %{buildroot}%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/luvcview %{_bindir}/luvcview