c6ec3b
Name:           libva
c6ec3b
Version:        1.8.3 
c6ec3b
Release:        1%{?dist}
c6ec3b
Summary:        Libva is an implementation for Video Acceleration API
c6ec3b
c6ec3b
License:        MIT
c6ec3b
URL:            https://github.com/01org/libva/
c6ec3b
Source0:        https://github.com/01org/libva/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
c6ec3b
c6ec3b
BuildRequires: autoconf, automake, libtool
c6ec3b
BuildRequires: libX11, libX11-devel, libXext, libXext-devel
c6ec3b
BuildRequires: libXfixes, libXfixes-devel, libdrm, libdrm-devel
c6ec3b
BuildRequires: libwayland-client, libwayland-client-devel, m4
c6ec3b
BuildRequires: mesa-libEGL, mesa-libEGL-devel, mesa-libGL, mesa-libGL-devel
c6ec3b
BuildRequires: mt-st, xorg-x11-proto-devel
c6ec3b
c6ec3b
%description
c6ec3b
Video Acceleration-API is an open-source library and API specification, 
c6ec3b
which provides access to graphics hardware acceleration capabilities 
c6ec3b
for video processing. It consists of a main library and driver-specific 
c6ec3b
acceleration backends for each supported hardware vendor.
c6ec3b
c6ec3b
%package       devel
c6ec3b
Summary:       Development files for %{name}
c6ec3b
Requires:      %{name}%{_isa} = %{version}-%{release}
c6ec3b
Requires:      pkgconfig
c6ec3b
c6ec3b
%description   devel
c6ec3b
The %{name}-devel package contains libraries and header files for
c6ec3b
developing applications that use %{name}.
c6ec3b
c6ec3b
c6ec3b
%prep
c6ec3b
%setup -q
c6ec3b
c6ec3b
%build
c6ec3b
./autogen.sh --disable-static 
c6ec3b
%configure --disable-static
c6ec3b
c6ec3b
# remove rpath from libtool
c6ec3b
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
c6ec3b
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
c6ec3b
c6ec3b
%make_build
c6ec3b
c6ec3b
c6ec3b
%install
c6ec3b
rm -rf $RPM_BUILD_ROOT
c6ec3b
%make_install
c6ec3b
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
c6ec3b
c6ec3b
c6ec3b
%post -p /sbin/ldconfig
c6ec3b
c6ec3b
%postun -p /sbin/ldconfig
c6ec3b
c6ec3b
c6ec3b
%files
c6ec3b
%doc NEWS
c6ec3b
%license COPYING
c6ec3b
%ghost %{_sysconfdir}/libva.conf
c6ec3b
%{_libdir}/libva*.so.*
c6ec3b
c6ec3b
%files devel
c6ec3b
%{_includedir}/va
c6ec3b
%{_libdir}/libva*.so
c6ec3b
%{_libdir}/pkgconfig/libva*.pc
c6ec3b
c6ec3b
%changelog
c6ec3b
* Mon Sep 11 2017 Josef Rikdy <jridky@redhat.com> - 1.8.3-1
c6ec3b
- Initial commit