2009-09-24 18:00:45 +00:00
|
|
|
#
|
2010-06-23 10:31:02 +00:00
|
|
|
# $Id: sblim-sfcb.spec,v 1.5 2010/06/23 10:31:02 vcrhonek Exp $
|
2009-09-24 18:00:45 +00:00
|
|
|
#
|
|
|
|
# Package spec for sblim-sfcb
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: sblim-sfcb
|
|
|
|
Summary: Small Footprint CIM Broker
|
2013-01-24 14:59:51 +00:00
|
|
|
URL: http://sblim.wiki.sourceforge.net/
|
2013-01-08 09:22:46 +00:00
|
|
|
Version: 1.3.16
|
2013-07-23 12:08:55 +00:00
|
|
|
Release: 7%{?dist}
|
2009-09-24 18:00:45 +00:00
|
|
|
Group: Applications/System
|
|
|
|
License: EPL
|
|
|
|
Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
|
2013-06-17 09:59:06 +00:00
|
|
|
Source1: sfcb.service
|
|
|
|
# Missing man pages
|
|
|
|
Source2: sfcbdump.1.gz
|
|
|
|
Source3: sfcbinst2mof.1.gz
|
|
|
|
Source4: sfcbtrace.1.gz
|
2012-11-29 14:54:50 +00:00
|
|
|
# Patch0: moves log close to correct place
|
2012-06-07 08:53:04 +00:00
|
|
|
Patch0: sblim-sfcb-1.3.7-close_logging.patch
|
2012-11-29 14:54:50 +00:00
|
|
|
# Patch1: changes schema location to the path we use
|
2012-06-07 08:53:04 +00:00
|
|
|
Patch1: sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
|
2012-11-29 14:54:50 +00:00
|
|
|
# Patch2: fixes CMGetCharPtr macro
|
2012-06-07 08:53:04 +00:00
|
|
|
Patch2: sblim-sfcb-1.3.10-CMGetCharPtr.patch
|
2012-11-29 14:54:50 +00:00
|
|
|
# Patch3: adds missing includes
|
2012-06-07 11:24:33 +00:00
|
|
|
Patch3: sblim-sfcb-1.3.14-missing-includes.patch
|
2013-01-08 09:22:46 +00:00
|
|
|
# Patch4: Fix provider debugging - variable for stopping wait-for-debugger
|
|
|
|
# loop must be volatile
|
|
|
|
Patch4: sblim-sfcb-1.3.15-fix-provider-debugging.patch
|
2013-05-20 10:33:42 +00:00
|
|
|
# Patch5-7: already upstream, http://sourceforge.net/p/sblim/sfcb-tix/37/
|
|
|
|
Patch5: sblim-sfcb-1.3.16-invalid-read.patch
|
|
|
|
Patch6: sblim-sfcb-1.3.16-invalid-read2.patch
|
|
|
|
Patch7: sblim-sfcb-1.3.16-embedded-crash.patch
|
2013-05-20 11:15:43 +00:00
|
|
|
# Patch8: already upstream, http://sourceforge.net/p/sblim/sfcb-tix/44/
|
|
|
|
Patch8: sblim-sfcb-1.3.16-escape.patch
|
2013-06-17 09:59:06 +00:00
|
|
|
# Patch9: already upstream, http://sourceforge.net/p/sblim/sfcb-tix/49/
|
|
|
|
Patch9: sblim-sfcb-1.3.16-embedded-instance.patch
|
2013-06-24 13:48:54 +00:00
|
|
|
# Patch10: increase default value of maxMsgLen in sfcb.cfg
|
|
|
|
Patch10: sblim-sfcb-1.3.16-maxMsgLen.patch
|
2013-07-23 12:08:55 +00:00
|
|
|
# Patch11: fix CIM clients are sometimes getting HTTP/1.1 501 Not Implemented
|
|
|
|
Patch11: sblim-sfcb-1.3.16-http-header-cmd-check.patch
|
2009-09-24 18:00:45 +00:00
|
|
|
Provides: cim-server
|
|
|
|
Requires: cim-schema
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: cim-schema
|
|
|
|
BuildRequires: bison flex
|
2012-04-04 11:44:11 +00:00
|
|
|
BuildRequires: sblim-cmpi-devel
|
2011-01-07 23:38:19 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
2009-09-24 18:00:45 +00:00
|
|
|
|
|
|
|
%Description
|
|
|
|
Small Footprint CIM Broker (sfcb) is a CIM server conforming to the
|
|
|
|
CIM Operations over HTTP protocol.
|
|
|
|
It is robust, with low resource consumption and therefore specifically
|
|
|
|
suited for embedded and resource constrained environments.
|
|
|
|
sfcb supports providers written against the Common Manageability
|
|
|
|
Programming Interface (CMPI).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -T -b 0 -n %{name}-%{version}
|
2012-06-07 08:53:04 +00:00
|
|
|
%patch0 -p1 -b .close_logging
|
|
|
|
%patch1 -p1 -b .sfcbrepos-schema-location
|
|
|
|
%patch2 -p1 -b .CMGetCharPtr
|
2012-06-07 11:24:33 +00:00
|
|
|
%patch3 -p1 -b .missing-includes
|
2013-01-08 09:22:46 +00:00
|
|
|
%patch4 -p1 -b .fix-provider-debugging
|
2013-05-20 10:33:42 +00:00
|
|
|
%patch5 -p1 -b .invalid-read
|
|
|
|
%patch6 -p1 -b .invalid-read2
|
|
|
|
%patch7 -p1 -b .embedded-crash
|
2013-05-20 11:15:43 +00:00
|
|
|
%patch8 -p1 -b .escape
|
2013-06-24 13:48:54 +00:00
|
|
|
%patch9 -p1 -b .embedded-instance
|
|
|
|
%patch10 -p1 -b .maxMsgLen
|
2013-07-23 12:08:55 +00:00
|
|
|
%patch11 -p1 -b .http-header-cmd-check
|
2009-09-24 18:00:45 +00:00
|
|
|
|
|
|
|
%build
|
2013-01-29 13:25:59 +00:00
|
|
|
%configure --enable-debug --enable-uds --enable-ssl --enable-pam --enable-ipv6 CFLAGS="$CFLAGS -D_GNU_SOURCE -fPIE -DPIE" LDFLAGS="$LDFLAGS -Wl,-z,now -pie"
|
2009-09-24 18:00:45 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2012-06-07 08:53:04 +00:00
|
|
|
rm $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/sfcb
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/sblim-sfcb.service
|
2013-06-17 09:59:06 +00:00
|
|
|
# install man pages
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
|
|
|
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{buildroot}/%{_mandir}/man1/
|
2009-09-24 18:00:45 +00:00
|
|
|
# remove unused static libraries and so files
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/sfcb/*.la
|
|
|
|
|
|
|
|
echo "%defattr(-,root,root,-)" > _pkg_list
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT/%{_datadir}/sfcb -type f | grep -v $RPM_BUILD_ROOT/%{_datadir}/sfcb/CIM >> _pkg_list
|
|
|
|
sed -i s?$RPM_BUILD_ROOT??g _pkg_list > _pkg_list_2
|
|
|
|
echo "%config(noreplace) %{_sysconfdir}/sfcb/*" >> _pkg_list
|
|
|
|
echo "%config(noreplace) %{_sysconfdir}/pam.d/*" >> _pkg_list
|
|
|
|
echo "%doc %{_datadir}/doc/*" >> _pkg_list
|
|
|
|
echo "%{_datadir}/man/man1/*" >> _pkg_list
|
2013-06-24 14:04:14 +00:00
|
|
|
echo "/%{_unitdir}/sblim-sfcb.service" >> _pkg_list
|
2009-09-24 18:00:45 +00:00
|
|
|
echo "%{_localstatedir}/lib/sfcb" >> _pkg_list
|
|
|
|
echo "%{_bindir}/*" >> _pkg_list
|
|
|
|
echo "%{_sbindir}/*" >> _pkg_list
|
|
|
|
echo "%{_libdir}/sfcb/*.so.*" >> _pkg_list
|
2010-09-06 12:53:43 +00:00
|
|
|
echo "%{_libdir}/sfcb/*.so" >> _pkg_list
|
2009-09-24 18:00:45 +00:00
|
|
|
|
|
|
|
cat _pkg_list
|
|
|
|
|
2010-09-06 12:53:43 +00:00
|
|
|
%pre
|
|
|
|
/usr/bin/getent group sfcb >/dev/null || /usr/sbin/groupadd -r sfcb
|
2011-01-07 21:55:51 +00:00
|
|
|
/usr/sbin/usermod -a -G sfcb root > /dev/null 2>&1 || :
|
2010-09-06 12:53:43 +00:00
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
%post
|
2010-03-22 12:58:09 +00:00
|
|
|
%{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb &>/dev/null || :
|
2009-09-24 18:00:45 +00:00
|
|
|
/sbin/ldconfig
|
2010-09-06 12:53:43 +00:00
|
|
|
%{_bindir}/sfcbrepos -f
|
2012-08-23 12:31:46 +00:00
|
|
|
%systemd_post sfcb.service
|
2009-09-24 18:00:45 +00:00
|
|
|
|
|
|
|
%preun
|
2012-08-23 12:31:46 +00:00
|
|
|
%systemd_preun sfcb.service
|
2011-01-07 23:38:19 +00:00
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2012-08-23 12:31:46 +00:00
|
|
|
%systemd_postun_with_restart sfcb.service
|
2011-06-15 12:15:26 +00:00
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/usr/sbin/groupdel sfcb > /dev/null 2>&1 || :;
|
|
|
|
fi;
|
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
%files -f _pkg_list
|
2012-06-07 08:53:04 +00:00
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
%changelog
|
2013-07-23 12:08:55 +00:00
|
|
|
* Tue Jul 23 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-7
|
|
|
|
- Fix CIM clients are sometimes getting HTTP/1.1 501 Not Implemented
|
|
|
|
(patch by Tomas Bzatek)
|
|
|
|
Resolves: #968397
|
|
|
|
|
2013-07-17 14:28:17 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.3.16-6
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-06-24 13:48:54 +00:00
|
|
|
* Mon Jun 24 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-5
|
|
|
|
- Increase default maxMsgLen
|
|
|
|
Resolves: #967940
|
|
|
|
|
2013-06-17 09:59:06 +00:00
|
|
|
* Mon Jun 17 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-4
|
|
|
|
- Create missing man pages
|
|
|
|
- Add support for EmbeddedInstance qualifier
|
|
|
|
Resolves: #919377
|
|
|
|
|
2013-05-20 10:33:42 +00:00
|
|
|
* Mon May 20 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-3
|
|
|
|
- Fix indCIMXmlHandler crash in IndCIMXMLHandlerInvokeMethod with Embedded Instances
|
|
|
|
Resolves: #957747
|
2013-05-20 11:15:43 +00:00
|
|
|
- Fix sfcb creates invalid XML with embedded object inside embedded object
|
|
|
|
Resolves: #957742
|
2013-05-20 10:33:42 +00:00
|
|
|
|
2013-01-29 13:25:59 +00:00
|
|
|
* Tue Jan 29 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-2
|
2013-01-24 14:59:51 +00:00
|
|
|
- Fix URL in the spec file
|
|
|
|
- Remove unused devel part from the spec file
|
2013-01-29 13:25:59 +00:00
|
|
|
- Full relro support
|
2013-01-24 14:59:51 +00:00
|
|
|
|
2013-01-08 09:22:46 +00:00
|
|
|
* Tue Jan 08 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.16-1
|
|
|
|
- Update to sblim-sfcb-1.3.16
|
|
|
|
- Fix provider debugging (patch by Radek Novacek)
|
|
|
|
|
2012-11-29 14:54:50 +00:00
|
|
|
* Thu Nov 29 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.15-5
|
|
|
|
- Comment patches
|
|
|
|
|
2012-09-06 13:21:14 +00:00
|
|
|
* Thu Sep 06 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.15-4
|
|
|
|
- Fix issues found by fedora-review utility in the spec file
|
|
|
|
|
2012-08-23 12:31:46 +00:00
|
|
|
* Thu Aug 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.15-3
|
|
|
|
- Use new systemd-rpm macros
|
|
|
|
Resolves: #850307
|
|
|
|
|
2012-07-21 19:00:14 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.15-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-19 10:40:12 +00:00
|
|
|
* Tue Jun 19 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.15-1
|
|
|
|
- Update to sblim-sfcb-1.3.15
|
|
|
|
|
2012-06-07 09:10:28 +00:00
|
|
|
* Thu Jun 07 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.14-2
|
2012-06-07 08:53:04 +00:00
|
|
|
- Remove SysV init script
|
|
|
|
|
2012-04-04 11:44:11 +00:00
|
|
|
* Wed Apr 04 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.14-1
|
|
|
|
- Update to sblim-sfcb-1.3.14
|
|
|
|
|
2012-01-14 03:36:40 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-12 08:26:46 +00:00
|
|
|
* Wed Oct 12 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.13-1
|
|
|
|
- Update to sblim-sfcb-1.3.13
|
|
|
|
|
2011-09-07 11:23:53 +00:00
|
|
|
* Wed Sep 07 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.12-1
|
|
|
|
- Update to sblim-sfcb-1.3.12
|
|
|
|
|
2011-06-15 12:15:26 +00:00
|
|
|
* Wed Jun 15 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.11-2
|
|
|
|
- Remove sfcb system group in post uninstall scriptlet
|
|
|
|
- Fix minor rpmlint warnings
|
|
|
|
|
2011-05-26 13:40:10 +00:00
|
|
|
* Thu May 26 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.11-1
|
|
|
|
- Update to sblim-sfcb-1.3.11
|
|
|
|
|
2011-05-09 18:45:34 +00:00
|
|
|
* Mon May 9 2011 Bill Nottingham - 1.3.10-5
|
|
|
|
- fix systemd scriptlets for upgrade
|
|
|
|
|
2011-02-09 11:47:48 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-07 23:38:19 +00:00
|
|
|
* Fri Jan 7 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.3.10-3
|
|
|
|
- Added the required scripting to manage the service with systemd
|
|
|
|
|
2011-01-07 21:55:51 +00:00
|
|
|
* Fri Jan 7 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.3.10-2
|
|
|
|
- Following the BZ#660072, added sfcb.service file for compliance with systemd
|
|
|
|
- Since sfcb's PAM authentication requires, the user to be in group sfcb,
|
2011-06-15 12:15:26 +00:00
|
|
|
- added the root user to "sfcb" group in %%pre section.
|
2011-01-07 21:55:51 +00:00
|
|
|
|
2010-12-06 15:29:46 +00:00
|
|
|
* Mon Dec 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.10-1
|
|
|
|
- Update to sblim-sfcb-1.3.10
|
|
|
|
- Fix CMGetCharPtr macro (patch by Kamil Dudka)
|
|
|
|
|
2010-09-06 12:53:43 +00:00
|
|
|
* Mon Sep 6 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.9-1
|
|
|
|
- Update to sblim-sfcb-1.3.9
|
|
|
|
- Compile with --enable-uds, i. e. enable unix domain socket local
|
|
|
|
connect functionality
|
|
|
|
- Create sfcb system group (used by basic authentication with PAM)
|
|
|
|
in pre install scriptlet
|
|
|
|
- Fix default location where sfcbrepos is looking for schema files
|
|
|
|
and simplify sfcbrepos command in post install sciptlet
|
|
|
|
- Add missing soname files
|
|
|
|
|
2010-06-23 10:31:02 +00:00
|
|
|
* Wed Jun 23 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.8-1
|
|
|
|
- Update to sblim-sfcb-1.3.8
|
|
|
|
- Fix unmatched calls of closeLogging() and startLogging()
|
|
|
|
|
2010-04-22 12:04:57 +00:00
|
|
|
* Thu Apr 22 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.7-3
|
|
|
|
- Fix initscript
|
|
|
|
|
2010-03-22 12:58:09 +00:00
|
|
|
* Mon Mar 22 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.3.7-2
|
|
|
|
- Make sblim-sfcb post install scriptlet silent
|
|
|
|
- Fix value.c
|
|
|
|
|
2010-03-03 08:23:25 +00:00
|
|
|
* Wed Mar 3 2010 <vcrhonek@redhat.com> - 1.3.7-1
|
|
|
|
- Update to sblim-sfcb-1.3.7
|
|
|
|
- Fix dist tag in Release field
|
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
* Tue Sep 22 2009 <srinivas_ramanatha@dell.com> - 1.3.4-8
|
|
|
|
- Removed the devel package and moved the init script to right directory
|
2010-03-03 08:23:25 +00:00
|
|
|
|
2009-09-24 18:00:45 +00:00
|
|
|
* Wed Sep 16 2009 <srinivas_ramanatha@dell.com> - 1.3.4-7
|
|
|
|
- Modified the spec based on Praveen's comments
|
|
|
|
|
|
|
|
* Thu Sep 10 2009 <srinivas_ramanatha@dell.com> - 1.3.4-6
|
|
|
|
- Fixed the incoherent init script problem by renaming the init script
|
|
|
|
|
|
|
|
* Thu Sep 03 2009 <srinivas_ramanatha@dell.com> - 1.3.4-5
|
|
|
|
- added the devel package to fit in all the development files
|
|
|
|
- Made changes to the initscript not to start the service by default
|
|
|
|
|
|
|
|
* Thu Jul 02 2009 <ratliff@austin.ibm.com> - 1.3.4-4
|
|
|
|
- added build requires for flex, bison, cim-schema suggested by Sean Swehla
|
|
|
|
- added sfcbrepos directive to post section
|
|
|
|
|
|
|
|
* Thu Jun 18 2009 <ratliff@austin.ibm.com> - 1.3.4-3
|
|
|
|
- re-ordered the top so that the name comes first
|
|
|
|
- added the la files to the package list
|
|
|
|
- removed the smp flags from make because that causes a build break
|
|
|
|
- updated spec file to remove schema and require the cim-schema package
|
|
|
|
- change provides statement to cim-server as suggested by Matt Domsch
|
|
|
|
- updated to upstream version 1.3.4 which was released Jun 15 2009
|
|
|
|
|
|
|
|
* Thu Oct 09 2008 <ratliff@austin.ibm.com> - 1.3.2-2
|
|
|
|
- updated spec file based on comments from Srini Ramanatha as below:
|
|
|
|
- updated the Release line to add dist to be consistent with sblim-sfcc
|
|
|
|
- updated the source URL
|
|
|
|
|
|
|
|
* Wed Oct 08 2008 <ratliff@austin.ibm.com> - 1.3.2-1
|
|
|
|
- updated upstream version and added CFLAGS to configure to work
|
|
|
|
- around http://sources.redhat.com/bugzilla/show_bug.cgi?id=6545
|
|
|
|
|
|
|
|
* Fri Aug 08 2008 <ratliff@austin.ibm.com> - 1.3.0-1
|
|
|
|
- updated buildrequires to require libcurl-devel rather than curl-devel
|
|
|
|
- removed requires to allow rpm to automatically generate the requires
|
|
|
|
- removed echo to stdout
|
|
|
|
- removed paranoia check around cleaning BuildRoot per Fedora MUST requirements
|
|
|
|
- changed group to supress rpmlint complaint
|
|
|
|
- added chkconfig to enable sfcb by default when it is installed
|
|
|
|
- added patch0 to enable 1.3.0 to build on Fedora 9
|
|
|
|
|
|
|
|
* Fri Feb 09 2007 <mihajlov@dyn-9-152-143-45.boeblingen.de.ibm.com> - 1.2.1-0
|
|
|
|
- Updated for 1.2.1 content, enabled SSL, indications
|
|
|
|
|
|
|
|
* Wed Aug 31 2005 <mihajlov@dyn-9-152-143-45.boeblingen.de.ibm.com> - 0.9.0b-0
|
|
|
|
- Support for man pages added
|