From 05ea2970749a03c984574c35042e146d2056523a70929686cff90739e996adcc Mon Sep 17 00:00:00 2001 From: Matthias Gerstner Date: Fri, 12 May 2017 09:04:15 +0000 Subject: [PATCH] renamed the udev rule file to have a priority prefix like all other rule files OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=42 --- tpm2-0-tss.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index c7b241f..4498cf3 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -95,7 +95,8 @@ find %{buildroot} -type f -name "*.la" -delete -print install -D -m 0644 contrib/resourcemgr.service %{buildroot}/%{_unitdir}/resourcemgr.service sed -e 's#usr/local/sbin/#usr/sbin/#;' -i %{buildroot}/%{_unitdir}/resourcemgr.service ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr -install -D -m 0644 contrib/tpm-udev.rules %{buildroot}%{_udevrulesdir}/tpm-udev.rules +%define udev_rule_file 90-tpm.rules +install -D -m 0644 contrib/tpm-udev.rules %{buildroot}%{_udevrulesdir}/%{udev_rule_file} %post -n libsapi0 -p /sbin/ldconfig %postun -n libsapi0 -p /sbin/ldconfig @@ -142,7 +143,7 @@ install -D -m 0644 contrib/tpm-udev.rules %{buildroot}%{_udevrulesdir}/tpm-udev. %{_sbindir}/resourcemgr /%{_unitdir}/resourcemgr.service %{_sbindir}/rcresourcemgr -%{_udevrulesdir}/tpm-udev.rules +%{_udevrulesdir}/%{udev_rule_file} %files devel %defattr(-,root,root)