version 1.105, 2007/10/01 20:47:31
|
version 1.106, 2007/10/05 18:46:43
|
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec |
| |
%preun devel | %preun devel |
|
# Check if the SDK has been setup |
|
if [ -f /usr/share/Pegasus/samples/SDKIsSetup ]; then |
|
make --directory /usr/share/Pegasus/samples -s unsetupSDK |
|
if [ $? != 0 ]; then |
|
echo "++++++++++++++++++++++++++++++++++++++++++++++" >&2 |
|
echo "ERROR: Failed to deregister sample providers." >&2 |
|
echo "To remove the SDK rpm without deregistering" >&2 |
|
echo "the sample providers, first remove file" >&2 |
|
echo "/usr/share/Pegasus/samples/SDKIsSetup," >&2 |
|
echo "then remove SDK rpm." >&2 |
|
echo "++++++++++++++++++++++++++++++++++++++++++++++" >&2 |
|
exit 1 |
|
fi |
|
fi |
make --directory /usr/share/Pegasus/samples -s clean | make --directory /usr/share/Pegasus/samples -s clean |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |