Package init
This commit is contained in:
parent
31b97e081d
commit
a9f1651aef
@ -0,0 +1,31 @@
|
||||
From 1cda354bdfd0c9ca107293b84b52f4464fdbedcc Mon Sep 17 00:00:00 2001
|
||||
From: Rico Tzschichholz <ricotz@ubuntu.com>
|
||||
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 <aplattner@nvidia.com>
|
||||
Tested-by: Stefan Dirsch <sndirsch@suse.de>
|
||||
---
|
||||
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 <X11/Xlibint.h>
|
||||
--
|
||||
1.7.2.1
|
||||
|
||||
31
0002-util.h-Make-getenv_wrapper-static-inline.patch
Normal file
31
0002-util.h-Make-getenv_wrapper-static-inline.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From fb5362be7a6d6f89f76c5e171c339f5fa1916d38 Mon Sep 17 00:00:00 2001
|
||||
From: Aaron Plattner <aplattner@nvidia.com>
|
||||
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 <aplattner@nvidia.com>
|
||||
---
|
||||
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 <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
-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
|
||||
|
||||
30
0003-Fix-doc-error-on-displayable-surface-types.patch
Normal file
30
0003-Fix-doc-error-on-displayable-surface-types.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jos=C3=A9=20Hiram=20Soltren?= <jsoltren@nvidia.com>
|
||||
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 <aplattner@nvidia.com>
|
||||
---
|
||||
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
|
||||
|
||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# libvdpau
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
||||
# libvdpau
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
libvdpau-1.1.1.tar.bz2
Normal file
BIN
libvdpau-1.1.1.tar.bz2
Normal file
Binary file not shown.
65
libvdpau.spec
Normal file
65
libvdpau.spec
Normal file
@ -0,0 +1,65 @@
|
||||
Name: libvdpau
|
||||
Version: 1.1.1
|
||||
Release: 11
|
||||
Summary: Wrapper library for the Video Decode and Presentation API for UNIX
|
||||
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, automake, doxygen, gcc-c++, graphviz, libtool, libX11-devel, libXext-devel
|
||||
BuildRequires: tex(latex), xorg-x11-proto-devel
|
||||
Provides: %{name}-trace%{?_isa} %{name}-trace
|
||||
Obsoletes: %{name}-trace
|
||||
Supplements: %{name}-debuginfo%{?_isa}
|
||||
Provides: %{name}-docs%{?_isa} %{name}-docs
|
||||
Obsoletes: %{name}-docs
|
||||
|
||||
%description
|
||||
This module is wrapper library for the Video Decode and Presentation API for UNIX.
|
||||
|
||||
%package devel
|
||||
Summary: Header files for development
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libX11-devel, pkgconfig
|
||||
|
||||
%description devel
|
||||
This package includes header files for development.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -vif
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install INSTALL="install -p"
|
||||
%delete_la
|
||||
rm -rf $RPM_BUILD_ROOT%{_docdir}
|
||||
mv doc/html-out html
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%doc AUTHORS html
|
||||
%license COPYING
|
||||
%config(noreplace) %{_sysconfdir}/*.cfg
|
||||
%{_libdir}/*.so.*
|
||||
%dir %{_libdir}/vdpau
|
||||
%{_libdir}/vdpau/*.so*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/vdpau/*
|
||||
%{_libdir}/%{name}.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.1-11
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user