From: Karol Lewandowski Date: Wed, 26 Jan 2022 09:34:24 +0000 (+0100) Subject: packaging: Move rstsmack to separate package X-Git-Tag: submit/tizen_6.5/20220126.105919^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fcore%2Fsystem%2Ffactory-reset.git packaging: Move rstsmack to separate package This will allow for rstsmack to be installed even if factory-reset isn't. Change-Id: I21663e665011d1a54a226862726878329ce2998d --- diff --git a/packaging/factory-reset.spec b/packaging/factory-reset.spec index 8b2306a..8853ddf 100644 --- a/packaging/factory-reset.spec +++ b/packaging/factory-reset.spec @@ -1,6 +1,6 @@ Name: factory-reset Summary: factory-reset scripts and uitls -Version: 1.0 +Version: 1.1 Release: 2 Group: Applications/Core Applications License: Apache-2.0 @@ -14,6 +14,7 @@ BuildRequires: cmake BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(libsystemd) Requires: %{name}-userdata-backup +Requires: rstsmack Requires: /usr/bin/rm Requires: /usr/bin/ls Requires: /usr/bin/ps @@ -61,6 +62,13 @@ Requires: /usr/bin/chmod %description userdata-backup userdata-backup make a backup data for user r/w data area by archieving with tar/zip. +%package -n rstsmack +Summary: Utility to restore smack attributes +Group: Application Framework/Configuration + +%description -n rstsmack +rstsmack is small utility to set Smack labels from configuration file. + %prep %setup -q @@ -95,7 +103,6 @@ install -D -m 0644 %SOURCE3 %{buildroot}%{_datadir}/dbus-1/system-services/org.t %{_bindir}/run-factory-reset.sh %{_bindir}/factoryreset-verify.sh -%attr(700,root,root) %{_bindir}/rstsmack %attr(700,root,root) %{_bindir}/factory-reset %attr(100,root,root) /opt/etc/dump.d/module.d/dump-frlog.sh @@ -103,3 +110,8 @@ install -D -m 0644 %SOURCE3 %{buildroot}%{_datadir}/dbus-1/system-services/org.t %manifest factory-reset.manifest %license LICENSE.Apache-2.0 %{_bindir}/build-backup-data.sh + +%files -n rstsmack +%manifest factory-reset.manifest +%license LICENSE.Apache-2.0 +%attr(700,root,root) %{_bindir}/rstsmack