summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2016-08-30 16:38:05 +0900
committerSoonKyu Park <sk7.park@samsung.com>2016-08-30 16:38:05 +0900
commit1304a19179d820e9dce2ef7d73ed5c3ae5cefa8b (patch)
tree4f1420e05e81e353dae2ef32e1657128ca745acc
parent0ea229c0465bc66957f461f033be6019e7667deb (diff)
downloadrpm-1304a19179d820e9dce2ef7d73ed5c3ae5cefa8b.tar.gz
rpm-1304a19179d820e9dce2ef7d73ed5c3ae5cefa8b.tar.bz2
rpm-1304a19179d820e9dce2ef7d73ed5c3ae5cefa8b.zip
Remove msm related macros inside macros.in file Change-Id: I3ae680b13739f92624f757934fe884737c9181bf
-rw-r--r--macros.in8
-rw-r--r--packaging/rpm.spec6
2 files changed, 10 insertions, 4 deletions
diff --git a/macros.in b/macros.in
index c52ca2ae7..de9f6faa8 100644
--- a/macros.in
+++ b/macros.in
@@ -1086,10 +1086,10 @@ PreReq: python >= %minver, python < %maxver
#------------------------------------------------------------------------------
# transaction specific macros
-%__transaction_plugins msm
-%__plugindir %{_libdir}/rpm-plugins
-%__transaction_msm %{__plugindir}/msm.so
-%__transaction_msm_default_policy %{_libdir}/rpm-plugins/msm-device-sec-policy
+#%__transaction_plugins msm
+#%__plugindir %{_libdir}/rpm-plugins
+#%__transaction_msm %{__plugindir}/msm.so
+#%__transaction_msm_default_policy %{_libdir}/rpm-plugins/msm-device-sec-policy
#------------------------------------------------------------------------------
# Macros for further automated spec %setup and patch application
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index dd92b8506..5db9ef79c 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -101,6 +101,12 @@ Requires: nss
This package contains the MSM security plugin for rpm that performs
security-related functionality.
+%post security-plugin
+echo "%__transaction_plugins msm" >> /usr/lib/rpm/macros
+echo "%__plugindir %{_libdir}/rpm-plugins" >> /usr/lib/rpm/macros
+echo "%__transaction_msm %{__plugindir}/msm.so" >> /usr/lib/rpm/macros
+echo "%__transaction_msm_default_policy %{_libdir}/rpm-plugins/msm-device-sec-policy" >> /usr/lib/rpm/macros
+
%package -n python-rpm
Summary: Python Bindings for Manipulating RPM Packages
Requires: rpm = %{version}