-
Notifications
You must be signed in to change notification settings - Fork 0
/
libvdpau.spec
103 lines (81 loc) · 2.7 KB
/
libvdpau.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Name: libvdpau
Version: 1.5
Release: 11%{?dist}
Summary: Wrapper library for the Video Decode and Presentation API
License: MIT
URL: https://www.freedesktop.org/wiki/Software/VDPAU/
Source0: https://gitlab.freedesktop.org/vdpau/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
Patch0: https://gitlab.freedesktop.org/vdpau/libvdpau/-/commit/2afa3f989af24a922692ac719fae23c321776cdb.diff
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libX11-devel
BuildRequires: meson >= 0.41
BuildRequires: tex(latex)
BuildRequires: pkgconfig(dri2proto) >= 2.2
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
%description
VDPAU is the Video Decode and Presentation API for UNIX. It provides an
interface to video decode acceleration and presentation hardware present in
modern GPUs.
%package trace
Summary: Trace library for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} >= 8
Supplements: %{name}-debuginfo%{?_isa}
%endif
%description trace
The %{name}-trace package contains trace library for %{name}.
%package docs
Summary: Documentation for %{name}
BuildArch: noarch
%description docs
The %{name}-docs package contains documentation for %{name}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
# Multilibs trace
Requires: %{name}-trace%{?_isa} = %{version}-%{release}
Requires: pkgconfig(x11)
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
#find %{buildroot} -name '*.la' -delete
# Let RPM pick up the docs in the files section
rm -fr %{buildroot}%{_docdir}
%{?ldconfig_scriptlets}
%files
%license COPYING
%doc AUTHORS
%config(noreplace) %{_sysconfdir}/vdpau_wrapper.cfg
%{_libdir}/%{name}.so.1
%{_libdir}/%{name}.so.1.0.0
%dir %{_libdir}/vdpau/
%files trace
%{_libdir}/vdpau/%{name}_trace.so*
%files docs
%doc %{_vpath_builddir}/doc/html/*
%files devel
%{_includedir}/vdpau/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/vdpau.pc
%changelog
* Fri Oct 07 2022 Simone Caronni <[email protected]> - 1.5-11
- Add upstream AV1 tracing patch.
* Thu Mar 31 2022 Simone Caronni <[email protected]> - 1.5-10
- Update to 1.5.
* Sun Feb 13 2022 Simone Caronni <[email protected]> - 1.4-10
- Update SPEC file.
- Add upstream patches, enables AV1 decoding as shipped in the upstream Nvidia
drivers.
* Wed Jun 24 2020 Nicolas Chauvet <[email protected]> - 1.4-2
- Rebuilt