packaging: Initial packaging on 1.2.1 for Tizen
authorZhao, Halley <halley.zhao@intel.com>
Sun, 16 Feb 2014 19:06:16 +0000 (03:06 +0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 12 Nov 2014 11:40:33 +0000 (12:40 +0100)
Change-Id: I7a6e8abf7f22fa69aae047940e9b5ed46ac64626

packaging/baselibs.conf [new file with mode: 0644]
packaging/libva.changes [new file with mode: 0644]
packaging/libva.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..42e7e4b
--- /dev/null
@@ -0,0 +1,5 @@
+libva
+libva-devel
+ requires -libva-<targettype>
+ requires "libva-<targettype> = <version>"
diff --git a/packaging/libva.changes b/packaging/libva.changes
new file mode 100644 (file)
index 0000000..e227fe2
--- /dev/null
@@ -0,0 +1,28 @@
+* Mon Feb 10 2014 Zhao, Halley <halley.zhao@intel.com> 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 <halley.zhao@intel.com> 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 <halley.zhao@intel.com> upstream/1.2.1@88ed1eb
+- update to 1.2.1
+
+* Wed Jun 19 2013 Anas Nashif <anas.nashif@intel.com> accepted/tizen/20130520.100019@a7bfaf6
+- make wayland support conditional
+
+* Wed Mar 27 2013 Anas Nashif <anas.nashif@intel.com> libva-1.1.1@450ef75
+- changelog: update to 1.1.1
+
+* Mon Feb 11 2013 Anas Nashif <anas.nashif@intel.com> submit/trunk/20130211.174659@8edcb1c
+- /usr/lib64 -> %{_libdir}
+
+* Mon Feb 11 2013 Anas Nashif <anas.nashif@intel.com> libva-1.0.11@9b24e83
+- Build with wayland support
+
+* Mon Feb 11 2013 Anas Nashif <anas.nashif@intel.com> upstream/1.1.0@3899ac7
+- Update to 1.1.0
+
diff --git a/packaging/libva.spec b/packaging/libva.spec
new file mode 100644 (file)
index 0000000..4202081
--- /dev/null
@@ -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