]>
Commit | Line | Data |
---|---|---|
6f32ad01 ER |
1 | # |
2 | # Conditional build: | |
6f32ad01 | 3 | %bcond_without apidocs # do not build and package API docs |
6f32ad01 | 4 | |
0b424e36 AG |
5 | Summary: Wrapper library for the Video Decode and Presentation API |
6 | Summary(pl.UTF-8): Biblioteka pośrednia do API dekodowania i prezentacji video (Video Decode and Presentation API) | |
7 | Name: libvdpau | |
b46b10a2 JB |
8 | Version: 1.4 |
9 | Release: 1 | |
0b424e36 AG |
10 | License: MIT |
11 | Group: Libraries | |
95def3da | 12 | #Source0Download: https://gitlab.freedesktop.org/vdpau/libvdpau/tags |
93292542 | 13 | Source0: https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/%{version}/libvdpau-%{version}.tar.bz2 |
b46b10a2 | 14 | # Source0-md5: a664cc2cfe9c30536d2e11c928cbea35 |
95def3da | 15 | URL: https://freedesktop.org/wiki/Software/VDPAU |
0068e9db | 16 | %if %{with apidocs} |
17 | BuildRequires: doxygen | |
18 | BuildRequires: graphviz | |
da031fa5 JP |
19 | BuildRequires: texlive-dvips |
20 | BuildRequires: texlive-latex | |
0068e9db | 21 | %endif |
0b424e36 | 22 | BuildRequires: libstdc++-devel |
93292542 | 23 | BuildRequires: meson >= 0.41 |
7c0a16e9 | 24 | BuildRequires: ninja >= 1.5 |
0b424e36 | 25 | BuildRequires: pkgconfig |
6f32ad01 | 26 | BuildRequires: rpm >= 4.4.9-56 |
93292542 | 27 | BuildRequires: rpmbuild(macros) >= 1.736 |
fb9211d5 | 28 | %{?with_apidocs:BuildRequires: texlive-pdftex} |
36ded66c | 29 | BuildRequires: xorg-lib-libX11-devel >= 1.5 |
3ffb19b8 | 30 | BuildRequires: xorg-lib-libXext-devel |
16d044a3 | 31 | BuildRequires: xorg-proto-dri2proto-devel >= 2.2 |
f757a1f8 | 32 | Requires: xorg-lib-libX11 >= 1.5 |
a7041516 JB |
33 | # withdrawn (and never useful) Mesa drivers |
34 | Obsoletes: libvdpau-driver-mesa-r300 < 10 | |
35 | Obsoletes: libvdpau-driver-mesa-softpipe < 10 | |
30c321a4 | 36 | Conflicts: xorg-driver-video-nvidia-libs < 1:190.42-2 |
0b424e36 AG |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | VDPAU is the Video Decode and Presentation API for UNIX. It provides | |
41 | an interface to video decode acceleration and presentation hardware | |
42 | present in modern GPUs. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | VDPAU to skrót od Video Decode and Presentation API for UNIX. | |
46 | Biblioteka ta dostarcza interfejs do akceleracji dekodowania oraz | |
47 | prezentacji video obecnej we współczesnych procesorach graficznych. | |
48 | ||
49 | %package devel | |
50 | Summary: Header files for vdpau library | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vdpau | |
52 | Group: Development/Libraries | |
53 | Requires: %{name} = %{version}-%{release} | |
b46b10a2 | 54 | Requires: xorg-lib-libX11-devel |
93292542 | 55 | Obsoletes: libvdpau-static |
0b424e36 AG |
56 | |
57 | %description devel | |
58 | Header files for vdpau library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki vdpau. | |
62 | ||
6f32ad01 ER |
63 | %package apidocs |
64 | Summary: vdpau API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki vdpau | |
66 | Group: Documentation | |
b46b10a2 | 67 | %if "%{_rpmversion}" >= "4.6" |
ce37ab17 ER |
68 | BuildArch: noarch |
69 | %endif | |
6f32ad01 ER |
70 | |
71 | %description apidocs | |
72 | API and internal documentation for vdpau library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki vdpau. | |
76 | ||
0b424e36 AG |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
93292542 JP |
81 | %meson build \ |
82 | -Ddocumentation=%{__true_false apidocs} | |
83 | %ninja_build -C build | |
0b424e36 AG |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
93292542 | 88 | %ninja_install -C build |
0b424e36 | 89 | |
6f32ad01 | 90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_trace.so |
3f0c26ed | 91 | |
5bcedabe | 92 | %if %{with apidocs} |
b46b10a2 | 93 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/{%{name}/html,%{name}-apidocs} |
5bcedabe | 94 | %endif |
7b1f8c60 | 95 | |
0b424e36 AG |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
93292542 | 104 | %doc AUTHORS COPYING |
3f0c26ed JB |
105 | %attr(755,root,root) %{_libdir}/libvdpau.so.*.*.* |
106 | %attr(755,root,root) %ghost %{_libdir}/libvdpau.so.1 | |
0c0558e2 KK |
107 | %dir %{_libdir}/vdpau |
108 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_trace.so.*.*.* | |
5b2cd33e | 109 | %attr(755,root,root) %{_libdir}/vdpau/libvdpau_trace.so.1 |
3f5c46f2 | 110 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vdpau_wrapper.cfg |
0b424e36 AG |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
3f0c26ed | 114 | %attr(755,root,root) %{_libdir}/libvdpau.so |
0b424e36 | 115 | %{_includedir}/vdpau |
3f0c26ed | 116 | %{_pkgconfigdir}/vdpau.pc |
0b424e36 | 117 | |
6f32ad01 ER |
118 | %if %{with apidocs} |
119 | %files apidocs | |
120 | %defattr(644,root,root,755) | |
7b1f8c60 | 121 | %{_docdir}/%{name}-apidocs |
6f32ad01 | 122 | %endif |