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