File uvg266.spec of Package uvg266
98
1
#
2
# spec file for package uvg266
3
#
4
# Copyright (c) 2024 Packman Team <packman@links2linux.de>
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.links2linux.org
16
#
17
18
%define sover 081
19
Name: uvg266
20
Version: 0.8.1
21
Release: 0
22
Summary: VVC encoder based on Kvazaar
23
License: BSD-3-Clause AND ISC
24
URL: https://ultravideo.fi/#encoder
25
Source0: https://github.com/ultravideo/uvg266/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
26
# PATCH-FIX-OPENSUSE uvg266-add_lm.patch
27
Patch0: uvg266-add_lm.patch
28
# PATCH-FIX-OPENSUSE uvg266-add_library_version.patch
29
Patch1: uvg266-add_library_version.patch
30
# PATCH-FIX-OPENSUSE uvg266-fix_no_return_nonvoid.patch
31
Patch2: uvg266-fix_no_return_nonvoid.patch
32
BuildRequires: cmake
33
%if 0%{?suse_version} > 1500
34
BuildRequires: gcc-c++
35
%else
36
BuildRequires: gcc12
37
BuildRequires: gcc12-c++
38
%endif
39
BuildRequires: pkgconfig
40
41
42
%description
43
A VVC encoder based on Kvazaar.
44
45
%package -n lib%{name}_%{sover}
46
Summary: VVC encoder based on Kvazaar
47
48
%description -n lib%{name}_%{sover}
49
A VVC encoder based on Kvazaar.
50
51
%package devel
52
Summary: Development files for lib%{name}_%{sover}
53
Requires: lib%{name}_%{sover} = %{version}
54
55
%description devel
56
Contains development files for lib%{name}_%{sover}
57
58
%prep
59
%autosetup -p1
60
# fix soname
61
sed -i 's|__VERSION__|%{sover}|g' CMakeLists.txt src/uvg266.pc.in
62
63
%build
64
export CC=cc
65
export CXX=g++
66
test -x "$(type -p gcc-12)" && export CC=gcc-12
67
test -x "$(type -p g++-12)" && export CXX=g++-12
68
%cmake \
69
-DCMAKE_C_COMPILER=$CC \
70
-DCMAKE_CXX_COMPILER=$CXX
71
%cmake_build
72
73
%install
74
%cmake_install
75
76
%check
77
78
%post -n lib%{name}_%{sover}
79
/sbin/ldconfig
80
81
%postun -n lib%{name}_%{sover}
82
/sbin/ldconfig
83
84
%files
85
%license LICENSE LICENSE.EXT.greatest
86
%doc README.md
87
%{_bindir}/%{name}
88
%{_mandir}/man1/%{name}.1%{?ext_man}
89
90
%files -n lib%{name}_%{sover}
91
%{_libdir}/lib%{name}-%{sover}.so
92
93
%files devel
94
%{_includedir}/uvg266.h
95
%{_libdir}/pkgconfig/%{name}.pc
96
97
%changelog
98