version 1.125, 2010/07/01 12:03:18
|
version 1.128.2.2, 2012/02/15 17:47:01
|
|
|
| |
%define Flavor tog | %define Flavor tog |
%define packageVersion 1 | %define packageVersion 1 |
Version: 2.11.0 |
Version: 2.12.0 |
Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} | Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Epoch: 1 | Epoch: 1 |
| |
|
|
# Use "rpmbuild --define 'EXTERNAL_SLP_REQUESTED 1'" to include External SLP support. | # Use "rpmbuild --define 'EXTERNAL_SLP_REQUESTED 1'" to include External SLP support. |
%{?!EXTERNAL_SLP_REQUESTED: %define EXTERNAL_SLP_REQUESTED 0} | %{?!EXTERNAL_SLP_REQUESTED: %define EXTERNAL_SLP_REQUESTED 0} |
| |
|
# Use "rpmbuild --define 'PEGASUS_32BIT_PROVIDER_SUPPORT 1'" to build 32 bit |
|
# providers for 64 bit CIMOM. |
|
%{?!PEGASUS_32BIT_PROVIDER_SUPPORT: %define PEGASUS_32BIT_PROVIDER_SUPPORT 0} |
|
|
Summary: OpenPegasus WBEM Services for Linux | Summary: OpenPegasus WBEM Services for Linux |
Name: %{Flavor}-pegasus | Name: %{Flavor}-pegasus |
Group: Systems Management/Base | Group: Systems Management/Base |
|
|
Requires: libgcj, java-1.4.2-gcj-compat | Requires: libgcj, java-1.4.2-gcj-compat |
%endif | %endif |
%if %{EXTERNAL_SLP_REQUESTED} | %if %{EXTERNAL_SLP_REQUESTED} |
BuildRequires: libslp |
BuildRequires: openslp |
Requires: libslp |
Requires: openslp |
%endif | %endif |
| |
BuildRequires: net-snmp-devel | BuildRequires: net-snmp-devel |
|
|
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-requires.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-requires.spec |
# | # |
Requires: bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam | Requires: bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam |
#Requires: krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs |
#Requires: krb5-libs, chkconfig, SysVinit, bind-libs |
Requires: e2fsprogs, bind-utils, net-tools | Requires: e2fsprogs, bind-utils, net-tools |
Requires(post): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam | Requires(post): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam |
#Requires(post): krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs |
#Requires(post): krb5-libs, chkconfig, SysVinit, bind-libs |
Requires(post): e2fsprogs, bind-utils, net-tools | Requires(post): e2fsprogs, bind-utils, net-tools |
Requires(pre): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam | Requires(pre): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam |
#Requires(pre): krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs |
#Requires(pre): krb5-libs, chkconfig, SysVinit, bind-libs |
Requires(pre): e2fsprogs, bind-utils, net-tools | Requires(pre): e2fsprogs, bind-utils, net-tools |
Requires(postun): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam | Requires(postun): bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam |
#Requires(postun): krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs |
#Requires(postun): krb5-libs, chkconfig, SysVinit, bind-libs |
Requires(postun): e2fsprogs, bind-utils, net-tools | Requires(postun): e2fsprogs, bind-utils, net-tools |
Requires: net-snmp | Requires: net-snmp |
# | # |
|
|
# | # |
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec |
| |
|
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch-for-32bit-provider-support.spec |
|
# This is required only when PEGASUS_32BIT_PROVIDER_SUPPORT is set |
|
|
|
%if %{PEGASUS_32BIT_PROVIDER_SUPPORT} |
|
|
|
%ifarch x86_64 |
|
%global PEGASUS_HARDWARE_PLATFORM_FOR_32BIT LINUX_IX86_GNU |
|
%global PEGASUS_EXTRA_CXX_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wno-unused -m32" |
|
%global PEGASUS_EXTRA_LINK_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -march=i386 -mtune=generic -fasynchronous-unwind-tables -m32" |
|
%else |
|
%ifarch ppc64 pseries |
|
%global PEGASUS_HARDWARE_PLATFORM_FOR_32BIT LINUX_PPC_GNU |
|
%global PEGASUS_EXTRA_CXX_FLAGS_32BIT "-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -m32 -Wno-unused" |
|
%global PEGASUS_EXTRA_LINK_FLAGS_32BIT "-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -m32" |
|
%else |
|
%ifarch s390x zseries |
|
%global PEGASUS_HARDWARE_PLATFORM_FOR_32BIT LINUX_ZSERIES_GNU |
|
%global PEGASUS_EXTRA_CXX_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31 -Wno-unused" |
|
%global PEGASUS_EXTRA_LINK_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31" |
|
%endif |
|
%endif |
|
%endif |
|
|
|
%endif |
|
|
|
# |
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch-for-32bit-provider-support.spec |
|
|
%global PEGASUS_ARCH_LIB %{_lib} | %global PEGASUS_ARCH_LIB %{_lib} |
%global OPENSSL_HOME /usr | %global OPENSSL_HOME /usr |
%global OPENSSL_BIN /usr/bin | %global OPENSSL_BIN /usr/bin |
|
|
%global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus | %global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus |
%global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository | %global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository |
%global PEGASUS_SBIN_DIR /usr/sbin | %global PEGASUS_SBIN_DIR /usr/sbin |
%global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.11 |
%global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.12 |
| |
%global PEGASUS_RPM_ROOT $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION | %global PEGASUS_RPM_ROOT $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION |
%global PEGASUS_RPM_HOME %PEGASUS_RPM_ROOT/build | %global PEGASUS_RPM_HOME %PEGASUS_RPM_ROOT/build |
|
|
sed -i 's/PEGASUS_ENABLE_SLP=.*$/PEGASUS_ENABLE_SLP=false/' $PEGASUS_ENVVAR_FILE | sed -i 's/PEGASUS_ENABLE_SLP=.*$/PEGASUS_ENABLE_SLP=false/' $PEGASUS_ENVVAR_FILE |
%endif | %endif |
| |
|
%if %{PEGASUS_32BIT_PROVIDER_SUPPORT} |
|
sed -i 's/#PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT=.*$/PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT=%PEGASUS_HARDWARE_PLATFORM_FOR_32BIT/' $PEGASUS_ENVVAR_FILE |
|
%endif |
|
|
make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile | make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile |
make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude | make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude |
make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude | make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude |
make %{?_smp_mflags} -f $PEGASUS_ROOT/Makefile.Release all | make %{?_smp_mflags} -f $PEGASUS_ROOT/Makefile.Release all |
chmod 777 %PEGASUS_RPM_HOME | chmod 777 %PEGASUS_RPM_HOME |
make -f $PEGASUS_ROOT/Makefile.Release repository | make -f $PEGASUS_ROOT/Makefile.Release repository |
|
|
|
%if %{PEGASUS_32BIT_PROVIDER_SUPPORT} |
|
|
|
export PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT=%PEGASUS_HARDWARE_PLATFORM_FOR_32BIT |
|
export PEGASUS_EXTRA_C_FLAGS=%PEGASUS_EXTRA_CXX_FLAGS_32BIT |
|
export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS" |
|
export PEGASUS_EXTRA_LINK_FLAGS=%PEGASUS_EXTRA_LINK_FLAGS_32BIT |
|
|
|
make %{?_smp_mflags} -f $PEGASUS_ROOT/Makefile.cimprovagt32 all |
|
|
|
%endif |
|
|
# | # |
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec |
| |
|
|
PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR | PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR |
%endif | %endif |
| |
|
%if %{PEGASUS_32BIT_PROVIDER_SUPPORT} |
|
export PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT=%PEGASUS_HARDWARE_PLATFORM_FOR_32BIT |
|
export LD_LIBRARY_PATH=$PEGASUS_HOME/lib32 |
|
make -f $PEGASUS_ROOT/Makefile.cimprovagt32 stage \ |
|
PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR |
|
|
|
%endif |
|
|
[ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME; | [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME; |
# | # |
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec |
|
|
%PEGASUS_SBIN_DIR/cimserver -s | %PEGASUS_SBIN_DIR/cimserver -s |
fi | fi |
/sbin/chkconfig --del %{Flavor}-pegasus; | /sbin/chkconfig --del %{Flavor}-pegasus; |
rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf; |
rm -f %PEGASUS_CONFIG_DIR/cimserver_current.conf; |
[ -d %PEGASUS_REPOSITORY_DIR ] && rm -rf %PEGASUS_REPOSITORY_DIR; | [ -d %PEGASUS_REPOSITORY_DIR ] && rm -rf %PEGASUS_REPOSITORY_DIR; |
[ -d %PEGASUS_VARDATA_CACHE_DIR ] && rm -rf %PEGASUS_VARDATA_CACHE_DIR; | [ -d %PEGASUS_VARDATA_CACHE_DIR ] && rm -rf %PEGASUS_VARDATA_CACHE_DIR; |
rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH; | rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH; |
|
|
/usr/share/Pegasus/mof | /usr/share/Pegasus/mof |
| |
%defattr(600,root,pegasus,755) | %defattr(600,root,pegasus,755) |
%dir /usr/share/doc/tog-pegasus-2.11 |
%dir /usr/share/doc/tog-pegasus-2.12 |
%dir /usr/share/Pegasus | %dir /usr/share/Pegasus |
%dir /usr/share/Pegasus/scripts | %dir /usr/share/Pegasus/scripts |
%dir /var/lib/Pegasus | %dir /var/lib/Pegasus |
|
|
%dir %attr(755,root,pegasus) /etc/Pegasus | %dir %attr(755,root,pegasus) /etc/Pegasus |
%dir %attr(755,cimsrvr,cimsrvr) /var/run/tog-pegasus | %dir %attr(755,cimsrvr,cimsrvr) /var/run/tog-pegasus |
%dir %attr(1755,cimsrvr,cimsrvr) /var/run/tog-pegasus/socket | %dir %attr(1755,cimsrvr,cimsrvr) /var/run/tog-pegasus/socket |
%dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace |
%dir %attr(1777,cimsrvr,cimsrvr) /var/lib/Pegasus/cache/trace |
| |
%config %attr(750,root,pegasus) /etc/init.d/tog-pegasus | %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus |
%config(noreplace) %attr(644,root,root) /var/lib/Pegasus/cimserver_planned.conf |
%config(noreplace) %attr(644,root,root) /etc/Pegasus/cimserver_planned.conf |
%config(noreplace) /etc/Pegasus/access.conf | %config(noreplace) /etc/Pegasus/access.conf |
%config(noreplace) /etc/pam.d/wbem | %config(noreplace) /etc/pam.d/wbem |
| |
|
|
%endif | %endif |
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 | %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 |
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/*.so.1 | %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/*.so.1 |
|
%if %{PEGASUS_32BIT_PROVIDER_SUPPORT} |
|
%dir /usr/lib/Pegasus |
|
%dir /usr/lib/Pegasus/providers |
|
%dir /usr/lib/Pegasus/providerManagers |
|
%attr(755,root,pegasus) /usr/lib/*.so.1 |
|
%attr(755,root,pegasus) /usr/lib/Pegasus/providerManagers/*.so.1 |
|
/usr/lib/libpegclient.so |
|
/usr/lib/libpegcommon.so |
|
/usr/lib/libpegprovider.so |
|
/usr/lib/libDefaultProviderManager.so |
|
/usr/lib/Pegasus/providerManagers/libCMPIProviderManager.so |
|
%endif |
%attr(750,root,pegasus) /usr/share/Pegasus/scripts/* | %attr(750,root,pegasus) /usr/share/Pegasus/scripts/* |
%attr(644,root,pegasus) /usr/share/man/man1/* | %attr(644,root,pegasus) /usr/share/man/man1/* |
%attr(644,root,pegasus) /usr/share/man/man8/* | %attr(644,root,pegasus) /usr/share/man/man8/* |
| |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.11/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.12/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.11/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.12/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.11/license.txt |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.12/license.txt |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.11/OpenPegasusNOTICE.txt |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.12/OpenPegasusNOTICE.txt |
/usr/%PEGASUS_ARCH_LIB/libpegclient.so | /usr/%PEGASUS_ARCH_LIB/libpegclient.so |
/usr/%PEGASUS_ARCH_LIB/libpegcommon.so | /usr/%PEGASUS_ARCH_LIB/libpegcommon.so |
/usr/%PEGASUS_ARCH_LIB/libpegprovider.so | /usr/%PEGASUS_ARCH_LIB/libpegprovider.so |
|
|
%defattr(644,root,pegasus,755) | %defattr(644,root,pegasus,755) |
/usr/share/Pegasus/samples | /usr/share/Pegasus/samples |
/usr/include/Pegasus | /usr/include/Pegasus |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.11/SecurityGuidelinesForDevelopers.html |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.12/SecurityGuidelinesForDevelopers.html |
/usr/share/Pegasus/html | /usr/share/Pegasus/html |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |