diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-11-30 14:21:54 +0900 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2024-01-18 09:31:55 +0800 |
commit | ebb5c68d636a1aff7c8aef7a9b9ce140d6ba18ad (patch) | |
tree | d0845b083dc3f76e367ca6c45f5c81451f1936c8 | |
parent | efc06baa70a73af73288e5b2fcf130297e3f93a4 (diff) | |
download | mesa-ebb5c68d636a1aff7c8aef7a9b9ce140d6ba18ad.tar.gz mesa-ebb5c68d636a1aff7c8aef7a9b9ce140d6ba18ad.tar.bz2 mesa-ebb5c68d636a1aff7c8aef7a9b9ce140d6ba18ad.zip |
Use _udevrulesdir macro
Location of udev rules file is changed from /etc/udev/rules.d to /usr/lib/udev/rules.d.
So, use macro instead of real path.
Change-Id: I5f7aada411f75206fabf86751ee8b6c2702c8b93
-rw-r--r-- | packaging/mesa.spec | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index a20f774938a..fd5230bd3f2 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -23,6 +23,7 @@ BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(libtdm) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(libsystemd) BuildRequires: meson BuildRequires: python3 BuildRequires: python3-mako @@ -85,8 +86,8 @@ mkdir -p %{buildroot}%{_libdir}/driver cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_libdir}/driver cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_libdir}/driver -mkdir -p %{buildroot}/etc/udev/rules.d -cp 99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d +mkdir -p %{buildroot}%{_udevrulesdir} +cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -100,4 +101,4 @@ cp 99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d %{_libdir}/driver/* %{_libdir}/dri/* %{_libdir}/libgbm* -/etc/udev/rules.d/99-GPU-Acceleration.rules +%{_udevrulesdir}/99-GPU-Acceleration.rules |