]>
Commit | Line | Data |
---|---|---|
7b16afc7 | 1 | # TODO: PLDify init script |
e6c4a6d8 JB |
2 | Summary: Small Footprint CIM Broker |
3 | Summary(pl.UTF-8): Lekki broker CIM | |
4 | Name: sblim-sfcb | |
7d30e5fe | 5 | Version: 1.4.9 |
246130e4 | 6 | Release: 3 |
e6c4a6d8 JB |
7 | License: Eclipse Public License v1.0 |
8 | Group: Libraries | |
9 | Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 | |
7d30e5fe | 10 | # Source0-md5: 28021cdabc73690a94f4f9d57254ce30 |
e6c4a6d8 | 11 | Patch0: %{name}-fix.patch |
2c246ac8 | 12 | Patch1: am.patch |
e6c4a6d8 JB |
13 | URL: http://sblim.sourceforge.net/ |
14 | BuildRequires: curl-devel >= 7.11.1 | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: openslp-devel | |
17 | BuildRequires: openssl-devel >= 0.9.7 | |
18 | BuildRequires: pam-devel | |
7d30e5fe JB |
19 | BuildRequires: rpmbuild(macros) >= 1.644 |
20 | BuildRequires: sblim-cmpi-devel | |
21 | BuildRequires: sblim-sfcCommon-devel >= 1.0.1 | |
22 | BuildRequires: unzip | |
23 | BuildRequires: zlib-devel | |
e6c4a6d8 | 24 | Requires(post): openssl-tools |
7d30e5fe | 25 | Requires: sblim-sfcCommon >= 1.0.1 |
7b16afc7 | 26 | Provides: cimserver |
e6c4a6d8 JB |
27 | Suggests: sblim-sfcb-schema |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
7d30e5fe JB |
30 | # libsfcCimXmlCodec needs trimws symbol exported from broker binary |
31 | # libsfcHttpAdapter needs fallback_ipv4 symbol exported from broker binary | |
32 | %define skip_post_check_so libsfcCimXmlCodec\.so.* libsfcHttpAdapter\.so.* | |
e6c4a6d8 JB |
33 | |
34 | %description | |
35 | sfcb is a lightweight CIM daemon (aka CIMOM) that responds to CIM | |
36 | client requests for system management data and/or performs system | |
37 | management tasks. sfcb supports most of the standard CIM XML over | |
38 | HTTP/HTTPS protocol. It is highly modular, allowing functionality to | |
39 | be easily added, removed or customized for different management | |
40 | applications. sfcb is specifically targeted for small embedded system | |
41 | that do not have the available CPU, memory or disk resources to | |
42 | support a full-blown enterprise-level CIMOM. That said, sfcb runs very | |
43 | well on a regular Linux/Unix system and supports most of the functions | |
44 | required by CIM clients to manage such the system. | |
45 | ||
46 | %description -l pl.UTF-8 | |
7b16afc7 JB |
47 | sfcb to lekki demon CIM (CIMOM), odpowiadający na zapytania klientów |
48 | CIM dotyczące zarządzania systemem i/lub wykonujący zadania związane z | |
49 | zarządzaniem systemem. sfcb obsługuje większość ze standardowego XML-a | |
50 | CIM z użyciem protokołu HTTP/HTTPS. Jest wysoce modularny, umożliwia | |
51 | łatwe dodawanie, usuwanie lub dostosowywanie funkcjonalności do | |
52 | różnych zastosowań. sfcb jest przeznaczony zwłaszcza do małych | |
53 | systemów wbudowanych, nie mających wystarczająco dużo mocy procesora, | |
54 | pamięci czy zasobów dyskowych do obsługi pełnego CIMOM. Oznacza to, że | |
55 | sfcb działa bardzo dobrze na zwykłych systemach Linux/Unix i obsługuje | |
56 | większość funkcji wymaganych przez klientów CIM do zarządzania takimi | |
57 | systemami. | |
e6c4a6d8 JB |
58 | |
59 | %prep | |
60 | %setup -q | |
61 | %patch0 -p1 | |
2c246ac8 | 62 | %patch1 -p1 |
e6c4a6d8 JB |
63 | |
64 | %build | |
2c246ac8 JR |
65 | %{__libtoolize} |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
70 | cd mofc | |
71 | %{__libtoolize} | |
72 | %{__aclocal} | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
76 | cd .. | |
e6c4a6d8 | 77 | %configure \ |
7d30e5fe | 78 | SYSTEMDDIR=%{systemdunitdir} \ |
2e099741 | 79 | --disable-debug \ |
e6c4a6d8 JB |
80 | --enable-pam \ |
81 | --enable-slp \ | |
82 | --enable-ssl \ | |
83 | --enable-uds | |
e6c4a6d8 | 84 | |
2c246ac8 | 85 | %{__make} -j1 |
e6c4a6d8 JB |
86 | |
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
d05d49c0 | 89 | install -d $RPM_BUILD_ROOT{%{systemdunitdir},%{_libdir}/cmpi} |
e6c4a6d8 JB |
90 | |
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT \ | |
93 | initdir=/etc/rc.d/init.d | |
94 | ||
95 | # libraries with no headers installed | |
7d30e5fe | 96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/libsfc{BrokerCore,CimXmlCodec,FileRepository,HttpAdapter,InternalProvider}.so |
e6c4a6d8 JB |
97 | # the same or dlopened modules |
98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/*.la | |
99 | ||
7d30e5fe JB |
100 | # packaged as %doc |
101 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/sfcb-%{version} | |
102 | ||
e6c4a6d8 JB |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post | |
107 | if [ ! -f %{_sysconfdir}/sfcb/server.pem -o ! -f %{_sysconfdir}/sfcb/client.pem ]; then | |
108 | %{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb | |
109 | fi | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS COPYING ChangeLog NEWS README | |
114 | %attr(754,root,root) /etc/rc.d/init.d/sfcb | |
115 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sfcb | |
116 | %dir %{_sysconfdir}/sfcb | |
117 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sfcb/sfcb.cfg | |
118 | %attr(755,root,root) %{_bindir}/sfcb* | |
119 | %attr(755,root,root) %{_bindir}/wbemcat | |
120 | %attr(755,root,root) %{_bindir}/xmltest | |
121 | %attr(755,root,root) %{_sbindir}/sfcbd | |
7d30e5fe | 122 | %{systemdunitdir}/sblim-sfcb.service |
d05d49c0 | 123 | %dir %{_libdir}/cmpi |
e6c4a6d8 JB |
124 | %dir %{_libdir}/sfcb |
125 | # libs | |
126 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.*.*.* | |
127 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.0 | |
128 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.*.*.* | |
129 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.0 | |
130 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.*.*.* | |
131 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.0 | |
132 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.*.*.* | |
133 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.0 | |
134 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.*.*.* | |
135 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.0 | |
e6c4a6d8 JB |
136 | # providers dlopened by libsfcBrokerCore |
137 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicAuthentication.so* | |
138 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicPAMAuthentication.so* | |
139 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCertificateAuthentication.so* | |
140 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProvider.so* | |
141 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderGz.so* | |
142 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderMem.so* | |
143 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderSf.so* | |
144 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCustomLib.so* | |
145 | %attr(755,root,root) %{_libdir}/sfcb/libsfcElementCapabilitiesProvider.so* | |
146 | %attr(755,root,root) %{_libdir}/sfcb/libsfcIndCIMXMLHandler.so* | |
147 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropProvider.so* | |
148 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropServerProvider.so* | |
149 | %attr(755,root,root) %{_libdir}/sfcb/libsfcObjectImplSwapI32toP32.so* | |
150 | %attr(755,root,root) %{_libdir}/sfcb/libsfcProfileProvider.so* | |
151 | %attr(755,root,root) %{_libdir}/sfcb/libsfcQualifierProvider.so* | |
152 | # dlopened by libcimcclient (sblib-sfcc) | |
153 | %attr(755,root,root) %{_libdir}/sfcb/libcimcClientSfcbLocal.so* | |
154 | %dir %{_datadir}/sfcb | |
155 | %attr(755,root,root) %{_datadir}/sfcb/genSslCert.sh | |
156 | %attr(755,root,root) %{_datadir}/sfcb/getSchema.sh | |
157 | %attr(755,root,root) %{_datadir}/sfcb/stageschema.sh | |
158 | %{_datadir}/sfcb/*.mof | |
159 | %{_datadir}/sfcb/default.reg | |
160 | %dir /var/lib/sfcb | |
161 | %dir /var/lib/sfcb/stage | |
162 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/default.reg | |
163 | %dir /var/lib/sfcb/stage/mofs | |
164 | %config %verify(not md5 mtime size) %dir /var/lib/sfcb/stage/mofs/indication.mof | |
165 | %dir /var/lib/sfcb/stage/mofs/root | |
166 | %dir /var/lib/sfcb/stage/mofs/root/interop | |
167 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/mofs/root/interop/*.mof | |
168 | %{_mandir}/man1/genSslCert.1* | |
169 | %{_mandir}/man1/getSchema.1* | |
170 | %{_mandir}/man1/sfcb*.1* | |
171 | %{_mandir}/man1/wbemcat.1* | |
172 | %{_mandir}/man1/xmltest.1* |