2010-04-22 13:01:14 +02:00
|
|
|
#
|
2011-08-29 16:43:39 +02:00
|
|
|
# spec file for package libvdpau
|
2010-04-22 13:01:14 +02:00
|
|
|
#
|
2021-01-14 20:31:19 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-04-22 13:01:14 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-29 15:46:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-22 13:01:14 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-07-31 14:33:26 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2021-01-14 20:31:19 +01:00
|
|
|
%define _distconfdir %{_prefix}%{_sysconfdir}
|
2020-07-31 14:33:26 +02:00
|
|
|
%endif
|
2010-04-22 13:01:14 +02:00
|
|
|
Name: libvdpau
|
2020-04-11 22:46:36 +02:00
|
|
|
Version: 1.4
|
2012-06-26 17:46:22 +02:00
|
|
|
Release: 0
|
2010-04-23 01:38:10 +02:00
|
|
|
Summary: VDPAU wrapper and trace libraries
|
2012-06-26 17:46:22 +02:00
|
|
|
License: MIT
|
2019-01-05 14:55:33 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-01-14 20:31:19 +01:00
|
|
|
URL: https://www.freedesktop.org/wiki/Software/VDPAU/
|
2019-08-29 16:01:27 +02:00
|
|
|
Source: https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
2020-04-11 22:46:36 +02:00
|
|
|
Source1: https://gitlab.freedesktop.org/vdpau/vdpauinfo/-/archive/vdpauinfo-1.3/vdpauinfo-1.3.tar.bz2
|
2010-04-25 18:51:19 +02:00
|
|
|
Source2: README
|
2010-04-22 13:01:14 +02:00
|
|
|
Source99: baselibs.conf
|
2010-06-21 19:28:07 +02:00
|
|
|
Source100: %{name}-rpmlintrc
|
2020-07-31 14:33:26 +02:00
|
|
|
Patch0: n_UsrEtc.patch
|
2021-01-14 20:31:19 +01:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: https://gitlab.freedesktop.org/vdpau/libvdpau/-/commit/c5a8e7c6c8b4b36a0e4c9a4369404519262a3256.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch2: https://gitlab.freedesktop.org/vdpau/libvdpau/-/commit/e82dc4bdbb0db3ffa8c78275902738eb63aa5ca8.patch
|
2020-04-11 22:46:36 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-06-26 17:46:22 +02:00
|
|
|
BuildRequires: doxygen
|
2014-12-29 00:34:14 +01:00
|
|
|
BuildRequires: fdupes
|
2012-06-26 17:46:22 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-08-29 15:46:32 +02:00
|
|
|
BuildRequires: meson
|
2012-06-26 17:46:22 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-09-02 15:07:04 +02:00
|
|
|
BuildRequires: pkgconfig(dri2proto)
|
2012-06-26 17:46:22 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the libvdpau wrapper library and the libvdpau_trace
|
|
|
|
debugging library, along with the header files needed to build VDPAU
|
|
|
|
applications. To actually use a VDPAU device, you need a vendor-specific
|
|
|
|
implementation library. Currently, this is always libvdpau_nvidia. You can
|
|
|
|
override the driver name by setting the VDPAU_DRIVER environment variable.
|
|
|
|
|
2010-04-23 01:38:10 +02:00
|
|
|
%package -n libvdpau1
|
|
|
|
Summary: VDPAU wrapper library
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: libvdpau = %{version}-%{release}
|
|
|
|
Obsoletes: libvdpau < %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libvdpau1
|
|
|
|
This package contains the libvdpau wrapper library and the libvdpau_trace
|
|
|
|
debugging library, along with the header files needed to build VDPAU
|
|
|
|
applications. To actually use a VDPAU device, you need a vendor-specific
|
|
|
|
implementation library. Currently, this is always libvdpau_nvidia. You can
|
|
|
|
override the driver name by setting the VDPAU_DRIVER environment variable.
|
|
|
|
|
2010-04-22 13:01:14 +02:00
|
|
|
%package -n libvdpau-devel
|
2010-04-23 01:38:10 +02:00
|
|
|
Summary: VDPAU wrapper development files
|
2010-04-22 13:01:14 +02:00
|
|
|
Group: Development/Libraries/X11
|
2010-04-23 01:38:10 +02:00
|
|
|
Requires: libvdpau1 = %{version}
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%description -n libvdpau-devel
|
2010-04-23 01:38:10 +02:00
|
|
|
Note that this package only contains the VDPAU headers that are required to
|
|
|
|
build applications. At runtime, the shared libraries are needed too and may
|
|
|
|
be installed using the proprietary nVidia driver packages.
|
|
|
|
|
|
|
|
%package -n libvdpau_trace1
|
|
|
|
Summary: VDPAU trace library
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Requires: libvdpau1 = %{version}
|
|
|
|
Provides: libvdpau_trace = %{version}-%{release}
|
|
|
|
Obsoletes: libvdpau_trace < %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libvdpau_trace1
|
2010-04-25 18:51:19 +02:00
|
|
|
This package provides the library for tracing VDPAU function calls.
|
|
|
|
Its usage is documented in the README.
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%prep
|
2010-04-24 11:39:01 +02:00
|
|
|
%setup -q -b1
|
2021-01-14 20:31:19 +01:00
|
|
|
%autopatch -p1
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-29 15:46:32 +02:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%install
|
2019-08-29 15:46:32 +02:00
|
|
|
%meson_install
|
2012-09-13 07:02:01 +02:00
|
|
|
|
2018-12-12 16:21:33 +01:00
|
|
|
/sbin/ldconfig -n %{buildroot}/%{_libdir}/vdpau
|
2010-04-23 01:38:10 +02:00
|
|
|
rm %{buildroot}%{_libdir}/vdpau/libvdpau_trace.so
|
2012-09-13 07:02:01 +02:00
|
|
|
|
2010-04-24 11:39:01 +02:00
|
|
|
pushd ../vdpauinfo-*
|
2020-04-11 22:46:36 +02:00
|
|
|
autoreconf -fi
|
2010-04-24 11:39:01 +02:00
|
|
|
%configure \
|
2018-12-12 16:21:33 +01:00
|
|
|
VDPAU_CFLAGS=-I%{buildroot}%{_includedir} \
|
|
|
|
VDPAU_LIBS="-L%{buildroot}/%{_libdir} -lvdpau -lX11"
|
2012-09-13 07:02:01 +02:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2019-01-05 14:55:33 +01:00
|
|
|
%make_install
|
2010-04-24 11:39:01 +02:00
|
|
|
popd
|
2012-09-13 07:02:01 +02:00
|
|
|
|
2019-01-05 14:55:33 +01:00
|
|
|
cp %{_sourcedir}/README .
|
2010-04-22 13:01:14 +02:00
|
|
|
|
2010-04-23 01:38:10 +02:00
|
|
|
%post -n libvdpau1 -p /sbin/ldconfig
|
|
|
|
%postun -n libvdpau1 -p /sbin/ldconfig
|
2010-04-22 13:01:14 +02:00
|
|
|
|
2010-04-23 01:38:10 +02:00
|
|
|
%files -n libvdpau1
|
2010-04-22 13:01:14 +02:00
|
|
|
%dir %{_libdir}/vdpau
|
2020-07-31 14:33:26 +02:00
|
|
|
%dir %{_distconfdir}
|
2018-12-12 16:21:33 +01:00
|
|
|
%{_bindir}/vdpauinfo
|
2010-04-22 13:01:14 +02:00
|
|
|
%{_libdir}/libvdpau.so.*
|
2020-07-31 14:33:26 +02:00
|
|
|
%{_distconfdir}/vdpau_wrapper.cfg
|
2010-04-22 13:01:14 +02:00
|
|
|
|
|
|
|
%files -n libvdpau-devel
|
|
|
|
%dir %{_libdir}/vdpau
|
|
|
|
%{_includedir}/vdpau
|
|
|
|
%{_libdir}/libvdpau.so
|
|
|
|
%{_libdir}/pkgconfig/vdpau.pc
|
|
|
|
|
2010-04-23 01:38:10 +02:00
|
|
|
%files -n libvdpau_trace1
|
2010-04-25 18:51:19 +02:00
|
|
|
%doc README
|
2010-04-23 01:38:10 +02:00
|
|
|
%{_libdir}/vdpau/libvdpau_trace.so.*
|
|
|
|
|
2010-04-22 13:01:14 +02:00
|
|
|
%changelog
|