From 09cd67f66165b27c4e3f0859cf15e312918023bc Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Fri, 17 Aug 2012 10:00:08 +0800 Subject: [PATCH] add packaging/manifest files --- packaging/gstreamer-vaapi.changes | 2 ++ packaging/gstreamer-vaapi.manifest | 5 +++ packaging/gstreamer-vaapi.spec | 69 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 packaging/gstreamer-vaapi.changes create mode 100644 packaging/gstreamer-vaapi.manifest create mode 100644 packaging/gstreamer-vaapi.spec diff --git a/packaging/gstreamer-vaapi.changes b/packaging/gstreamer-vaapi.changes new file mode 100644 index 0000000..d8006df --- /dev/null +++ b/packaging/gstreamer-vaapi.changes @@ -0,0 +1,2 @@ +* Thu Aug 17 2012 Halley Zhao 0.4.0.01.a10ee52 +- add packaging file and clean spec manifest file diff --git a/packaging/gstreamer-vaapi.manifest b/packaging/gstreamer-vaapi.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/gstreamer-vaapi.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/gstreamer-vaapi.spec b/packaging/gstreamer-vaapi.spec new file mode 100644 index 0000000..8b7a969 --- /dev/null +++ b/packaging/gstreamer-vaapi.spec @@ -0,0 +1,69 @@ +Name: gstreamer-vaapi +Version: 0.4.0.01.a10ee52 +Release: 0 +Summary: VA-API based plugins for GStreamer and helper libraries +Group: Multimedia/Gstreamer +License: LGPLv2+ and GPLv2+ +URL: http://gitorious.org/vaapi/gstreamer-vaapi +Source0: %{name}-%{version}.tar.bz2 +Source1001: packaging/gstreamer-vaapi.manifest +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(gstreamer-0.10) +BuildRequires: pkgconfig(gstreamer-basevideo-0.10) +BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) +## BuildRequires: pvr-bin-mdfld-devel +BuildRequires: libdrm +BuildRequires: which + +%description +Gstreamer-vaapi is a collection of VA-API based plugins for GStreamer +and helper libraries. vaapidecode is used to decode MPEG-2, MPEG-4, +H.264, VC-1, WMV3 videos to video/x-vaapi-surface surfaces, depending +on the underlying HW capabilities. vaapiconvert is used to convert from +video/x-raw-yuv pixels to video/x-vaapi-surface surfaces. vaapisink is +used to display video/x-vaapi-surface surfaces to the screen. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q -n %{name}-%{version} + +%build +cp %{SOURCE1001} . + +%autogen +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +find %{buildroot} -regex ".*\.la$" | xargs rm -f -- +find %{buildroot} -regex ".*\.a$" | xargs rm -f -- + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest gstreamer-vaapi.manifest +%defattr(-,root,root,-) +%doc AUTHORS COPYING.LIB NEWS README +%{_libdir}/*.so.* +%{_libdir}/gstreamer-0.10/*.so + +%files devel +%manifest gstreamer-vaapi.manifest +%defattr(-,root,root,-) +%doc README COPYING.LIB +%{_includedir}/gstreamer-0.10/gst/vaapi +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}*.pc -- 2.7.4