2 Summary: Central Key Manager and utilities
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(openssl)
12 BuildRequires: libattr-devel
13 BuildRequires: pkgconfig(libsmack)
14 BuildRequires: pkgconfig(libsystemd-daemon)
18 Central Key Manager and utilities
20 %package -n libkey-manager-client
21 Summary: Central Key Manager (client)
22 Group: Development/Libraries
23 Requires: key-manager = %{version}-%{release}
24 Requires(post): /sbin/ldconfig
25 Requires(postun): /sbin/ldconfig
27 %description -n libkey-manager-client
28 Central Key Manager package (client)
30 %package -n libkey-manager-client-devel
31 Summary: Central Key Manager (client-devel)
32 Group: Development/Libraries
33 Requires: libkey-manager-client = %{version}-%{release}
35 %description -n libkey-manager-client-devel
36 Central Key Manager package (client-devel)
38 %package -n key-manager-devel
39 Summary: Central Key Manager (Development)
40 Group: Development/Libraries
41 Requires: key-manager = %{version}-%{release}
43 %description -n key-manager-devel
44 Central Key Manager (Development)
51 %if 0%{?sec_build_binary_debug_enable}
52 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
53 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
54 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
57 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
59 %cmake . -DVERSION=%{version} \
60 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
61 -DCMAKE_VERBOSE_MAKEFILE=ON
66 mkdir -p %{buildroot}/usr/share/license
67 cp LICENSE %{buildroot}/usr/share/license/%{name}
68 cp LICENSE %{buildroot}/usr/share/license/libkey-manager-client
69 mkdir -p %{buildroot}/etc/security/
72 mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
73 mkdir -p %{buildroot}/usr/lib/systemd/system/sockets.target.wants
74 ln -s ../key-manager.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/key-manager.service
80 systemctl daemon-reload
83 systemctl start key-manager.service
88 systemctl restart key-manager.service
95 systemctl stop key-manager.service
101 systemctl daemon-reload
104 %post -n libkey-manager-client -p /sbin/ldconfig
106 %postun -n libkey-manager-client -p /sbin/ldconfig
108 %files -n key-manager
109 %manifest %{_datadir}/key-manager.manifest
110 %attr(755,root,root) /usr/bin/key-manager
111 %{_libdir}/libkey-manager-commons.so.*
112 %attr(-,root,root) /usr/lib/systemd/system/multi-user.target.wants/key-manager.service
113 %attr(-,root,root) /usr/lib/systemd/system/key-manager.service
114 %attr(-,root,root) /usr/lib/systemd/system/key-manager.target
115 %{_datadir}/license/%{name}
117 %files -n libkey-manager-client
118 %manifest %{_datadir}/libkey-manager-client.manifest
119 %defattr(-,root,root,-)
120 %{_libdir}/libkey-manager-client.so.*
121 %{_datadir}/license/libkey-manager-client
123 %files -n libkey-manager-client-devel
124 %defattr(-,root,root,-)
125 %{_libdir}/libkey-manager-client.so
126 %{_libdir}/libkey-manager-commons.so
127 /usr/include/key-manager/key-manager.h
128 %{_libdir}/pkgconfig/*.pc