move 10-amdgpu.conf to /etc/X11/xorg.conf.d

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xf86-video-amdgpu?expand=0&rev=26
This commit is contained in:
Stefan Dirsch 2017-02-03 12:03:36 +00:00 committed by Git OBS Bridge
parent 2eedf10377
commit 01113c97df

View File

@ -77,6 +77,10 @@ find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf
%{__mkdir_p} %{buildroot}%{pci_ids_dir}
cp %{S:3} %{buildroot}%{pci_ids_dir}/
%else
%{__mkdir_p} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
mv %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf \
%{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
%endif
%files
@ -88,7 +92,7 @@ cp %{S:3} %{buildroot}%{pci_ids_dir}/
%if 0%{?pci_ids_dir:1}
%{pci_ids_dir}/amdgpu.ids
%else
%config %{_datadir}/X11/xorg.conf.d/10-amdgpu.conf
%config %{_sysconfdir}/X11/xorg.conf.d/10-amdgpu.conf
%endif
%changelog