File xorg-x11-driver-video.spec of Package xorg-x11-driver-video

#
# spec file for package xorg-x11-driver-video
#
# 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/
#


#
%define broken_kms_blacklist 0

Name:           xorg-x11-driver-video
Version:        7.6_1
Release:        0
Summary:        Compatibility metapackage for X.Org video drivers
License:        MIT
Group:          System/X11/Servers/XF86_4
Url:            http://xorg.freedesktop.org/
Source0:        README.meta
%if %broken_kms_blacklist
Source101:      kms-blacklist.tar.bz2
%endif
Source102:      xorg-confd-snippets.tar.bz2
# For directory ownership
BuildRequires:  xorg-x11-server
Requires:       xorg-x11-server
Supplements:    xorg-x11-server
## Requires of packages that we split away from xorg-x11-driver-video
# Only available on x86/x64 platforms
Recommends:     intel-gpu-tools
Requires:       xf86-video-ast
Requires:       xf86-video-ati
Requires:       xf86-video-chips
Requires:       xf86-video-cirrus
Requires:       xf86-video-dummy
Requires:       xf86-video-fbdev
Requires:       xf86-video-glint
Requires:       xf86-video-i128
Requires:       xf86-video-mach64
Requires:       xf86-video-newport
Requires:       xf86-video-nv
Requires:       xf86-video-r128
Requires:       xf86-video-siliconmotion
Requires:       xf86-video-tdfx
Requires:       xf86-video-tga
Requires:       xf86-video-v4l
Requires:       xf86-video-vesa
Requires:       xf86-video-vmware
Requires:       xf86-video-voodoo
# Geode LX/GX is x86 only; we can't use "%%ifarch %%ix86" since we use a noarch build
Recommends:     xf86-video-geode
# This driver might need recent spice libraries, so don't use a Requires
Recommends:     xf86-video-qxl
## End Requires of packages that we split away from xorg-x11-driver-video
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package is a compatibility metapackage. It used to contain the
X.Org video drivers.

%prep
%setup -c -T
cp %{SOURCE0} .

%build

%install
%if %broken_kms_blacklist
tar xf $RPM_SOURCE_DIR/kms-blacklist.tar.bz2 -C $RPM_BUILD_ROOT
%endif
tar xf $RPM_SOURCE_DIR/xorg-confd-snippets.tar.bz2 -C $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.meta
%if %broken_kms_blacklist
/sbin/kms_loader.sh
%config %{_sysconfdir}/X11/kms-blacklist.local
%{_sysconfdir}/X11/kms-blacklist.nouveau
%{_sysconfdir}/X11/kms-blacklist.radeon
%{_sysconfdir}/modprobe.d/99-kms.conf
%endif
%config %{_sysconfdir}/X11/xorg.conf.d/50-device.conf
%config %{_sysconfdir}/X11/xorg.conf.d/50-monitor.conf
%config %{_sysconfdir}/X11/xorg.conf.d/50-screen.conf

%changelog
openSUSE Build Service is sponsored by