File vdr-plugin-softhddevice.spec of Package vdr-plugin-softhddevice

#
# spec file for package vdr-plugin-softhddevice
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define pluginname softhddevice
Name:           vdr-plugin-%{pluginname}
Version:        2.1.0
Release:       1
Summary:     softhddevice plugin for VDR
License:        AGPL-3.0-only
Group:           Productivity/Multimedia/Other
Url:                https://github.com/ua0lnj/vdr-plugin-softhddevice/
Source0:       vdr-plugin-%{pluginname}-%{version}.zip

#Patch1:         audio_get_pts.diff

BuildRequires:  unzip
BuildRequires:  gcc-c++
BuildRequires:  ffmpeg
#BuildRequires:  pkgconfig(libpcre2-8)
BuildRequires:  vdr-devel
BuildRequires:  ffmpeg-devel
#BuildRequires:  ffmpeg-4-libavcodec-devel
#BuildRequires:  ffmpeg-4-libavdevice-devel
#BuildRequires:  ffmpeg-4-libavfilter-devel
#BuildRequires:  ffmpeg-4-libavformat-devel
#BuildRequires:  ffmpeg-4-libavresample-devel
#BuildRequires:  ffmpeg-4-libavutil-devel
#BuildRequires:  ffmpeg-4-libpostproc-devel
#BuildRequires:  ffmpeg-4-libswresample-devel
#BuildRequires:  ffmpeg-4-libswscale-devel
#BuildRequires:  ffmpeg-4-private-devel
BuildRequires:  alsa-devel
BuildRequires:  libva-devel
BuildRequires:  libvdpau-devel
BuildRequires:  libva-glx2
#BuildRequires:  libavcodec
BuildRequires:  libavcodec-devel
BuildRequires:  libavutil-devel
BuildRequires:  libavdevice-devel
BuildRequires:  libavfilter-devel
BuildRequires:  libavformat-devel
BuildRequires:  libX11-devel
BuildRequires:  libdrm-devel
BuildRequires:  libxcb-devel
BuildRequires:  xcb-util-devel
BuildRequires:  xcb-util-wm-devel
BuildRequires:  xcb-util-keysyms-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  Mesa-libEGL-devel
BuildRequires:  glu-devel
BuildRequires:  libva-gl-devel
#BuildRequires:  intel-vaapi-driver
# Requires(pre) is not enough, as it does not work on updates
Requires:       vdr(abi) = %{vdr_apiversion}
Requires:       ffmpeg
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The 'softhddevice' plugin implements a software and GPU emulated UHD output device for VDR.

%prep
#%autosetup -p1

%build
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
%{vdr_find_locale}

%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%{vdr_dirs}
%doc README.txt
%license AGPL-3.0.txt

%changelog
* Mon Feb 05 2024 Walter Laub 2.1.0
* Sun Jan 28 2022 Walter Laub 2.0.9
- Initial RPM release
openSUSE Build Service is sponsored by