Call ldconfig in %%post/%%postun of -libs subpackage, Move .so links to -devel subpackage

This commit is contained in:
Vitezslav Crhonek 2012-11-13 17:43:13 +01:00
parent 3d1fbb5659
commit d3193b83c4

View File

@ -8,7 +8,7 @@
Name: tog-pegasus Name: tog-pegasus
Version: %{major_ver}.0 Version: %{major_ver}.0
Release: 4%{?dist} Release: 5%{?dist}
Epoch: 2 Epoch: 2
Summary: OpenPegasus WBEM Services for Linux Summary: OpenPegasus WBEM Services for Linux
@ -316,10 +316,15 @@ popd
/usr/share/Pegasus/samples /usr/share/Pegasus/samples
/usr/include/Pegasus /usr/include/Pegasus
/usr/share/Pegasus/html /usr/share/Pegasus/html
%{_libdir}/*.so
%{_libdir}/Pegasus/providerManagers/*.so
%{_libdir}/Pegasus/providers/*.so
%files libs %files libs
%defattr(0755, root, pegasus, 0750) %defattr(0755, root, pegasus, 0750)
%{_libdir}/* %{_libdir}/*.so.*
%{_libdir}/Pegasus/providerManagers/*.so.*
%{_libdir}/Pegasus/providers/*.so.*
%exclude /usr/lib/debug %exclude /usr/lib/debug
%if %{PEGASUS_BUILD_TEST_RPM} %if %{PEGASUS_BUILD_TEST_RPM}
@ -391,22 +396,7 @@ fi
/sbin/ldconfig /sbin/ldconfig
%systemd_postun_with_restart tog-pegasus.service %systemd_postun_with_restart tog-pegasus.service
%preun devel %post devel
if [ $1 -eq 0 ] ; then
make --directory /usr/share/Pegasus/samples -s clean >/dev/null 2>&1 || :;
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 || :;
fi
:;
%post libs
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
# Create Symbolic Links for SDK Libraries # Create Symbolic Links for SDK Libraries
# #
@ -442,8 +432,33 @@ if [ $1 -eq 1 ]; then
fi fi
:; :;
%preun devel
if [ $1 -eq 0 ] ; then
make --directory /usr/share/Pegasus/samples -s clean >/dev/null 2>&1 || :;
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 || :;
fi
:;
%post libs
/sbin/ldconfig
%postun libs
/sbin/ldconfig
%changelog %changelog
* Tue Nov 13 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-5
- Call ldconfig in %%post/%%postun of -libs subpackage
- Move .so links to -devel subpackage
* Wed Oct 24 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-4 * Wed Oct 24 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-4
- Fix CMPI enumGetNext function to change CMPI Data state from default CMPI_nullValue - Fix CMPI enumGetNext function to change CMPI Data state from default CMPI_nullValue
to CMPI_goodValue when it finds and returns next instance correctly to CMPI_goodValue when it finds and returns next instance correctly