From e4a08f86186b4eb5b8a8c378c9dd3938e6f88fc4 Mon Sep 17 00:00:00 2001 From: Yunjin Lee Date: Mon, 31 Oct 2016 18:18:51 +0900 Subject: [PATCH] Fix not to do make db dir for build_type NO_DB and add so file for devel package Change-Id: I19d32b188456fb2a8d8b0016d49180aae17dd499 Signed-off-by: Yunjin Lee --- packaging/privilege-checker.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/privilege-checker.spec b/packaging/privilege-checker.spec index 15bb785..e63de40 100644 --- a/packaging/privilege-checker.spec +++ b/packaging/privilege-checker.spec @@ -113,13 +113,18 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/license cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/privilege-checker +%if "%{?build_type}" != "NO_DB" mkdir -p %{buildroot}%{_datadir}/privilege-manager +%endif %make_install %find_lang privilege %post -n security-privilege-manager -p /sbin/ldconfig %postun -n security-privilege-manager -p /sbin/ldconfig +%post -n security-privilege-manager-devel -p /sbin/ldconfig +%postun -n security-privilege-manager-devel -p /sbin/ldconfig + %files -n privilege-checker %{_datadir}/license/privilege-checker %manifest packaging/privilege-checker.manifest @@ -137,6 +142,7 @@ mkdir -p %{buildroot}%{_datadir}/privilege-manager %manifest packaging/security-privilege-manager.manifest %files -n security-privilege-manager-devel +%{_libdir}/libsecurity-privilege-manager.so* %{_includedir}/privilegemgr/*.h %{_libdir}/pkgconfig/security-privilege-manager.pc -- 2.7.4