3 %bcond_without glamor # glamor, new GL-based acceleration
5 %define libdrm_ver 2.4.89
6 Summary: X.org video driver for AMD Radeon GPUs
7 Summary(pl.UTF-8): Sterowniki obrazu X.org do układów graficznych AMD Radeon
8 Name: xorg-driver-video-amdgpu
12 Group: X11/Applications
13 Source0: https://xorg.freedesktop.org/releases/individual/driver/xf86-video-amdgpu-%{version}.tar.xz
14 # Source0-md5: 8a58421b3215769f0bfce855301f7964
15 URL: https://xorg.freedesktop.org/
16 BuildRequires: Mesa-libgbm-devel
17 BuildRequires: OpenGL-devel
18 BuildRequires: autoconf >= 2.60
19 BuildRequires: automake
20 BuildRequires: libdrm-devel >= %{libdrm_ver}
21 BuildRequires: libtool
22 BuildRequires: pkgconfig >= 1:0.19
23 BuildRequires: rpmbuild(macros) >= 1.389
24 BuildRequires: tar >= 1:1.22
25 BuildRequires: udev-devel
26 BuildRequires: xorg-proto-fontsproto-devel
27 BuildRequires: xorg-proto-randrproto-devel
28 BuildRequires: xorg-proto-renderproto-devel
29 BuildRequires: xorg-proto-videoproto-devel
30 BuildRequires: xorg-proto-xextproto-devel >= 7.0.99.1
31 BuildRequires: xorg-proto-xf86driproto-devel
32 BuildRequires: xorg-proto-xproto-devel
33 BuildRequires: xorg-util-util-macros >= 1.8
34 BuildRequires: xorg-xserver-server-devel >= 1.13
35 %{?with_glamor:BuildRequires: xorg-xserver-server-devel >= 1.16.0}
37 %{?requires_xorg_xserver_videodrv}
38 Requires: libdrm >= %{libdrm_ver}
39 Requires: xorg-xserver-libdri >= 1.13
40 Requires: xorg-xserver-libglx >= 1.13
41 Requires: xorg-xserver-server >= 1.13
42 %{?with_glamor:Requires: xorg-xserver-server >= 1.16.0}
43 Provides: xorg-driver-video
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 amdgpu is an Xorg video driver for AMD RADEON-based video cards with
48 the following features:
49 - support for 8-, 15-, 16-, 24- and 32-bit pixel depth,
50 - RandR support up to version 1.4,
53 This driver supports SI and newer families' video cards.
55 %description -l pl.UTF-8
56 amdgpu to sterownik obrazu Xorg dla kart graficznych opartych na
57 układach AMD RADEON. Ma następujące możliwości:
58 - obsługa 8, 15, 16, 24, 30-bitowej głębi kolorów,
59 - obsługa RandR do wersji 1.4,
62 Obsługuje karty graficzne z rodziny SI i nowszych.
65 %setup -q -n xf86-video-amdgpu-%{version}
74 %{!?with_glamor:--disable-glamor}
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
84 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/*/*.la
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc COPYING ChangeLog README.md
92 %attr(755,root,root) %{_libdir}/xorg/modules/drivers/amdgpu_drv.so
93 %{_datadir}/X11/xorg.conf.d/10-amdgpu.conf
94 %{_mandir}/man4/amdgpu.4*