Stefan Dirsch
dbabb2b1e5
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=18
165 lines
4.5 KiB
RPMSpec
165 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package libva
|
|
#
|
|
# Copyright (c) 2012 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libva
|
|
Version: 1.0.15
|
|
Release: 1
|
|
License: MIT
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
Url: http://freedesktop.org/wiki/Software/vaapi
|
|
Group: System/Libraries
|
|
Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
|
|
Source1: http://cgit.freedesktop.org/vaapi/intel-driver/snapshot/intel-driver-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: libtool libudev-devel pkg-config
|
|
BuildRequires: pkgconfig(xext) pkgconfig(xfixes)
|
|
BuildRequires: pkgconfig(gl) pkgconfig(libdrm) pkgconfig(libdrm_intel)
|
|
BuildRequires: gcc-c++ libstdc++-devel
|
|
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
|
|
|
|
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 vaapi-drivers
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
Group: System/Libraries
|
|
|
|
%description -n vaapi-drivers
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This contains the dummy and hardware drivers.
|
|
|
|
%package -n libva1
|
|
|
|
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
|
|
|
|
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 -n vaapi -c -a 0 -a 1
|
|
|
|
%build
|
|
pushd libva-%{version}
|
|
autoreconf -v --install
|
|
%configure --enable-dummy-driver \
|
|
%if 0%{?suse_version} >= 01120
|
|
--enable-dummy-backend \
|
|
%endif
|
|
--enable-glx \
|
|
--enable-egl \
|
|
--with-drivers-path=%{_libdir}/dri
|
|
make
|
|
popd
|
|
pushd intel-driver-%{version}
|
|
export PKG_CONFIG_PATH="%{_builddir}/vaapi/libva-%{version}/pkgconfig:$PKG_CONFIG_PATH"
|
|
autoreconf -v --install
|
|
%configure
|
|
popd
|
|
|
|
%install
|
|
pushd libva-%{version}
|
|
%makeinstall
|
|
popd
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
pushd intel-driver-%{version}
|
|
make CPPFLAGS="-I%{buildroot}%{_includedir}" LDFLAGS="-L%{buildroot}%{_libdir}"
|
|
%makeinstall
|
|
popd
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libva1 -p /sbin/ldconfig
|
|
|
|
%postun -n libva1 -p /sbin/ldconfig
|
|
|
|
%files -n vaapi-tools
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/vainfo
|
|
%{_bindir}/avcenc
|
|
%{_bindir}/h264encode
|
|
%{_bindir}/mpeg2vldemo
|
|
%{_bindir}/putsurface
|
|
|
|
%files -n vaapi-drivers
|
|
%defattr(-,root,root,-)
|
|
%dir %{_libdir}/dri
|
|
%{_libdir}/dri/dummy_drv_video.so
|
|
%{_libdir}/dri/i965_drv_video.so
|
|
|
|
%files -n libva1
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libva.so.*
|
|
%{_libdir}/libva-tpi.so.*
|
|
%{_libdir}/libva-x11.so.*
|
|
%{_libdir}/libva-glx.so.*
|
|
%{_libdir}/libva-egl.so.*
|
|
%if 0%{?suse_version} >= 01120
|
|
%{_libdir}/libva-dummy.so.*
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libva.so
|
|
%{_libdir}/libva-tpi.so
|
|
%{_libdir}/libva-x11.so
|
|
%{_libdir}/libva-glx.so
|
|
%{_libdir}/libva-egl.so
|
|
%if 0%{?suse_version} >= 01120
|
|
%{_libdir}/libva-dummy.so
|
|
%endif
|
|
%{_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
|