From 5141cf076986a2cb99fe640e6e8d68cb3ff12948 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 01 2019 17:24:39 +0000 Subject: import libvdpau-1.1.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31a3cc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libvdpau-1.1.1.tar.bz2 diff --git a/.libvdpau.metadata b/.libvdpau.metadata new file mode 100644 index 0000000..f9b16e0 --- /dev/null +++ b/.libvdpau.metadata @@ -0,0 +1 @@ +d0158f403be87d0ff554e95ddfcce6d4b2b5f3b8 SOURCES/libvdpau-1.1.1.tar.bz2 diff --git a/SOURCES/0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch b/SOURCES/0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch new file mode 100644 index 0000000..5598410 --- /dev/null +++ b/SOURCES/0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch @@ -0,0 +1,31 @@ +From 1cda354bdfd0c9ca107293b84b52f4464fdbedcc Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Tue, 1 Sep 2015 10:45:11 +0200 +Subject: [PATCH 1/3] mesa_dri2: Add missing include of config.h to define _GNU_SOURCE + +Fix build with -Wimplicit-function-declaration while secure_getenv() is +guarded by __USE_GNU. + +Reviewed-by: Aaron Plattner +Tested-by: Stefan Dirsch +--- + src/mesa_dri2.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c +index 51e8794..420ccee 100644 +--- a/src/mesa_dri2.c ++++ b/src/mesa_dri2.c +@@ -33,6 +33,9 @@ + * and José Hiram Soltren (jsoltren@nvidia.com) + */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif + + #define NEED_REPLIES + #include +-- +1.7.2.1 + diff --git a/SOURCES/0002-util.h-Make-getenv_wrapper-static-inline.patch b/SOURCES/0002-util.h-Make-getenv_wrapper-static-inline.patch new file mode 100644 index 0000000..63a0648 --- /dev/null +++ b/SOURCES/0002-util.h-Make-getenv_wrapper-static-inline.patch @@ -0,0 +1,31 @@ +From fb5362be7a6d6f89f76c5e171c339f5fa1916d38 Mon Sep 17 00:00:00 2001 +From: Aaron Plattner +Date: Mon, 7 Sep 2015 21:16:58 -0700 +Subject: [PATCH 2/3] util.h: Make getenv_wrapper() static inline +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Otherwise, GCC generates a "‘getenv_wrapper’ defined but not used" warning. + +Signed-off-by: Aaron Plattner +--- + src/util.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/util.h b/src/util.h +index 1452c06..39227ea 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -28,7 +28,7 @@ + #include + #include + +-static char * getenv_wrapper(const char *name) ++static inline char * getenv_wrapper(const char *name) + { + if (getuid() == geteuid() && getgid() == getegid()) { + return getenv(name); +-- +1.7.2.1 + diff --git a/SOURCES/0003-Fix-doc-error-on-displayable-surface-types.patch b/SOURCES/0003-Fix-doc-error-on-displayable-surface-types.patch new file mode 100644 index 0000000..1aac262 --- /dev/null +++ b/SOURCES/0003-Fix-doc-error-on-displayable-surface-types.patch @@ -0,0 +1,30 @@ +From a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jos=C3=A9=20Hiram=20Soltren?= +Date: Wed, 9 Sep 2015 15:05:01 -0500 +Subject: [PATCH 3/3] Fix doc error on displayable surface types + +VdpVideoSurface is not directly displayable in the current +implementation of VDPAU. VdpOutputSurface is. Make the documentation +consistent with reality. + +Signed-off-by: Aaron Plattner +--- + include/vdpau/vdpau.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/vdpau/vdpau.h b/include/vdpau/vdpau.h +index 8cc4524..0bc5b60 100644 +--- a/include/vdpau/vdpau.h ++++ b/include/vdpau/vdpau.h +@@ -1704,7 +1704,7 @@ typedef VdpStatus VdpVideoSurfacePutBitsYCbCr( + * - The Hardware that implements \ref VdpPresentationQueue + * "VdpPresentationQueue" functionality, + * +- * VdpVideoSurfaces are directly displayable using a \ref ++ * VdpOutputSurfaces are directly displayable using a \ref + * VdpPresentationQueue "VdpPresentationQueue" object. + * + * @{ +-- +1.7.2.1 + diff --git a/SPECS/libvdpau.spec b/SPECS/libvdpau.spec new file mode 100644 index 0000000..d3002b8 --- /dev/null +++ b/SPECS/libvdpau.spec @@ -0,0 +1,191 @@ +Name: libvdpau +Version: 1.1.1 +Release: 3%{?dist} +Summary: Wrapper library for the Video Decode and Presentation API +License: MIT +URL: http://freedesktop.org/wiki/Software/VDPAU +Source0: http://cgit.freedesktop.org/vdpau/libvdpau/snapshot/%{name}-%{version}.tar.bz2 +Patch0: 0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch +Patch1: 0002-util.h-Make-getenv_wrapper-static-inline.patch +Patch2: 0003-Fix-doc-error-on-displayable-surface-types.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: doxygen +BuildRequires: graphviz +BuildRequires: libtool +BuildRequires: libX11-devel +BuildRequires: libXext-devel +%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 +BuildRequires: tex(latex) +%else +BuildRequires: tetex-latex +%endif +BuildRequires: xorg-x11-proto-devel + +%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 docs +Summary: Documentation for %{name} +BuildArch: noarch +Provides: libvdpau-docs = %{version}-%{release} +Obsoletes: libvdpau-docs < 0.6-2 + +%description docs +The %{name}-docs package contains documentation for %{name}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libX11-devel +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +%build +autoreconf -vif +%configure --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} INSTALL="install -p" +find %{buildroot} -name '*.la' -delete +# Let %%doc macro create the correct location in the rpm file, creates a +# versioned docdir in <= f19 and an unversioned docdir in >= f20. +rm -fr %{buildroot}%{_docdir} +mv doc/html-out html + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS COPYING +%config(noreplace) %{_sysconfdir}/vdpau_wrapper.cfg +%{_libdir}/*.so.* +%dir %{_libdir}/vdpau +%{_libdir}/vdpau/%{name}_trace.so* + +%files docs +%doc html + +%files devel +%{_includedir}/vdpau/ +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/vdpau.pc + +%changelog +* Thu Feb 04 2016 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Oct 02 2015 Nicolas Chauvet - 1.1.1-2 +- Backport current patches +- Switch to new upstream git repository on freedesktop.org + +* Tue Sep 01 2015 Nicolas Chauvet - 1.1.1-1 +- Update to 1.1.1 + Security fix for CVE-2015-5198, CVE-2015-5199, CVE-2015-5200 + +* Thu Aug 27 2015 Benjamin Tissoires +- Resolves rhbz #1253829 - fix 3 CVEs: + - CVE-2015-5198: libvdpau incorrect check for security transition + - CVE-2015-5199: libvdpau directory traversal in dlopen + - CVE-2015-5200: libvdpau vulnerability in trace functionality + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.1-2 +- Rebuilt for GCC 5 C++11 ABI change + +* Tue Mar 17 2015 Nicolas Chauvet - 1.1-1 +- Update to 1.1 + +* Tue Mar 10 2015 Nicolas Chauvet - 1.0-1 +- Update to 1.0 + +* Fri Dec 19 2014 Nicolas Chauvet - 0.9-1 +- Update to 0.9 + +* Sun Aug 17 2014 Fedora Release Engineering - 0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jul 03 2014 Nicolas Chauvet - 0.8-1 +- Update to 0.8 + +* Sat Jun 07 2014 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Simone Caronni - 0.7-1 +- Update to 0.7; adds prime support. + +* Wed Jul 31 2013 Simone Caronni - 0.6-2 +- Enable documentation by default. +- Clean up spec file a bit; remove el5 tags. +- Let %%doc find the proper location for the documentation. + +* Mon Feb 04 2013 Nicolas Chauvet - 0.6-1 +- Update to 0.6 + +* Wed Sep 05 2012 Nicolas Chauvet - 0.5-1 +- Update to 0.5 + +* Sun Aug 19 2012 Julian Sikorski - 0.4.1-9 +- Added flash workarounds + +* Thu Jul 19 2012 Fedora Release Engineering - 0.4.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Apr 25 2012 Nicolas Chauvet - 0.4.1-7 +- Fetch current backport + +* Fri Jan 13 2012 Fedora Release Engineering - 0.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Dec 10 2010 Nicolas Chauvet - 0.4.1-3 +- Rebuilt for gcc bug 634757 + +* Sun Sep 12 2010 Nicolas Chauvet - 0.4.1-1 +- Update to 0.4.1 + +* Sat Mar 13 2010 Nicolas Chauvet - 0.4-1 +- Update to 0.4 + +* Sun Nov 22 2009 kwizart < kwizart at gmail.com > - 0.3-1 +- Update to 0.3 +- Create docs sub-package +- Allow --without docs conditional + +* Thu Sep 17 2009 kwizart < kwizart at gmail.com > - 0.2-1 +- Update to 0.2 +- Disable ExclusiveArch + +* Mon Sep 7 2009 kwizart < kwizart at gmail.com > - 0.1-0.6.20090904git +- Update to gitdate 20090904git + +* Wed Sep 2 2009 kwizart < kwizart at gmail.com > - 0.1-0.5git20090902 +- Update to gitdate 20090902 with merged patches + +* Mon Jun 15 2009 kwizart < kwizart at gmail.com > - 0.1-0.3git20090318 +- Add missing -ldl at link time + +* Sun Mar 22 2009 kwizart < kwizart at gmail.com > - 0.1-0.2git20090318 +- Backport fix thread_2 + +* Fri Mar 6 2009 kwizart < kwizart at gmail.com > - 0.1-0.1git20090318 +- Initial spec file +