CLEAN_DIRECT_OUTPUT 1
)
-INSTALL(TARGETS ${fw_name} DESTINATION ../lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
INSTALL(
- DIRECTORY ${INC_DIR}/ DESTINATION ../include/privilegemgr
+ DIRECTORY ${INC_DIR}/ DESTINATION ${INCLUDE_INSTALL_DIR}/privilegemgr
FILES_MATCHING
PATTERN "*_private.h" EXCLUDE
PATTERN "${INC_DIR}/*.h"
ADD_CUSTOM_TARGET(privilege-string ALL DEPENDS ${mo_files})
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/target/generic/root/usr/share/locale DESTINATION ../share)
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/target/generic/root/usr/share/locale DESTINATION ${SHARE_INSTALL_PREFIX})
Release: 3
Group: System/Libraries
License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+Source1002: capi-security-privilege-manager.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(sqlite3)
%prep
%setup -q
+cp %{SOURCE1001} .
+cp %{SOURCE1002} .
%build
#%{!?build_type:%define build_type "Release"}
-echo cmake . -DPREFIX=%{_prefix} \
- -DEXEC_PREFIX=%{_exec_prefix} \
- -DLIBDIR=%{_libdir} \
- -DINCLUDEDIR=%{_includedir} \
- -DCMAKE_BUILD_TYPE=%{build_type} \
- -DVERSION=%{version} \
- -DDPL_LOG="ON"
-cmake . -DPREFIX=%{_prefix} \
+%cmake . -DPREFIX=%{_prefix} \
-DEXEC_PREFIX=%{_exec_prefix} \
-DLIBDIR=%{_libdir} \
-DINCLUDEDIR=%{_includedir} \
mkdir -p %{buildroot}/usr/share/license
cp LICENSE.APLv2 %{buildroot}/usr/share/license/privilege-checker
mkdir -p %{buildroot}%{TZ_SYS_DB}
-cp util/res%{TZ_SYS_DB}/.privilegelist.db /%{buildroot}/%{TZ_SYS_DB}/
+cp util/res/opt/dbspace/.privilegelist.db /%{buildroot}/%{TZ_SYS_DB}/
%make_install
+%post
+chsmack -a User %{TZ_SYS_DB}/.privilegelist.db
+
%files -n privilege-checker
-/usr/share/license/privilege-checker
-%{TZ_SYS_BIN}/*
+%manifest %{name}.manifest
+%{_datadir}/license/privilege-checker
+%{_bindir}/*
%{TZ_SYS_DB}/.privilegelist.db
-%manifest packaging/privilege-checker.manifest
%files -n capi-security-privilege-manager
+%manifest capi-security-privilege-manager.manifest
%{_libdir}/libcapi-security-privilege-manager.so*
-/usr/share/locale/*
-%manifest packaging/capi-security-privilege-manager.manifest
+%{_datadir}/locale/*
%files -n capi-security-privilege-manager-devel
%{_includedir}/privilegemgr/*.h