From 71d29b3adf04b1f6807cf76192582dd42ad6ac8c Mon Sep 17 00:00:00 2001 From: Christopher Atherton Date: Sep 16 2016 18:06:22 +0000 Subject: Initial import (#1372938). --- diff --git a/.gitignore b/.gitignore index e69de29..b2af61c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/xf86-video-amdgpu-1.1.1.tar.bz2 diff --git a/sources b/sources index e69de29..876036b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8b2e2852299b330da709d0526b2b8134 xf86-video-amdgpu-1.1.1.tar.bz2 diff --git a/xorg-x11-drv-amdgpu.spec b/xorg-x11-drv-amdgpu.spec new file mode 100644 index 0000000..9478492 --- /dev/null +++ b/xorg-x11-drv-amdgpu.spec @@ -0,0 +1,92 @@ +%global tarball xf86-video-amdgpu +%global moduledir %(pkg-config xorg-server --variable=moduledir ) +%global driverdir %{moduledir}/drivers + +# Xorg cannot load hardened build +%undefine _hardened_build + +Name: xorg-x11-drv-amdgpu +Version: 1.1.1 +Release: 1%{?dist} + +Summary: AMD GPU video driver +Group: User Interface/X Hardware Support +License: MIT + +URL: http://www.x.org +Source: https://www.x.org/archive/individual/driver/%{tarball}-%{version}.tar.bz2 + +ExcludeArch: s390 s390x + +BuildRequires: python +BuildRequires: xorg-x11-server-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libgbm-devel +BuildRequires: libdrm-devel +BuildRequires: kernel-headers +BuildRequires: automake autoconf libtool pkgconfig +BuildRequires: xorg-x11-util-macros +BuildRequires: libudev-devel +BuildRequires: xorg-x11-glamor-devel + +Requires: Xorg %(xserver-sdk-abi-requires ansic) +Requires: Xorg %(xserver-sdk-abi-requires videodrv) +Requires: libdrm >= 2.4.63 + +%description +X.Org X11 AMDGPU driver + +%prep +%autosetup -n %{tarball}-%{version} + +%build +autoreconf -fiv +%configure --disable-static --enable-glamor +%make_build + +%install +%make_install +find %{buildroot} -name '*.la' -exec rm -f {} ';' +install -d %{buildroot}%{_datadir}/X11/xorg.conf.d +cat > %{buildroot}%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf << EOF +Section "Device" + Identifier "AMDgpu" + Driver "amdgpu" +EndSection +EOF + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%{driverdir}/amdgpu_drv.so +%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf +%{_mandir}/man4/amdgpu.4* + +%changelog +* Thu Sep 15 2016 Christopher Atherton 1.1.1-1 +* Update to latest release + +* Sun Sep 04 2016 Christopher Atherton 1.1.0-6 +- Add BuildRequires on mesa-libgbm-devel + +* Sun Sep 04 2016 Christopher Atherton 1.1.0-5 +- Disable hardened build + +* Sun Sep 04 2016 Christopher Atherton 1.1.0-4 +- Use buildroot macro not RPM_BUILD_ROOT variable +- Replace /usr/share with _datadir +- Enable hardened build + +* Sat Sep 03 2016 Christopher Atherton 1.1.0-3 +- Require libdrm equal to or later than 2.4.63 + +* Sat Sep 03 2016 Christopher Atherton 1.1.0-2 +- Fixed ExcludeArch typo +- Add URL for source +- Use --force with autoreconf +- Use make_build macro +- Removed explicit libdrm dependency + +* Sat Sep 03 2016 Christopher Atherton 1.1.0-1 +- Initial spec