packaging: Move rstsmack to separate package 03/270203/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063203 accepted/tizen/7.0/unified/hotfix/20221116.105718 accepted/tizen/unified/20220131.155919 submit/tizen/20220126.105940 tizen_7.0_m2_release
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 26 Jan 2022 09:34:24 +0000 (10:34 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 26 Jan 2022 09:37:25 +0000 (10:37 +0100)
This will allow for rstsmack to be installed even if factory-reset isn't.

Change-Id: I21663e665011d1a54a226862726878329ce2998d

packaging/factory-reset.spec

index 8b2306ad9447f3e1e7da8d7f3919f1d0faa77645..8853ddf3db02786529df747460b5d285449f1b90 100644 (file)
@@ -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