File vvdec.spec of Package vvdec

#
# spec file for package vvdec
#
# Copyright (c) 2023 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 lname libvvdec
%define __builddir build/release-shared
Name:           vvdec
Version:        1.6.0
Release:        0
Summary:        Fraunhofer Versatile Video Decoder (VVdeC)
License:        BSD-3-Clause-Clear
URL:            https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
Source:         https://github.com/fraunhoferhhi/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  c++_compiler
BuildRequires:  cmake >= 3.13

%description
A fast and efficient H.266/VVC decoder implementation.

%package -n %{lname}
Summary:        Fraunhofer Versatile Video Decoder (VVdeC)
Group:          System/Libraries

%description -n %{lname}
A fast and efficient H.266/VVC decoder implementation.

This package contains a library that can other apps use to utilize the
decoding capabilities.

%package devel
Summary:        Fraunhofer Versatile Video Decoder (VVdeC)
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}

%description devel
A fast and efficient H.266/VVC decoder implementation.

This package contains the development files.

%prep
%autosetup -p1

%build
%cmake \
  -DCMAKE_SKIP_RPATH=YES
%cmake_build

%install
%cmake_install

%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig

%files
%license LICENSE.txt
%doc README.md
%{_bindir}/vvdecapp

%files -n %{lname}
%{_libdir}/*.so

%files devel
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{lname}.pc
%{_libdir}/cmake/%{name}/

%changelog
openSUSE Build Service is sponsored by