tog-pegasus/tog-pegasus.spec

677 lines
24 KiB
RPMSpec
Raw Normal View History

2006-04-11 02:31:28 +00:00
#
#
# OpenPegasus (Red Hat release) RPM .spec file
#
2006-04-07 02:40:20 +00:00
# tog-pegasus.spec
#
2006-04-07 02:40:20 +00:00
# Copyright (c) 2000 - 2006,
2006-04-11 02:31:28 +00:00
# The Open Group; Hewlett-Packard Development Company, L.P.;
# IBM Corp.; BMC Software; Tivoli Systems.
2006-04-07 02:40:20 +00:00
# Licensed under the "Open Group Pegasus Open Source" license
# shipped with this software.
#
# Upstream tog-pegasus.spec file modified for Red Hat build -
# April 2006, Jason Vas Dias <jvdias@redhat.com>, Red Hat Inc.
#
2006-07-19 23:22:28 +00:00
%{?!LINUX_VERSION: %define LINUX_VERSION %{?dist}}
2006-04-07 02:40:20 +00:00
#
%{?!PEGASUS_BUILD_TEST_RPM: %define PEGASUS_BUILD_TEST_RPM 0}
# do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM.
#
%{?!NOCLEAN: %define NOCLEAN 0}
# ^- 1: don't do %clean
%{?!NODEBUGINFO: %define NODEBUGINFO 0}
# ^- 1: don't generate debuginfo or strip binaries
%if %{NODEBUGINFO}
%define debug_package %{nil}
%endif
2007-11-19 12:20:15 +00:00
%define srcname pegasus
2006-04-07 02:40:20 +00:00
%define pegasus_gid 65
%define pegasus_uid 66
%define multilib 0
%define bsx ''
2009-02-02 19:34:17 +00:00
%ifarch i386 x86_64 ppc ppc64 s390 s390x sparcv9 sparc64
%define multilib 1
%define bsx -32
2009-02-02 19:34:17 +00:00
%ifarch x86_64 ppc64 s390x sparc64
%define bsx -64
%endif
%endif
2009-06-16 12:09:03 +00:00
Version: 2.9.0
Release: 3%{?dist}
2006-04-07 02:40:20 +00:00
Epoch: 2
#
Summary: OpenPegasus WBEM Services for Linux
Name: tog-pegasus
2009-07-21 11:06:35 +00:00
Group: System Environment/Daemons
2006-04-07 02:40:20 +00:00
URL: http://www.openpegasus.org
#
2008-09-08 21:19:14 +00:00
License: MIT
2006-04-07 02:40:20 +00:00
#
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{_target_cpu}-%(%{__id} -u -n)
2006-04-07 02:40:20 +00:00
#
2007-09-19 07:55:55 +00:00
Source: http://www.openpegasus.org/uploads/40/14280/pegasus-%{version}.tar.gz
2007-03-21 10:13:24 +00:00
Source1: README.RedHat.Security
Source2: genOpenPegasusSSLCerts
Source3: pegasus_arch_alternatives
Source4: RedHat.OpenPegasus.Makefile
2009-06-16 12:09:03 +00:00
Source5: README.RedHat.SSL
2006-04-07 02:40:20 +00:00
#
2007-03-12 10:43:45 +00:00
# 0: Still not fixed by http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5008
2009-06-16 12:09:03 +00:00
Patch0: pegasus-2.9.0-initscript.patch
2007-03-12 10:43:45 +00:00
# 1: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5011
2009-06-16 12:09:03 +00:00
Patch1: pegasus-2.9.0-no-rpath.patch
2007-11-19 12:20:15 +00:00
Patch2: pegasus-2.7.0-PIE.patch
# 3: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5016
2009-06-16 12:09:03 +00:00
Patch3: pegasus-2.9.0-redhat-config.patch
2007-11-19 12:20:15 +00:00
# 4: don't see how http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5099 fixed it
2009-06-16 12:09:03 +00:00
Patch4: pegasus-2.9.0-cmpi-provider-lib.patch
2007-11-19 12:20:15 +00:00
# 5: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5010
2009-06-16 12:09:03 +00:00
Patch5: pegasus-2.9.0-local-or-remote-auth.patch
2007-11-19 12:20:15 +00:00
# 6: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5012
Patch6: pegasus-2.5.1-pam-wbem.patch
# 7: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5006
2009-06-16 12:09:03 +00:00
Patch7: pegasus-2.9.0-fix_tests.patch
2007-11-19 12:20:15 +00:00
Patch9: pegasus-2.6.0-cimuser.patch
2009-06-16 12:09:03 +00:00
Patch11: pegasus-2.9.0-no_privilege_separation.patch
2008-01-21 14:51:46 +00:00
Patch12: pegasus-2.7.0-no_snmp_tests.patch
2009-06-16 12:09:03 +00:00
Patch13: pegasus-2.9.0-sparc.patch
2009-02-28 14:06:17 +00:00
Patch14: pegasus-2.7.2-baseelif.patch
2007-03-21 10:13:24 +00:00
#
2006-04-07 02:40:20 +00:00
Conflicts: openwbem
Provides: tog-pegasus-cimserver
#
BuildRequires: bash, sed, grep, coreutils, procps, gcc, gcc-c++
2007-03-22 09:03:03 +00:00
BuildRequires: imake, libstdc++, make, pam-devel
BuildRequires: openssl-devel >= 0.9.8b, e2fsprogs
2007-11-19 12:20:15 +00:00
BuildRequires: net-snmp-devel
2009-06-16 12:09:03 +00:00
#
Requires: bash, sed, grep, coreutils, procps, openssl >= 0.9.8b, pam
2009-06-16 12:09:03 +00:00
Requires: chkconfig, sysvinit
2006-04-07 02:40:20 +00:00
Requires: e2fsprogs, bind-utils, net-tools
Requires(post): bash, sed, grep, coreutils, procps, openssl >= 0.9.8b, pam
2009-06-16 12:09:03 +00:00
Requires(post): chkconfig, sysvinit
2006-04-07 02:40:20 +00:00
Requires(post): e2fsprogs, bind-utils, net-tools
Requires(pre): bash, sed, grep, coreutils, procps, openssl >= 0.9.8b, pam
2009-06-16 12:09:03 +00:00
Requires(pre): chkconfig, sysvinit
2006-04-07 02:40:20 +00:00
Requires(pre): e2fsprogs, bind-utils, net-tools
Requires(postun): bash, sed, grep, coreutils, procps, openssl >= 0.9.8b, pam
2009-06-16 12:09:03 +00:00
Requires(postun): chkconfig, sysvinit
2006-04-07 02:40:20 +00:00
Requires(postun): e2fsprogs, bind-utils, net-tools
2007-11-19 12:20:15 +00:00
Requires: net-snmp
%description
OpenPegasus WBEM Services for Linux enables management solutions that deliver
increased control of enterprise resources. WBEM is a platform and resource
independent DMTF standard that defines a common information model and
communication protocol for monitoring and controlling resources from diverse
sources.
2005-08-18 03:18:18 +00:00
%package devel
2006-04-07 02:40:20 +00:00
Summary: The OpenPegasus Software Development Kit
Group: Systems Management/Base
2009-06-16 12:09:03 +00:00
Requires: tog-pegasus >= %{version}-%{release}
2006-04-07 02:40:20 +00:00
Obsoletes: tog-pegasus-sdk
Requires: make, gcc, gcc-c++
Requires(preun): make
2005-08-18 03:18:18 +00:00
%description devel
2006-04-07 02:40:20 +00:00
The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
OpenPegasus WBEM Services for Linux release. It provides Linux C++ developers
with the WBEM files required to build WBEM Clients and Providers. It also
supports C provider developers via the CMPI interface.
%if %{PEGASUS_BUILD_TEST_RPM}
2005-05-30 21:21:15 +00:00
%package test
2006-04-07 02:40:20 +00:00
Summary: The OpenPegasus Tests
Group: Systems Management/Base
2009-06-16 12:09:03 +00:00
Requires: tog-pegasus >= %{version}-%{release}, make
2005-05-30 21:21:15 +00:00
%description test
2006-04-07 02:40:20 +00:00
The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
2005-05-30 21:21:15 +00:00
%endif
%prep
2006-04-07 02:40:20 +00:00
%setup -q -n %{srcname}
%patch1 -p1 -b .no-rpath
2007-11-19 12:20:15 +00:00
%patch2 -p1 -b .PIE
%patch3 -p1 -b .redhat-config
%patch4 -p1 -b .cmpi-provider-lib
%patch6 -p1 -b .pam-wbem
%patch7 -p1 -b .fix-tests
%patch9 -p1 -b .cimuser
%patch11 -p1 -b .no_privilege_separation
2008-01-21 14:51:46 +00:00
%patch12 -p1 -b .no_snmp_tests
%patch5 -p1 -b .local-or-remote-auth
2009-02-02 19:34:17 +00:00
%patch13 -p1 -b .sparc
2009-02-28 14:06:17 +00:00
%patch14 -p1 -b .bareelif
2009-06-16 12:09:03 +00:00
%patch0 -p1 -b .initscript
find . -name 'CVS' -exec /bin/rm -rf '{}' ';' >/dev/null 2>&1 ||:;
%build
2006-04-07 02:40:20 +00:00
rm -rf ${RPM_BUILD_ROOT} || :;
2007-03-21 10:13:24 +00:00
cp -fp %SOURCE1 doc
cp -fp %SOURCE2 rpm
cp -fp %SOURCE4 .;
2009-06-16 12:09:03 +00:00
cp -fp %SOURCE5 doc
2007-03-21 10:13:24 +00:00
export RPM_ARCH_LIB=%{_lib}
export RPM_ARCH=%{_target_cpu}
2007-03-21 10:13:24 +00:00
export RPM_BUILD_DIR=`pwd`
export RPM_ARCH=`uname -i`
export RPM_OPT_FLAGS=`rpm -q rpm --qf '%{OPTFLAGS}'`
%ifarch ia64
export PEGASUS_PLATFORM=LINUX_IA64_GNU
%else
%ifarch x86_64
export PEGASUS_PLATFORM=LINUX_X86_64_GNU
%else
%ifarch ppc
export PEGASUS_PLATFORM=LINUX_PPC_GNU
%else
%ifarch ppc64
export PEGASUS_PLATFORM=LINUX_PPC64_GNU
%else
%ifarch s390
export PEGASUS_PLATFORM=LINUX_ZSERIES_GNU
%else
%ifarch s390x
export PEGASUS_PLATFORM=LINUX_ZSERIES64_GNU
%else
2009-02-02 19:34:17 +00:00
%ifarch sparcv9
export PEGASUS_PLATFORM=LINUX_SPARCV9_GNU
%else
%ifarch sparc64
export PEGASUS_PLATFORM=LINUX_SPARC64_GNU
%else
export PEGASUS_PLATFORM=LINUX_IX86_GNU
%endif
%endif
2007-03-21 10:13:24 +00:00
%endif
%endif
%endif
%endif
%endif
%endif
export PEGASUS_ROOT=${RPM_BUILD_DIR}
export PEGASUS_HOME=${PEGASUS_ROOT}/build
export PEGASUS_ARCH_LIB=${RPM_ARCH_LIB}
export PEGASUS_ENVVAR_FILE=${PEGASUS_ROOT}/env_var_Linux.status
export PEGASUS_EXTRA_C_FLAGS="${RPM_OPT_FLAGS} -Wno-unused"
export PEGASUS_EXTRA_CXX_FLAGS=${PEGASUS_EXTRA_C_FLAGS}
export PEGASUS_EXTRA_PROGRAM_LINK_FLAGS="-pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
export OPENSSL_HOME=/usr
export OPENSSL_BIN=/usr/bin
export SYS_INCLUDES=-I/usr/kerberos/include
export LD_LIBRARY_PATH=${PEGASUS_HOME}/lib
export PATH=${PEGASUS_HOME}/bin:${PATH}
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release create_ProductVersionFile
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release create_CommonProductDirectoriesInclude
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release create_ConfigProductDirectoriesInclude
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release depend
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release all
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.Release repository
2006-04-07 02:40:20 +00:00
%if %{PEGASUS_BUILD_TEST_RPM}
2007-03-21 10:13:24 +00:00
make %{?_smp_mflags} -f ${PEGASUS_ROOT}/Makefile.ReleaseTest -s create_repository
2005-05-30 21:21:15 +00:00
%endif
2005-08-18 03:18:18 +00:00
%install
export RPM_ARCH_LIB=%{_lib}
export RPM_ARCH=%{_target_cpu}
export BSX=%{bsx}
2007-03-21 10:13:24 +00:00
export RPM_BUILD_DIR=`pwd`
export RPM_ARCH=`uname -i`
export RPM_OPT_FLAGS=`rpm -q rpm --qf '%{OPTFLAGS}'`
%ifarch ia64
export PEGASUS_PLATFORM=LINUX_IA64_GNU
%else
%ifarch x86_64
export PEGASUS_PLATFORM=LINUX_X86_64_GNU
%else
%ifarch ppc
export PEGASUS_PLATFORM=LINUX_PPC_GNU
%else
%ifarch ppc64
export PEGASUS_PLATFORM=LINUX_PPC64_GNU
%else
%ifarch s390
export PEGASUS_PLATFORM=LINUX_ZSERIES_GNU
%else
%ifarch s390x
export PEGASUS_PLATFORM=LINUX_ZSERIES64_GNU
%else
2009-02-02 19:34:17 +00:00
%ifarch sparcv9
export PEGASUS_PLATFORM=LINUX_SPARCV9_GNU
%else
%ifarch sparc64
export PEGASUS_PLATFORM=LINUX_SPARC64_GNU
%else
export PEGASUS_PLATFORM=LINUX_IX86_GNU
%endif
%endif
2007-03-21 10:13:24 +00:00
%endif
%endif
%endif
%endif
%endif
%endif
export PEGASUS_ROOT=${RPM_BUILD_DIR}
export PEGASUS_HOME=${PEGASUS_ROOT}/build
export PEGASUS_ARCH_LIB=${RPM_ARCH_LIB}
export PEGASUS_ENVVAR_FILE=${PEGASUS_ROOT}/env_var_Linux.status
export PEGASUS_EXTRA_C_FLAGS="${RPM_OPT_FLAGS} -Wno-unused"
export PEGASUS_EXTRA_CXX_FLAGS=${PEGASUS_EXTRA_C_FLAGS}
export PEGASUS_EXTRA_PROGRAM_LINK_FLAGS="-pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
export OPENSSL_HOME=/usr
export OPENSSL_BIN=/usr/bin
export SYS_INCLUDES=-I/usr/kerberos/include
export LD_LIBRARY_PATH=${PEGASUS_HOME}/lib
export PATH=${PEGASUS_HOME}/bin:${PATH}
make -f RedHat.OpenPegasus.Makefile install prefix=$RPM_BUILD_ROOT libdir=%{_libdir} root_user=%(%{__id} -u -n) pegasus_user=%(%{__id} -u -n)
2006-04-07 02:40:20 +00:00
%if %{PEGASUS_BUILD_TEST_RPM}
2007-03-21 10:13:24 +00:00
make -f %{SOURCE4} install_tests prefix=${RPM_BUILD_ROOT} root_user=%(%{__id} -u -n) pegasus_user=%(%{__id} -u -n)
%endif
2007-03-21 10:13:24 +00:00
%if %{multilib}
2007-03-21 10:13:24 +00:00
%{SOURCE3} --list '%ghost' | grep 'bin/' > ghost_arch_binaries;
%{SOURCE3} --list '%ghost' | grep 'mak/' > ghost_arch_devel;
%{SOURCE3} --list '%ghost' | grep 'test/'> ghost_arch_test;
cp -fp %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/Pegasus/scripts;
%else
touch ghost_arch_binaries;
touch ghost_arch_devel;
touch ghost_arch_test;
2006-04-07 02:40:20 +00:00
%endif
%if %{NODEBUGINFO}
/usr/lib/rpm/brp-compress;
exit 0;
%endif
2007-03-21 10:13:24 +00:00
2006-04-11 02:31:28 +00:00
:;
%files -f ghost_arch_binaries
2006-04-07 02:40:20 +00:00
%defattr(0750, root, pegasus, 0750)
%if !%{NODEBUGINFO}
%exclude /usr/lib/debug
%endif
%defattr(0755, root, pegasus, 0750)
2006-04-07 02:40:20 +00:00
/usr/%{_lib}/*
/usr/share/Pegasus/scripts
%defattr(0750, root, pegasus, 0750)
2006-04-07 02:40:20 +00:00
/usr/sbin/*
%attr(0755, root, pegasus) /usr/sbin/cimauth
%attr(0755, root, pegasus) /usr/sbin/cimconfig
%attr(0755, root, pegasus) /usr/sbin/cimprovagt
%attr(0755, root, pegasus) /usr/sbin/cimserver
%attr(0755, root, pegasus) /usr/sbin/cimuser
%attr(0755, root, pegasus) /usr/sbin/repupgrade
2006-04-07 02:40:20 +00:00
/usr/bin/*
%attr(0755, root, pegasus) /usr/bin/cimmof
%attr(0755, root, pegasus) /usr/bin/cimmofl
%attr(0755, root, pegasus) /usr/bin/cimprovider
%attr(0755, root, pegasus) /usr/bin/osinfo
%attr(0755, root, pegasus) /usr/bin/wbemexec
2009-03-03 16:37:42 +00:00
%config(noreplace) /etc/rc.d/init.d/tog-pegasus
2006-04-07 02:40:20 +00:00
%defattr(0640, root, pegasus, 0750)
%dir /etc/Pegasus
%ghost %config(noreplace) /etc/Pegasus/cimserver_current.conf
%ghost %config(noreplace) /etc/Pegasus/cimserver_planned.conf
%config(noreplace) /etc/Pegasus/access.conf
%config(noreplace) /etc/pam.d/wbem
%ghost /etc/Pegasus/ssl.cnf
%ghost /etc/Pegasus/client.pem
%ghost /etc/Pegasus/server.pem
%ghost /etc/Pegasus/file.pem
2006-04-07 02:40:20 +00:00
%ghost /etc/Pegasus/cimserver_trust
%ghost /etc/Pegasus/indication_trust
%ghost /etc/Pegasus/crl
%dir /var/lib/Pegasus
/var/lib/Pegasus/repository
/var/lib/Pegasus/cache
2006-04-07 02:40:20 +00:00
%dir /var/lib/Pegasus/log
%ghost /var/lib/Pegasus/log/install.log
2006-04-11 19:46:17 +00:00
%ghost /var/lib/Pegasus/cache/trace/cimserver.trc
2006-04-07 02:40:20 +00:00
%dir %attr(1750,root,pegasus) /var/run/tog-pegasus
%ghost /var/run/tog-pegasus/cimserver.pid
%ghost /var/run/tog-pegasus/cimserver_start.lock
2006-04-11 02:31:28 +00:00
%ghost %attr(1640,root,pegasus) /var/run/tog-pegasus/cimxml.socket
2006-04-07 02:40:20 +00:00
%defattr(0644, root, pegasus, 0755)
%dir /usr/share/Pegasus
/usr/share/Pegasus/mof
2006-07-26 17:26:31 +00:00
/usr/share/man/man8/*
2006-04-07 02:40:20 +00:00
/usr/share/man/man1/*
2009-06-16 12:09:03 +00:00
%doc doc/license.txt doc/Admin_Guide_Release.pdf doc/PegasusSSLGuidelines.htm doc/SecurityGuidelinesForDevelopers.html doc/README.RedHat.Security src/Clients/repupgrade/doc/repupgrade.html doc/README.RedHat.SSL
%files devel -f ghost_arch_devel
%defattr(0644,root,pegasus,0755)
/usr/include/Pegasus
/usr/share/Pegasus/samples
/usr/share/Pegasus/html
%if %{PEGASUS_BUILD_TEST_RPM}
%files test -f ghost_arch_test
2006-04-11 02:31:28 +00:00
%defattr(0644,root,pegasus,0755)
2006-04-07 02:40:20 +00:00
%dir /usr/share/Pegasus/test
/usr/share/Pegasus/test/Makefile%{bsx}
2006-04-11 02:31:28 +00:00
/usr/share/Pegasus/test/mak
/var/lib/Pegasus/testrepository
2006-04-11 02:31:28 +00:00
%defattr(0750,root,pegasus,0755)
2006-04-07 02:40:20 +00:00
/usr/share/Pegasus/test/bin
/usr/share/Pegasus/test/lib
%endif
2005-05-30 21:21:15 +00:00
2006-04-07 02:40:20 +00:00
%clean
%if !%{NOCLEAN}
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf $RPM_BUILD_ROOT;
2006-04-07 02:56:48 +00:00
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/%{srcname};
2005-05-30 21:21:15 +00:00
%endif
%pre
2006-04-07 02:40:20 +00:00
if [ $1 -eq 1 ]; then
# first install: create the 'pegasus' user and group:
2006-04-07 02:40:20 +00:00
/usr/sbin/groupadd -g %{pegasus_gid} -f -r pegasus >/dev/null 2>&1 || :;
/usr/sbin/useradd -u %{pegasus_uid} -r -N -M -g pegasus -s /sbin/nologin -d /var/lib/Pegasus \
2006-03-07 18:01:50 +00:00
-c "tog-pegasus OpenPegasus WBEM/CIM services" pegasus >/dev/null 2>&1 || :;
2006-04-07 02:40:20 +00:00
elif [ $1 -gt 1 ]; then
if [ -d /var/lib/Pegasus/repository ]; then
if [ -d /var/lib/Pegasus/prev_repository ]; then
mv /var/lib/Pegasus/prev_repository /var/lib/Pegasus/prev_repository_`date '+%Y-%m-%d-%s.%N'`.rpmsave;
fi;
mv /var/lib/Pegasus/repository /var/lib/Pegasus/prev_repository;
fi
fi
2006-04-07 02:40:20 +00:00
:;
%post
2006-04-07 02:40:20 +00:00
ldconfig;
chkconfig --add tog-pegasus;
if [ $1 -ge 1 ]; then
2006-04-07 02:40:20 +00:00
echo `date` >> /var/lib/Pegasus/log/install.log 2>&1 || :;
%if %{multilib}
%{_datadir}/Pegasus/scripts/pegasus_arch_alternatives || :;
%endif
if [ $1 -gt 1 ]; then
if [ -d /var/lib/Pegasus/prev_repository ]; then
# The user's old repository was moved to /var/lib/Pegasus/prev_repository, which
# now must be upgraded to the new repository in /var/lib/Pegasus/repository:
/usr/sbin/repupgrade 2>> /var/lib/Pegasus/log/install.log || :;
mv /var/lib/Pegasus/prev_repository /var/lib/Pegasus/prev_repository_`date '+%Y-%m-%d-%s.%N'`.rpmsave;
fi;
/sbin/service tog-pegasus condrestart >/dev/null 2>&1 || :;
2006-04-07 02:40:20 +00:00
fi;
fi
2006-04-07 02:40:20 +00:00
:;
%preun
if [ $1 -eq 0 ]; then
2006-04-07 02:40:20 +00:00
/sbin/service tog-pegasus stop >/dev/null 2>&1 || :;
/sbin/chkconfig --del tog-pegasus >/dev/null 2>&1 || :;
%if %{multilib}
if [ "$1" -eq 0 ]; then
/usr/sbin/alternatives --remove pegasus /usr/sbin/cimserver-64 >/dev/null 2>&1 || :;
/usr/sbin/alternatives --remove pegasus /usr/sbin/cimserver-32 >/dev/null 2>&1 || :;
fi
%endif
fi
2006-04-07 02:40:20 +00:00
:;
%postun -p /sbin/ldconfig
%post devel
if [ $1 -ge 0 ]; then
%{_datadir}/Pegasus/scripts/pegasus_arch_alternatives devel || :;
fi
:;
2006-04-07 02:40:20 +00:00
%preun devel
if [ $1 -eq 0 ] ; then
make --directory /usr/share/Pegasus/samples -s clean >/dev/null 2>&1 || :;
%if %{multilib}
/usr/sbin/alternatives --remove pegasus-devel %{_datadir}/Pegasus/samples/mak/config.mak-64 >/dev/null 2>&1 || :;
/usr/sbin/alternatives --remove pegasus-devel %{_datadir}/Pegasus/samples/mak/config.mak-32 >/dev/null 2>&1 || :;
%endif
fi
:;
%if %{PEGASUS_BUILD_TEST_RPM}
%if %{multilib}
%post test
if [ $1 -ge 0 ]; then
%{_datadir}/Pegasus/scripts/pegasus_arch_alternatives test || :;
2006-04-07 02:40:20 +00:00
fi
:;
2006-04-07 02:40:20 +00:00
%preun test
if [ $1 -eq 0 ]; then
%if %{multilib}
/usr/sbin/alternatives --remove pegasus-test %{_datadir}/Pegasus/test/Makefile-64 >/dev/null 2>&1 || :;
/usr/sbin/alternatives --remove pegasus-test %{_datadir}/Pegasus/test/Makefile-32 >/dev/null 2>&1 || :;
%endif
fi
:;
%endif
%endif
%changelog
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-07-21 11:06:35 +00:00
* Tue Jul 21 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.9.0-2
- Fix Group
2009-06-16 12:09:03 +00:00
* Mon Jun 16 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.9.0-1
- Update to upstream version 2.9.0
- Remove redhat-lsb requires
- Add README.RedHat.SSL
* Thu Apr 16 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-8
- Replace useradd '-n' option by '-N' ('-n' is obsolete)
Resolves: #495729
2009-03-03 16:37:42 +00:00
* Tue Mar 3 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-7
- Add noreplace to config files
2009-02-28 14:06:17 +00:00
* Sat Feb 28 2009 Caolán McNamara <caolanm@redhat.com> - 2:2.7.2-6
- fix elif
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.7.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-02 19:34:17 +00:00
* Mon Feb 02 2009 Dennis Gilmore < dennis@ausil.us> - 2:2.7.2-4
- apply sparc fixes
2009-01-18 13:43:15 +00:00
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 2:2.7.2-3
- rebuild with new openssl
* Tue Nov 11 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-2
- Fix local or remote auth patch to work correctly with new code base
Related: #459217
* Thu Nov 6 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.2-1
- Update to upstream version 2.7.2
(remove patches added in 2.7.1-1 - they're upstream now)
- Enable out-of-process providers
Resolves: #455109
2008-09-08 21:19:14 +00:00
* Mon Sep 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2:2.7.1-2
- fix license tag
* Tue Jul 15 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.1-1
- Update to upstream version 2.7.1
- Fix setElementAt() doesn't copy value of CMPI_char parameter
Resolves: #454589
- Fix CMPI MI factories that return errors are unsupported
Resolves: #454590
- Fix HTTP 401 responses lack Content-Length headers
Resolves: #454591
2008-07-01 12:34:14 +00:00
* Tue Jul 1 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-9
- Add SNMP indication handler to package
Resolves: #452930
2008-06-03 13:05:33 +00:00
* Tue Jun 3 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-8
- Add cimsub to package
Resolves: #447823
2008-05-15 11:53:32 +00:00
* Thu May 15 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-7
- Rebuild
2008-02-11 15:22:36 +00:00
* Mon Feb 11 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-6
- Rebuild
2008-01-21 14:51:46 +00:00
* Mon Jan 21 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-5
- No snmp tests in Test RPM
2008-01-10 12:05:13 +00:00
* Thu Jan 10 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-4
- Fix Test RPM
2007-12-05 12:39:39 +00:00
* Wed Dec 5 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-3
- Rebuild
* Fri Nov 23 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-2
- Fix OpenPegasus SRPM fails to build Test RPM
Resolves: #391961
* Mon Nov 19 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.7.0-1
2007-11-19 12:20:15 +00:00
- Update to upstream version 2.7.0
- Unhide some cmpi classes, package cmpi C++ headers
- Fix multiarch conflicts
Resolves: #343311
- Add libcmpiCppImpl.so (symlink to libcmpiCppImpl.so.1)
Resolves: #366871
* Tue Oct 9 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.6.1-2
- Fix files permissions
Resolves: #200906
* Thu Aug 30 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.6.1-1
- Update to 2.6.1
- Fix wrong init script (#245339)
* Wed Mar 28 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.6.0-2
2007-03-28 18:01:34 +00:00
- Update changelog
- Build with Open Pegasus' Makefiles, istall with Red Hats (Mark Hamzy)
2007-03-28 18:01:34 +00:00
* Mon Feb 26 2007 Mark Hamzy <hamzy@us.ibm.com> - 2:2.6.0-1
2007-03-12 10:43:45 +00:00
- Upgrade to upstream version 2.6.0
* Mon Dec 4 2006 Nalin Dahyabhai <nalin@redhat.com> - 2:2.5.2-3
- change requires: tog-pegasus to prereq: tog-pegasus so that the pegasus
user and group will exist when we go to lay down files for tog-pegasus-devel
(#218305)
- prereq the current version of openssl so that the right versions of
libssl and libcrypto will be available in %%post (possible for #208949)
2006-08-18 20:19:00 +00:00
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 2:2.5.2-2
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
(#203001)
* Thu Jul 27 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.2-1.fc6
- Upgrade to upstream version 2.5.2
- fix bug 198185
- fix bug 200246
2006-07-12 08:29:58 +00:00
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2:2.5.1-10.FC6.1
- rebuild
* Fri Jul 07 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.4.1-10
- More upstream 2.5.2_APPROVED bug fixes:
o 4629: Pegasus freezes when it is unable to send out completely, the results of a request
o 5073: Class Names on Reference, ReferenceNames, Assoc, AssocNames returned lower case
o 5090: cimserver crash on a request after attempting to unload idle CMPI providers
o 5180: OperationAggregate deleted in _enqueueResponse while member mutex held
* Fri Jun 09 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-8
- Fix bug 192754: remove multilib conflicts
- More upstream 2.5.2_APPROVED bug fixes:
o 5119: memory leak in CMPI implementation
o 5115: fix SetConfig_EnvVar comments
* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-6
- Apply upstream patches for latest 2.5.2_APPROVED bugs:
o 5046: cimprovider timeout needs to be increased
o 5047: cimmof timeout needs to be increased
o 5048: Invalid Pointer in CIMOperationRequestEncoder code
o 5049: Unnecessary dependency on experimental headers
o 5051: Improved handling of OOP indication provide module failures
o 5053: reserveCapacity method may cause size overflow
o 5059: XMLWriter does not escape '>' in strings
o 5072: Potential race condition with OOP response chunks
o 5083: CIMRequestMessage buildResponse() should be const
- Fix bug 193121: restore world read access to libraries
* Tue May 02 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-4
2009-06-16 12:09:03 +00:00
- fix bug 190432: %%exclude /usr/lib/debug from RPM
- fix upstream OpenPegasus '2.5.2_APPROVED' bugs, applying upstream patches:
o 4955 : Bogus Description property for OperatingSystem provider
o 4956 : reserveCapacity method may cause size overflow on invalid input
o 4968 : CMPI provider up-calls cause failure with out-of-process
o 4978 : snmpDeliverTrap_netsnmp::_createSession function is not thread safe
o 4983 : Memory leak in OOP indication generation
o 4984 : Forked process hangs in system call
o 4986 : Adding automated test for snmpIndication Handler
( http://cvs.opengroup.org/bugzilla/show_bug.cgi?id=? )
- apply upstream update to 'pegasus-2.5.1-warnings.patch'
2006-04-17 21:29:22 +00:00
* Mon Apr 17 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-3
- Fix repupgrade (make it use correct paths)
* Fri Apr 14 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-2
- Apply patches for the two '2.5.2_APPROVED' upstream bugzillas
4934(4943) and 4945 :
2009-06-16 12:09:03 +00:00
(http://cvs.opengroup.org/bugzilla/buglist.cgi?bug_id=4943%%2C4945)
- Fix the PATH_MAX and MAXHOSTNAMELEN issues (again)
2006-04-07 02:40:20 +00:00
* Thu Apr 06 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5.1-1
- Upgrade to version 2.5.1 (including new upstream .spec file).
2006-03-07 19:02:19 +00:00
* Tue Mar 7 2006 Bill Nottingham <notting@redhat.com> - 2:2.5-9
- use an assigned uid/gid, do not loop over user ids looking for a free one
2006-02-11 05:52:41 +00:00
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2:2.5-6.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-6
- restore SSLv23_method SSL support now that bug 173399 is fixed
- rebuild for new gcc, glibc, glibc-kernheaders
- PAMBasicAuthenticatorUnix.cpp includes no longer include syslog.h: add
- /usr/bin/install now decides to fail if chown fails - set $INSTALL_USER, $INSTALL_GROUP
2005-12-15 22:49:19 +00:00
* Thu Dec 15 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-5
- fix bug 175434 : deal with pegasus uid/gid already existing
on first install
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> - 2:2.5-4.1
2005-12-09 22:43:37 +00:00
- rebuilt
2005-12-15 22:49:19 +00:00
* Wed Nov 16 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-4
2005-11-16 23:21:43 +00:00
- fix bug 173401: SSL support broken by openssl-0.9.7g -> 0.9.8a upgrade
2005-12-15 22:49:19 +00:00
* Wed Nov 09 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-3
- Rebuild for new openssl dependencies
- Enable CMPI support for sblim-cmpi-base with ENABLE_CQL=true
2005-12-15 22:49:19 +00:00
* Mon Oct 31 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-2
- Add /usr/lib/cmpi alternate providerLibDir for sblim-cmpi-base Fedora Extras pkg
- Fix bug 171124: use numeric ids for pegasus user/group
- guidelines: do not remove pegasus user/group in %%postun.
* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
- use include instead of pam_stack in pam config
2005-12-15 22:49:19 +00:00
* Fri Sep 30 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-1
- Implemented new 'make install' target.
- Re-wrote tog-pegasus.spec file from scratch.
- Ported BZ 167986 authentication code and BZ 167164 + BZ 167165 fixes from RHEL-4
2005-08-18 03:18:18 +00:00
2005-12-15 22:49:19 +00:00
* Wed Sep 28 2005 Jason Vas Dias <jvdias@redhat.com> - 2:2.5-0
- Initial build.