SHA256
1
0
forked from pool/tpm2-0-tss

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
This commit is contained in:
Matthias Gerstner 2017-05-12 09:04:15 +00:00 committed by Git OBS Bridge
parent 9661aea8f5
commit 05ea297074

View File

@ -95,7 +95,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
install -D -m 0644 contrib/resourcemgr.service %{buildroot}/%{_unitdir}/resourcemgr.service install -D -m 0644 contrib/resourcemgr.service %{buildroot}/%{_unitdir}/resourcemgr.service
sed -e 's#usr/local/sbin/#usr/sbin/#;' -i %{buildroot}/%{_unitdir}/resourcemgr.service sed -e 's#usr/local/sbin/#usr/sbin/#;' -i %{buildroot}/%{_unitdir}/resourcemgr.service
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr 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 %post -n libsapi0 -p /sbin/ldconfig
%postun -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 %{_sbindir}/resourcemgr
/%{_unitdir}/resourcemgr.service /%{_unitdir}/resourcemgr.service
%{_sbindir}/rcresourcemgr %{_sbindir}/rcresourcemgr
%{_udevrulesdir}/tpm-udev.rules %{_udevrulesdir}/%{udev_rule_file}
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)