2011-03-29 18:06:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package libva
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-03-29 18:06:59 +02:00
|
|
|
# norootforbuild
|
|
|
|
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Name: libva
|
2011-08-09 16:51:14 +02:00
|
|
|
Version: 1.0.14
|
2011-02-17 17:14:30 +01:00
|
|
|
Release: 1
|
|
|
|
License: MIT
|
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Url: http://freedesktop.org/wiki/Software/vaapi
|
|
|
|
Group: System/Libraries
|
|
|
|
Source: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-07-27 18:44:32 +02:00
|
|
|
BuildRequires: libudev-devel pkg-config
|
2011-02-17 17:14:30 +01:00
|
|
|
BuildRequires: xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel
|
2011-07-27 18:44:32 +02:00
|
|
|
BuildRequires: Mesa-devel libdrm-devel
|
2011-05-31 21:52:40 +02:00
|
|
|
BuildRequires: gcc-c++ libstdc++-devel
|
2011-02-17 17:14:30 +01:00
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%description
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
%package -n vaapi-tools
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%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 libva1
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libva1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
%package devel
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux -- development files
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libva1 = %{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
autoreconf -v --install
|
|
|
|
%configure --enable-dummy-driver \
|
2011-02-17 17:47:43 +01:00
|
|
|
%if 0%{?suse_version} >= 01120
|
2011-02-17 17:14:30 +01:00
|
|
|
--enable-dummy-backend \
|
2011-02-17 17:47:43 +01:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
--enable-i965-driver \
|
|
|
|
--enable-glx \
|
|
|
|
--with-drivers-path=%{_libdir}/dri
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
|
|
rm %{buildroot}%{_bindir}/test*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -n libva1 -p /sbin/ldconfig
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
%postun -n libva1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n vaapi-tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/vainfo
|
2011-05-31 21:57:42 +02:00
|
|
|
%{_bindir}/avcenc
|
2011-02-17 17:14:30 +01:00
|
|
|
%dir %{_libdir}/dri
|
|
|
|
%{_libdir}/dri/dummy_drv_video.so
|
|
|
|
%{_libdir}/dri/i965_drv_video.so
|
|
|
|
%{_bindir}/h264encode
|
|
|
|
%{_bindir}/mpeg2vldemo
|
|
|
|
%{_bindir}/putsurface
|
|
|
|
|
|
|
|
%files -n libva1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libva.so.1
|
|
|
|
%{_libdir}/libva.so.%{version}
|
|
|
|
%{_libdir}/libva-tpi.so.1
|
|
|
|
%{_libdir}/libva-tpi.so.%{version}
|
|
|
|
%{_libdir}/libva-x11.so.1
|
|
|
|
%{_libdir}/libva-x11.so.%{version}
|
|
|
|
%{_libdir}/libva-glx.so.1
|
|
|
|
%{_libdir}/libva-glx.so.%{version}
|
|
|
|
%{_libdir}/libva-egl.so.1
|
|
|
|
%{_libdir}/libva-egl.so.%{version}
|
2011-02-17 17:47:43 +01:00
|
|
|
%if 0%{?suse_version} >= 01120
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_libdir}/libva-dummy.so.1
|
|
|
|
%{_libdir}/libva-dummy.so.%{version}
|
2011-02-17 17:47:43 +01:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libva.so
|
|
|
|
%{_libdir}/libva-tpi.so
|
|
|
|
%{_libdir}/libva-x11.so
|
|
|
|
%{_libdir}/libva-glx.so
|
|
|
|
%{_libdir}/libva-egl.so
|
2011-02-17 17:47:43 +01:00
|
|
|
%if 0%{?suse_version} >= 01120
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_libdir}/libva-dummy.so
|
2011-02-17 17:47:43 +01:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_includedir}/va
|
|
|
|
%{_libdir}/pkgconfig/libva.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-x11.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-glx.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-tpi.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-egl.pc
|
|
|
|
|
|
|
|
%changelog
|