1 %define script_dir %{_sbindir}
3 Name: security-containers
6 Source0: %{name}-%{version}.tar.gz
9 Summary: Daemon for managing containers
11 BuildRequires: libvirt-devel
12 BuildRequires: libjson-devel
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(libsystemd-journal)
17 This package provides a daemon used to manage containers - start, stop and switch
18 between them. A process from inside a container can request a switch of context
19 (display, input devices) to the other container.
22 %defattr(644,root,root,755)
23 %attr(755,root,root) %{_bindir}/security-containers-server
24 %dir /etc/security-containers
25 %dir /etc/security-containers/containers
26 %dir /etc/security-containers/libvirt-config
27 %config /etc/security-containers/daemon.conf
28 %config /etc/security-containers/containers/*.conf
29 %config %attr(400,root,root) /etc/security-containers/libvirt-config/*.xml
30 /etc/security-containers/image-skel
36 %{!?build_type:%define build_type "RELEASE"}
38 %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING"
39 CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
40 CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
43 %cmake . -DVERSION=%{version} \
44 -DCMAKE_BUILD_TYPE=%{build_type} \
45 -DSCRIPT_INSTALL_DIR=%{script_dir}
46 make -k %{?jobs:-j%jobs}
55 ## Client Package ##############################################################
57 Summary: Security Containers Client
58 Group: Development/Libraries
59 Requires: security-containers = %{version}-%{release}
60 Requires(post): /sbin/ldconfig
61 Requires(postun): /sbin/ldconfig
64 Library interface to the security-containers daemon
67 %attr(644,root,root) %{_libdir}/libsecurity-containers-client.so
70 ## Devel Package ###############################################################
72 Summary: Security Containers Client Devel
73 Group: Development/Libraries
74 Requires: security-containers = %{version}-%{release}
75 Requires: security-containers-client = %{version}-%{release}
78 Development package including the header files for the client library
81 %defattr(644,root,root,755)
82 %{_includedir}/security-containers
83 %{_libdir}/pkgconfig/*
86 ## Container Daemon Package ####################################################
87 %package container-daemon
88 Summary: Security Containers Containers Daemon
90 Requires: security-containers = %{version}-%{release}
91 BuildRequires: pkgconfig(glib-2.0)
92 BuildRequires: pkgconfig(libsystemd-journal)
94 %description container-daemon
95 Daemon running inside every container.
97 %files container-daemon
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/security-containers-container-daemon
100 /etc/dbus-1/system.d/com.samsung.container.daemon.conf
103 ## Test Package ################################################################
105 Summary: Security Containers Unit Tests
106 Group: Development/Libraries
107 Requires: security-containers = %{version}-%{release}
108 Requires: security-containers-client = %{version}-%{release}
111 BuildRequires: boost-devel
113 %description unit-tests
114 Unit tests for both: server and client.
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/security-containers-server-unit-tests
119 %attr(755,root,root) %{script_dir}/sc_all_tests.py
120 %attr(755,root,root) %{script_dir}/sc_launch_test.py
121 %{script_dir}/sc_test_parser.py
122 %{_datadir}/security-containers