]>
Commit | Line | Data |
---|---|---|
e6c4a6d8 JB |
1 | Summary: Small Footprint CIM Broker |
2 | Summary(pl.UTF-8): Lekki broker CIM | |
3 | Name: sblim-sfcb | |
4 | Version: 1.3.15 | |
5 | Release: 1 | |
6 | License: Eclipse Public License v1.0 | |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 117e50f989370376876163e621a59f73 | |
10 | Patch0: %{name}-fix.patch | |
11 | URL: http://sblim.sourceforge.net/ | |
12 | BuildRequires: curl-devel >= 7.11.1 | |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: openslp-devel | |
15 | BuildRequires: openssl-devel >= 0.9.7 | |
16 | BuildRequires: pam-devel | |
17 | Requires(post): openssl-tools | |
18 | Suggests: sblim-sfcb-schema | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | # undefined newList in libsfcUtil: circular dependencies with libsfcBrokerCore | |
22 | # undefined trimws in libsfcCimXmlCodec: symbols expected to be defined in binary | |
23 | %define skip_post_check_so libsfcUtil\.so.* libsfcCimXmlCodec\.so.* | |
24 | ||
25 | %description | |
26 | sfcb is a lightweight CIM daemon (aka CIMOM) that responds to CIM | |
27 | client requests for system management data and/or performs system | |
28 | management tasks. sfcb supports most of the standard CIM XML over | |
29 | HTTP/HTTPS protocol. It is highly modular, allowing functionality to | |
30 | be easily added, removed or customized for different management | |
31 | applications. sfcb is specifically targeted for small embedded system | |
32 | that do not have the available CPU, memory or disk resources to | |
33 | support a full-blown enterprise-level CIMOM. That said, sfcb runs very | |
34 | well on a regular Linux/Unix system and supports most of the functions | |
35 | required by CIM clients to manage such the system. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | %patch0 -p1 | |
42 | ||
43 | %build | |
44 | %configure \ | |
45 | --enable-ipv6 \ | |
46 | --enable-pam \ | |
47 | --enable-slp \ | |
48 | --enable-ssl \ | |
49 | --enable-uds | |
50 | # --enable-jdbc is broken (sfcSqlparse undefined) | |
51 | ||
52 | %{__make} | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT \ | |
59 | initdir=/etc/rc.d/init.d | |
60 | ||
61 | # libraries with no headers installed | |
62 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/libsfc{BrokerCore,CimXmlCodec,FileRepository,HttpAdapter,InternalProvider,Util}.so | |
63 | # the same or dlopened modules | |
64 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/sfcb/*.la | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post | |
70 | if [ ! -f %{_sysconfdir}/sfcb/server.pem -o ! -f %{_sysconfdir}/sfcb/client.pem ]; then | |
71 | %{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb | |
72 | fi | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc AUTHORS COPYING ChangeLog NEWS README | |
77 | %attr(754,root,root) /etc/rc.d/init.d/sfcb | |
78 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sfcb | |
79 | %dir %{_sysconfdir}/sfcb | |
80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sfcb/sfcb.cfg | |
81 | %attr(755,root,root) %{_bindir}/sfcb* | |
82 | %attr(755,root,root) %{_bindir}/wbemcat | |
83 | %attr(755,root,root) %{_bindir}/xmltest | |
84 | %attr(755,root,root) %{_sbindir}/sfcbd | |
85 | %dir %{_libdir}/sfcb | |
86 | # libs | |
87 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.*.*.* | |
88 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBrokerCore.so.0 | |
89 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.*.*.* | |
90 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCimXmlCodec.so.0 | |
91 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.*.*.* | |
92 | %attr(755,root,root) %{_libdir}/sfcb/libsfcFileRepository.so.0 | |
93 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.*.*.* | |
94 | %attr(755,root,root) %{_libdir}/sfcb/libsfcHttpAdapter.so.0 | |
95 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.*.*.* | |
96 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInternalProvider.so.0 | |
97 | %attr(755,root,root) %{_libdir}/sfcb/libsfcUtil.so.*.*.* | |
98 | %attr(755,root,root) %{_libdir}/sfcb/libsfcUtil.so.0 | |
99 | # providers dlopened by libsfcBrokerCore | |
100 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicAuthentication.so* | |
101 | %attr(755,root,root) %{_libdir}/sfcb/libsfcBasicPAMAuthentication.so* | |
102 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCertificateAuthentication.so* | |
103 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProvider.so* | |
104 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderGz.so* | |
105 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderMem.so* | |
106 | %attr(755,root,root) %{_libdir}/sfcb/libsfcClassProviderSf.so* | |
107 | %attr(755,root,root) %{_libdir}/sfcb/libsfcCustomLib.so* | |
108 | %attr(755,root,root) %{_libdir}/sfcb/libsfcElementCapabilitiesProvider.so* | |
109 | %attr(755,root,root) %{_libdir}/sfcb/libsfcIndCIMXMLHandler.so* | |
110 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropProvider.so* | |
111 | %attr(755,root,root) %{_libdir}/sfcb/libsfcInteropServerProvider.so* | |
112 | %attr(755,root,root) %{_libdir}/sfcb/libsfcObjectImplSwapI32toP32.so* | |
113 | %attr(755,root,root) %{_libdir}/sfcb/libsfcProfileProvider.so* | |
114 | %attr(755,root,root) %{_libdir}/sfcb/libsfcQualifierProvider.so* | |
115 | # dlopened by libcimcclient (sblib-sfcc) | |
116 | %attr(755,root,root) %{_libdir}/sfcb/libcimcClientSfcbLocal.so* | |
117 | %dir %{_datadir}/sfcb | |
118 | %attr(755,root,root) %{_datadir}/sfcb/genSslCert.sh | |
119 | %attr(755,root,root) %{_datadir}/sfcb/getSchema.sh | |
120 | %attr(755,root,root) %{_datadir}/sfcb/stageschema.sh | |
121 | %{_datadir}/sfcb/*.mof | |
122 | %{_datadir}/sfcb/default.reg | |
123 | %dir /var/lib/sfcb | |
124 | %dir /var/lib/sfcb/stage | |
125 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/default.reg | |
126 | %dir /var/lib/sfcb/stage/mofs | |
127 | %config %verify(not md5 mtime size) %dir /var/lib/sfcb/stage/mofs/indication.mof | |
128 | %dir /var/lib/sfcb/stage/mofs/root | |
129 | %dir /var/lib/sfcb/stage/mofs/root/interop | |
130 | %config %verify(not md5 mtime size) /var/lib/sfcb/stage/mofs/root/interop/*.mof | |
131 | %{_mandir}/man1/genSslCert.1* | |
132 | %{_mandir}/man1/getSchema.1* | |
133 | %{_mandir}/man1/sfcb*.1* | |
134 | %{_mandir}/man1/wbemcat.1* | |
135 | %{_mandir}/man1/xmltest.1* |