Hello community, here is the log from the commit of package tpm2-0-tss for openSUSE:Factory checked in at 2016-08-09 22:15:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tpm2-0-tss (Old) and /work/SRC/openSUSE:Factory/.tpm2-0-tss.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tpm2-0-tss" Changes: -------- --- /work/SRC/openSUSE:Factory/tpm2-0-tss/tpm2-0-tss.changes 2016-05-10 09:27:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.tpm2-0-tss.new/tpm2-0-tss.changes 2016-08-09 22:15:18.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Aug 6 19:28:27 UTC 2016 - meiss...@suse.com + +- added a systemd unit service file (FATE#315631) + +------------------------------------------------------------------- @@ -5,0 +11 @@ + (FATE#315631) @@ -11 +17 @@ - the group "System/Libraries". + the group "System/Libraries". (FATE#315631) New: ---- resourcemgr.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tpm2-0-tss.spec ++++++ --- /var/tmp/diff_new_pack.Kzeedo/_old 2016-08-09 22:15:19.000000000 +0200 +++ /var/tmp/diff_new_pack.Kzeedo/_new 2016-08-09 22:15:19.000000000 +0200 @@ -24,11 +24,13 @@ Group: Productivity/Security Url: https://github.com/01org/TPM2.0-TSS Source0: %{name}-%{version}.tar.gz +Source1: resourcemgr.service Source2: baselibs.conf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config +BuildRequires: systemd-rpm-macros Requires(pre): pwdutils BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -68,14 +70,30 @@ %install %make_install find %{buildroot} -type f -name "*.la" -delete -print +install -D -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/resourcemgr.service +ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %post -n libtss2-0 -p /sbin/ldconfig %postun -n libtss2-0 -p /sbin/ldconfig +%pre +%service_add_pre resourcemgr.service + +%post +%service_add_post resourcemgr.service + +%postun +%service_del_postun resourcemgr.service + +%preun +%service_del_preun resourcemgr.service + %files %defattr(-,root,root) %doc *.md ChangeLog LICENSE *.png %{_sbindir}/resourcemgr +/%{_unitdir}/resourcemgr.service +%{_sbindir}/rcresourcemgr %files devel %defattr(-,root,root) ++++++ resourcemgr.service ++++++ [Unit] Description=TPM 2.0 Core Services Daemon [Service] Type=forking ExecStart=/usr/sbin/resourcemgr [Install] WantedBy=multi-user.target