From ce51fb71bfbd589c620c1ea80f97b734221b0f35 Mon Sep 17 00:00:00 2001 From: "Zhao, Halley" Date: Mon, 17 Feb 2014 03:06:16 +0800 Subject: [PATCH] packaging: Initial packaging on 1.2.1 for Tizen Change-Id: I7a6e8abf7f22fa69aae047940e9b5ed46ac64626 --- packaging/baselibs.conf | 5 ++ packaging/libva.changes | 28 ++++++++ packaging/libva.spec | 167 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+) create mode 100644 packaging/baselibs.conf create mode 100644 packaging/libva.changes create mode 100644 packaging/libva.spec diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf new file mode 100644 index 0000000..42e7e4b --- /dev/null +++ b/packaging/baselibs.conf @@ -0,0 +1,5 @@ +libva +libva-devel + requires -libva- + requires "libva- = " + diff --git a/packaging/libva.changes b/packaging/libva.changes new file mode 100644 index 0000000..e227fe2 --- /dev/null +++ b/packaging/libva.changes @@ -0,0 +1,28 @@ +* Mon Feb 10 2014 Zhao, Halley submit/tizen/20140209.204006@1e6feb0 +- test: update putsurface for wayland only build +- spec: update with %bcond_with x +- API: add support for buffer exports (TIVI-2315) +- update spec for pure wayland build +- changelog: fix build failure for mobile + +* Tue Jul 02 2013 Zhao Halley submit/tizen/20130702.084901@d0b5508 +- update spec file: use %{with mesa} for mesa-devel and libva-glx feature, fix build failure for mobile + +* Thur Jun 27 2013 Halley Zhao upstream/1.2.1@88ed1eb +- update to 1.2.1 + +* Wed Jun 19 2013 Anas Nashif accepted/tizen/20130520.100019@a7bfaf6 +- make wayland support conditional + +* Wed Mar 27 2013 Anas Nashif libva-1.1.1@450ef75 +- changelog: update to 1.1.1 + +* Mon Feb 11 2013 Anas Nashif submit/trunk/20130211.174659@8edcb1c +- /usr/lib64 -> %{_libdir} + +* Mon Feb 11 2013 Anas Nashif libva-1.0.11@9b24e83 +- Build with wayland support + +* Mon Feb 11 2013 Anas Nashif upstream/1.1.0@3899ac7 +- Update to 1.1.0 + diff --git a/packaging/libva.spec b/packaging/libva.spec new file mode 100644 index 0000000..4202081 --- /dev/null +++ b/packaging/libva.spec @@ -0,0 +1,167 @@ +%bcond_with wayland +%bcond_with mesa +%bcond_with x + +Name: libva +Version: 1.2.1 +Release: 0 +License: MIT +Summary: Video Acceleration (VA) API for Linux +Url: http://freedesktop.org/wiki/Software/vaapi +Group: Multimedia/Video +Source: %{name}-%{version}.tar.bz2 +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: xz +%if %{with mesa} +BuildRequires: mesa-devel +%else +BuildRequires: pkgconfig(glesv2) +BuildRequires: pkgconfig(egl) +%endif +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libudev) +%if %{with x} +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xv) +%endif +%if %{with wayland} +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(wayland-client) +%endif +ExclusiveArch: %ix86 x86_64 + +%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: libva = %{version} +Requires: pkgconfig(libdrm) +%if %{with x} +Requires: pkgconfig(gl) +Requires: pkgconfig(x11) +Requires: pkgconfig(xfixes) +%endif +%if %{with wayland} +Requires: pkgconfig(wayland-egl) +Requires: pkgconfig(wayland-client) +%endif + +%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. + +%package -n vaapi-tools +Summary: Video Acceleration (VA) API for Linux +Group: Multimedia/Video + +%description -n vaapi-tools +The libva library implements the Video Acceleration (VA) API for Linux. +The library loads a hardware dependendent driver. + +This is a set of tools around vaapi livrary. + +%package -n vaapi-dummy-driver +Summary: Video Acceleration (VA) API for Linux +Group: Multimedia/Video + +%description -n vaapi-dummy-driver +The libva library implements the Video Acceleration (VA) API for Linux. +The library loads a hardware dependendent driver. + +This contains the dummy driver. + +%prep +%setup -q + +%build +# --enable-x11 set to no explicitly, otherwise it will mislead libva build when other package brings in X11 lib +%autogen +%configure --enable-dummy-driver \ + --enable-dummy-backend \ +%if %{with mesa} && %{with x} + --enable-glx \ +%endif + --enable-egl \ +%if %{with wayland} + --enable-wayland \ +%endif +%if !%{with x} + --enable-x11=no \ +%endif + --with-drivers-path=%{_libdir}/dri +make %{?_smp_mflags} + +%install +%make_install +grep -r include %{buildroot}%{_includedir} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files -n vaapi-tools +%defattr(-,root,root,-) +%{_bindir}/vainfo +%{_bindir}/avcenc +%{_bindir}/h264encode +%{_bindir}/mpeg2vldemo +%{_bindir}/mpeg2vaenc +%if %{with x} +%{_bindir}/putsurface +%endif +%{_bindir}/loadjpeg +%if %{with wayland} +%{_bindir}/putsurface_wayland +%endif + +%files -n vaapi-dummy-driver +%defattr(-,root,root,-) +%dir %{_libdir}/dri +%{_libdir}/dri/dummy_drv_video.so + +%files +%defattr(-, root, root) +%license COPYING +%{_libdir}/libva.so.* +%{_libdir}/libva-tpi.so.* +%if %{with x} +%{_libdir}/libva-x11.so.* +%endif +%if %{with mesa} && %{with x} + %{_libdir}/libva-glx.so.* +%endif +%{_libdir}/libva-egl.so.* +%if %{with wayland} +%{_libdir}/libva-wayland.so.* +%endif +%{_libdir}/libva-drm.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libva.so +%{_libdir}/libva-tpi.so +%if %{with x} +%{_libdir}/libva-x11.so +%endif +%if %{with mesa} && %{with x} + %{_libdir}/libva-glx.so +%endif +%{_libdir}/libva-egl.so +%if %{with wayland} +%{_libdir}/libva-wayland.so +%endif +%{_libdir}/libva-drm.so +%{_includedir}/va +%{_libdir}/pkgconfig/libva*.pc + +%changelog -- 2.7.4