|
|
|
@ -3,12 +3,10 @@
|
|
|
|
|
|
|
|
|
|
%global srcname pegasus
|
|
|
|
|
%global major_ver 2.14
|
|
|
|
|
%global pegasus_gid 65
|
|
|
|
|
%global pegasus_uid 66
|
|
|
|
|
|
|
|
|
|
Name: tog-pegasus
|
|
|
|
|
Version: %{major_ver}.1
|
|
|
|
|
Release: 64%{?dist}
|
|
|
|
|
Release: 76%{?dist}
|
|
|
|
|
Epoch: 2
|
|
|
|
|
Summary: OpenPegasus WBEM Services for Linux
|
|
|
|
|
|
|
|
|
@ -38,6 +36,8 @@ Source10: generate-certs
|
|
|
|
|
Source11: snmptrapd.conf
|
|
|
|
|
# 12: repupgrade man page based on pegasus/src/Clients/repupgrade/doc/repupgrade.html
|
|
|
|
|
Source12: repupgrade.1.gz
|
|
|
|
|
# 13: sysusers conf file for dynamic creation of the 'pegasus' user and group
|
|
|
|
|
Source13: tog-pegasus.sysusers
|
|
|
|
|
|
|
|
|
|
# 1: http://cvs.rdg.opengroup.org/bugzilla/show_bug.cgi?id=5011
|
|
|
|
|
# Removing insecure -rpath
|
|
|
|
@ -104,8 +104,12 @@ Patch43: pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch
|
|
|
|
|
Patch44: pegasus-2.14.1-crypto-policy-compliance.patch
|
|
|
|
|
# 45: add required lib to fix FTBS
|
|
|
|
|
Patch45: pegasus-2.14.1-add-pegwsmserver-to-ldd-libs.patch
|
|
|
|
|
# 46: Remove DES support.
|
|
|
|
|
Patch46: pegasus-snmp-disable-des.patch
|
|
|
|
|
# 46: fixes FTBFS
|
|
|
|
|
Patch46: pegasus-2.14.1-build-fixes-2.patch
|
|
|
|
|
# 47: disable DES no longer supported in net-snmp
|
|
|
|
|
Patch47: pegasus-2.14.1-snmp-disable-des.patch
|
|
|
|
|
# 48: add RISC-V support
|
|
|
|
|
Patch48: add-riscv64-support.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: procps, libstdc++, pam-devel
|
|
|
|
|
BuildRequires: openssl, openssl-devel
|
|
|
|
@ -113,7 +117,7 @@ BuildRequires: bash, sed, grep, coreutils, procps, gcc, gcc-c++
|
|
|
|
|
BuildRequires: libstdc++, make, pam-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: net-snmp-devel, openslp-devel
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
BuildRequires: systemd-units systemd-rpm-macros
|
|
|
|
|
Requires: net-snmp-libs
|
|
|
|
|
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: openssl
|
|
|
|
@ -131,8 +135,7 @@ sources.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: The OpenPegasus Software Development Kit
|
|
|
|
|
Requires: tog-pegasus >= %{version}-%{release}
|
|
|
|
|
Obsoletes: tog-pegasus-sdk
|
|
|
|
|
Requires: tog-pegasus >= %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
|
|
|
|
@ -153,7 +156,7 @@ The OpenPegasus libraries.
|
|
|
|
|
%if %{PEGASUS_BUILD_TEST_RPM}
|
|
|
|
|
%package test
|
|
|
|
|
Summary: The OpenPegasus Tests
|
|
|
|
|
Requires: tog-pegasus >= %{version}-%{release}, make
|
|
|
|
|
Requires: tog-pegasus >= %{epoch}:%{version}-%{release}, make
|
|
|
|
|
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description test
|
|
|
|
@ -197,6 +200,9 @@ The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
%global PEGASUS_HARDWARE_PLATFORM LINUX_AARCH64_GNU
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch riscv64
|
|
|
|
|
%global PEGASUS_HARDWARE_PLATFORM LINUX_RISCV64_GNU
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global PEGASUS_ARCH_LIB %{_lib}
|
|
|
|
|
%global OPENSSL_HOME /usr
|
|
|
|
@ -259,7 +265,9 @@ yes | mak/CreateDmtfSchema 238 %{SOURCE9} cim_schema_2.38.0
|
|
|
|
|
%patch43 -p1 -b .Wreserved-user-defined-literal-fix
|
|
|
|
|
%patch44 -p1 -b .crypto-policy-compliance
|
|
|
|
|
%patch45 -p1 -b .add-pegwsmserver-to-ldd-libs
|
|
|
|
|
%patch46 -p1 -b .snmp-disable-des
|
|
|
|
|
%patch46 -p1 -b .build-fixes-2
|
|
|
|
|
%patch47 -p1 -b .snmp-disable-des
|
|
|
|
|
%patch48 -p1 -b .add-riscv64-support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -366,6 +374,9 @@ install -p Schemas/CIM238/DMTF/Core/CIM_AbstractComponent.mof $RPM_BUILD_ROOT/us
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|
|
|
|
cp %SOURCE12 ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
# install sysusers conf file
|
|
|
|
|
install -p -D -m 0644 %{SOURCE13} %{buildroot}%{_sysusersdir}/tog-pegasus.conf
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# run unit tests
|
|
|
|
|
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/%{_lib}
|
|
|
|
@ -438,8 +449,10 @@ rm $RPM_BUILD_ROOT/usr/share/Pegasus/test/testtracer4.trace.0
|
|
|
|
|
/usr/share/Pegasus/html
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{_sysusersdir}/tog-pegasus.conf
|
|
|
|
|
%defattr(0755, root, pegasus, 0755)
|
|
|
|
|
%{_libdir}/*
|
|
|
|
|
%{_libdir}/*.so*
|
|
|
|
|
%{_libdir}/Pegasus
|
|
|
|
|
%exclude /usr/lib/debug
|
|
|
|
|
%exclude /usr/lib/systemd
|
|
|
|
|
%exclude %{_tmpfilesdir}
|
|
|
|
@ -513,9 +526,9 @@ fi
|
|
|
|
|
%pre libs
|
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
|
# first install: create the 'pegasus' user and group:
|
|
|
|
|
/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 \
|
|
|
|
|
-c "tog-pegasus OpenPegasus WBEM/CIM services" pegasus >/dev/null 2>&1 || :;
|
|
|
|
|
{
|
|
|
|
|
%sysusers_create_compat %{SOURCE13}
|
|
|
|
|
} >/dev/null 2>&1 || :;
|
|
|
|
|
fi
|
|
|
|
|
:;
|
|
|
|
|
|
|
|
|
@ -561,29 +574,66 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 01 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-64
|
|
|
|
|
- Fix build flags
|
|
|
|
|
Resolves: #2044895
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2:2.14.1-76
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2024 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-75
|
|
|
|
|
- Add epoch prefix to version-release in requires
|
|
|
|
|
- Add rpminspect.yaml to adjust configuration for rpminspect run
|
|
|
|
|
Resolves: RHEL-56884
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2:2.14.1-74
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 01 2024 misaka00251 <liuxin@iscas.ac.cn> - 2:2.14.1-73
|
|
|
|
|
- Add riscv64 support
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-72
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-71
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.14.1-70
|
|
|
|
|
- SPDX migration
|
|
|
|
|
- Remove -devel Obsoletes
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-69
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 23 2022 Florian Weimer <fweimer@redhat.com> - 2:2.14.1-68
|
|
|
|
|
- Avoid tog-pegasus-libs file conflict on i686 (#2145172)
|
|
|
|
|
|
|
|
|
|
* Tue Aug 02 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-67
|
|
|
|
|
- Use systemd-sysusers for the 'pegasus' user and group creation
|
|
|
|
|
Resolves: #2095477
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-66
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 31 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-65
|
|
|
|
|
- Fix preun systemd macro call
|
|
|
|
|
Resolves: #2048002
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2:2.14.1-63
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Mon Jan 24 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-64
|
|
|
|
|
- Fix build flags
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-63
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.14.1-62
|
|
|
|
|
- Improve error message without DES support in SNMP
|
|
|
|
|
Resolves: rhbz#1972623
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2:2.14.1-62
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Florian Weimer <fweimer@redhat.com> - 2:2.14.1-61
|
|
|
|
|
- Port to net-snmp without DES support (#1958073)
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-61
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:2.14.1-60
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
* Wed Jun 23 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.14.1-60
|
|
|
|
|
- Fix build issues
|
|
|
|
|
- Reflect disabling of DES in net-snmp
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:2.14.1-59
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2:2.14.1-59
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.14.1-58
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|