Name: dpm-auth Version: 1.0.1 Release: 0 License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Summary: Tizen Device Policy Manager Authentication Policy Module Group: Security/Other BuildRequires: gcc BuildRequires: cmake BuildRequires: gettext-tools BuildRequires: pkgconfig(klay) BuildRequires: pkgconfig(dpm-pil) BuildRequires: pkgconfig(auth-fw-admin) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(capi-base-common) %description The dpm-auth package provides authentication policy module for device policy manager %files %manifest dpm-auth.manifest %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/dpm/plugins/auth %attr(755,root,root) %{_libdir}/libdpm-auth.so.%{version} %{_libdir}/libdpm-auth.so.0 %prep %setup -q %build %{!?build_type:%define build_type "RELEASE"} %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING" || %{build_type} == "CCOV" CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE" CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE" %endif %cmake . -DVERSION=%{version} \ -DCMAKE_BUILD_TYPE=%{build_type} \ -DPLUGIN_INSTALL_DIR=%{_libdir}/dpm/plugins \ -DSCRIPT_INSTALL_DIR=%{_scriptdir} \ -DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \ -DDATA_INSTALL_DIR=%{TZ_SYS_DATA}/dpm \ -DDB_INSTALL_DIR=%{TZ_SYS_DB} \ -DRUN_INSTALL_DIR=%{TZ_SYS_RUN} \ -DAPP_INSTALL_PREFIX="%{TZ_SYS_RO_APP}" \ -DAPP_SHARE_PACKAGES_DIR="%{TZ_SYS_RO_PACKAGES}" \ make %{?jobs:-j%jobs} %install %make_install %clean rm -rf %{buildroot} %post %preun %postun ## Devel Package ############################################################## %package -n libdpm-auth-devel Summary: Libraries and header files for device policy client development Group: Development/Libraries Requires: device-policy-manager = %{version}-%{release} %description -n libdpm-auth-devel The libdpm-auth-devel package includes the libraries and header files necessary for developing the DPM client program. %files -n libdpm-auth-devel %manifest dpm-auth.manifest %defattr(644,root,root,755) %{_libdir}/libdpm-auth.so %{_libdir}/pkgconfig/dpm-auth.pc %{_includedir}/dpm