]>
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 \ | |
2e099741 | 58 | --disable-debug \ |
e6c4a6d8 JB |
59 | --enable-ipv6 \ |
60 | --enable-pam \ | |
61 | --enable-slp \ | |
62 | --enable-ssl \ | |
63 | --enable-uds | |
64 | # --enable-jdbc is broken (sfcSqlparse undefined) | |
65 | ||
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT \ | |
73 | initdir=/etc/rc.d/init.d | |
74 | ||
75 | # libraries with no headers installed | |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/libsfc{BrokerCore,CimXmlCodec,FileRepository,HttpAdapter,InternalProvider,Util}.so | |
77 | # the same or dlopened modules | |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/*.la | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post | |
84 | if [ ! -f %{_sysconfdir}/sfcb/server.pem -o ! -f %{_sysconfdir}/sfcb/client.pem ]; then | |
85 | %{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb | |
86 | fi | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS COPYING ChangeLog NEWS README | |
91 | %attr(754,root,root) /etc/rc.d/init.d/sfcb | |
92 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sfcb | |
93 | %dir %{_sysconfdir}/sfcb | |
94 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sfcb/sfcb.cfg | |
95 | %attr(755,root,root) %{_bindir}/sfcb* | |
96 | %attr(755,root,root) %{_bindir}/wbemcat | |
97 | %attr(755,root,root) %{_bindir}/xmltest | |
98 | %attr(755,root,root) %{_sbindir}/sfcbd | |
99 | %dir %{_libdir}/sfcb | |
100 | # libs | |
101 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.*.*.* | |
102 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.0 | |
103 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.*.*.* | |
104 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.0 | |
105 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.*.*.* | |
106 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.0 | |
107 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.*.*.* | |
108 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.0 | |
109 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.*.*.* | |
110 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.0 | |
111 | %attr(755,root,root) %{_libdir}/sfcb/libsfcUtil.so.*.*.* | |
112 | %attr(755,root,root) %{_libdir}/sfcb/libsfcUtil.so.0 | |
113 | # providers dlopened by libsfcBrokerCore | |
114 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicAuthentication.so* | |
115 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicPAMAuthentication.so* | |
116 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCertificateAuthentication.so* | |
117 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProvider.so* | |
118 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderGz.so* | |
119 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderMem.so* | |
120 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderSf.so* | |
121 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCustomLib.so* | |
122 | %attr(755,root,root) %{_libdir}/sfcb/libsfcElementCapabilitiesProvider.so* | |
123 | %attr(755,root,root) %{_libdir}/sfcb/libsfcIndCIMXMLHandler.so* | |
124 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropProvider.so* | |
125 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropServerProvider.so* | |
126 | %attr(755,root,root) %{_libdir}/sfcb/libsfcObjectImplSwapI32toP32.so* | |
127 | %attr(755,root,root) %{_libdir}/sfcb/libsfcProfileProvider.so* | |
128 | %attr(755,root,root) %{_libdir}/sfcb/libsfcQualifierProvider.so* | |
129 | # dlopened by libcimcclient (sblib-sfcc) | |
130 | %attr(755,root,root) %{_libdir}/sfcb/libcimcClientSfcbLocal.so* | |
131 | %dir %{_datadir}/sfcb | |
132 | %attr(755,root,root) %{_datadir}/sfcb/genSslCert.sh | |
133 | %attr(755,root,root) %{_datadir}/sfcb/getSchema.sh | |
134 | %attr(755,root,root) %{_datadir}/sfcb/stageschema.sh | |
135 | %{_datadir}/sfcb/*.mof | |
136 | %{_datadir}/sfcb/default.reg | |
137 | %dir /var/lib/sfcb | |
138 | %dir /var/lib/sfcb/stage | |
139 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/default.reg | |
140 | %dir /var/lib/sfcb/stage/mofs | |
141 | %config %verify(not md5 mtime size) %dir /var/lib/sfcb/stage/mofs/indication.mof | |
142 | %dir /var/lib/sfcb/stage/mofs/root | |
143 | %dir /var/lib/sfcb/stage/mofs/root/interop | |
144 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/mofs/root/interop/*.mof | |
145 | %{_mandir}/man1/genSslCert.1* | |
146 | %{_mandir}/man1/getSchema.1* | |
147 | %{_mandir}/man1/sfcb*.1* | |
148 | %{_mandir}/man1/wbemcat.1* | |
149 | %{_mandir}/man1/xmltest.1* |