libvdpau/libvdpau.spec
OBS User autobuild e9d833d144 Accepting request 38549 from home:hgraeber:branches:openSUSE:Factory
Copy from home:hgraeber:branches:openSUSE:Factory/libvdpau based on submit request 38549 from user hgraeber

OBS-URL: https://build.opensuse.org/request/show/38549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvdpau?expand=0&rev=2
2010-04-22 23:38:10 +00:00

114 lines
3.8 KiB
RPMSpec

#
# spec file for package libvdpau (Version 0.4)
#
# Copyright (c) 2010 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/
#
Name: libvdpau
Version: 0.4
Release: 2
License: MIT License (or similar)
Summary: VDPAU wrapper and trace libraries
Url: http://people.freedesktop.org/~aplattner
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: gcc-c++ pkgconfig xorg-x11-devel
BuildRequires: doxygen graphviz texlive
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package -n libvdpau1
License: MIT License (or similar)
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.
%package -n libvdpau-devel
License: MIT License (or similar)
Summary: VDPAU wrapper development files
Group: Development/Libraries/X11
Requires: libvdpau1 = %{version}
%description -n libvdpau-devel
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
License: MIT License (or similar)
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
This package provides a fallback, fake VDPAU implementation for runtime, which
is used when no proper VDPAU implementation library is available (such as
libvdpau_nvidia.so)
%prep
%setup -q
%build
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
rm %{buildroot}%{_libdir}/libvdpau.la
rm %{buildroot}%{_libdir}/vdpau/libvdpau_trace.la
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}/vdpau
rm %{buildroot}%{_libdir}/vdpau/libvdpau_trace.so
%post -n libvdpau1 -p /sbin/ldconfig
%postun -n libvdpau1 -p /sbin/ldconfig
%files -n libvdpau1
%defattr(-,root,root)
%dir %{_libdir}/vdpau
%{_libdir}/libvdpau.so.*
%files -n libvdpau-devel
%defattr(-,root,root)
%doc %{_datadir}/doc/%{name}
%dir %{_libdir}/vdpau
%{_includedir}/vdpau
%{_libdir}/libvdpau.so
%{_libdir}/pkgconfig/vdpau.pc
%files -n libvdpau_trace1
%defattr(-,root,root)
%{_libdir}/vdpau/libvdpau_trace.so.*
%changelog