init libva from upstream staging branch, clean spec file
authorZhao Halley <halley.zhao@intel.com>
Fri, 10 Aug 2012 07:38:35 +0000 (15:38 +0800)
committerZhao Halley <halley.zhao@intel.com>
Mon, 18 Mar 2013 02:47:45 +0000 (10:47 +0800)
packaging/libva.changes [new file with mode: 0644]
packaging/libva.manifest [new file with mode: 0644]
packaging/libva.spec [new file with mode: 0644]

diff --git a/packaging/libva.changes b/packaging/libva.changes
new file mode 100644 (file)
index 0000000..dd50c2a
--- /dev/null
@@ -0,0 +1,3 @@
+* Fri Aug 10 2012 Halley Zhao <halley.zhao@intel.com> libva-1.2.0.01.43177da
+- init libva from upstream staging branch, add clean spec/manifest file
+
diff --git a/packaging/libva.manifest b/packaging/libva.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libva.spec b/packaging/libva.spec
new file mode 100644 (file)
index 0000000..cfd949b
--- /dev/null
@@ -0,0 +1,97 @@
+%define libversion 1.3400.0
+
+Name:           libva
+Version:        1.2.0.01.43177da
+Release:        0
+License:        MIT
+Source:         %{name}-%{version}.tar.bz2
+Source1001:     packaging/libva.manifest 
+Group:          Development/Libraries
+Summary:        Video Acceleration (VA) API for Linux
+URL:            http://freedesktop.org/wiki/Software/vaapi
+
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+BuildRequires:  pkgconfig(libdrm)
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  xorg-x11-server-devel
+BuildRequires:  pkgconfig(egl)
+BuildRequires:  libtool
+BuildRequires:  which
+
+%description
+The libva library implements the Video Acceleration (VA) API for Linux.
+The library loads a hardware dependendent driver.
+
+%package devel
+Summary: Video Acceleration (VA) API for Linux -- development files
+Group:          Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+The libva library implements the Video Acceleration (VA) API for Linux.
+The library loads a hardware dependendent driver.
+
+This package provides the development environment for libva.
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+
+unset LD_AS_NEEDED
+%autogen
+make
+
+%install
+%make_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%manifest libva.manifest
+%defattr(-,root,root,-)
+%{_libdir}/libva.so.1
+%{_libdir}/libva.so.%{libversion}
+%{_libdir}/libva-tpi.so.1
+%{_libdir}/libva-tpi.so.%{libversion}
+%{_libdir}/libva-x11.so.1
+%{_libdir}/libva-x11.so.%{libversion}
+%{_libdir}/libva-egl.so.1
+%{_libdir}/libva-egl.so.%{libversion}
+%{_libdir}/libva-drm.so.1
+%{_libdir}/libva-drm.so.%{libversion}
+%{_bindir}/vainfo
+%{_bindir}/h264encode
+%{_bindir}/mpeg2vldemo
+%{_bindir}/putsurface
+%{_bindir}/loadjpeg
+%{_bindir}/avcenc
+%{_bindir}/mpeg2transcode
+
+%{_libdir}/dri/dummy_drv_video.so
+
+%files devel
+%manifest libva.manifest
+%defattr(-,root,root,-)
+%dir %{_includedir}/va
+%{_includedir}/va/*
+%{_libdir}/libva.so
+%{_libdir}/libva-tpi.so
+%{_libdir}/libva-x11.so
+%{_libdir}/libva-egl.so
+%{_libdir}/libva-drm.so
+%{_libdir}/pkgconfig/libva.pc
+%{_libdir}/pkgconfig/libva-tpi.pc
+%{_libdir}/pkgconfig/libva-x11.pc
+%{_libdir}/pkgconfig/libva-egl.pc
+%{_libdir}/pkgconfig/libva-drm.pc
+