Clean up pkgconfig dir when removing RPM & Mac pkg

This commit is contained in:
DRC
2016-02-14 17:20:30 -06:00
parent 18dcac4632
commit aefd8b7942
2 changed files with 5 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libjpeg.so.@SO_MAJOR_VERSION@
%{_libdir}/libjpeg.so
%{_libdir}/libjpeg.a
%{_libdir}/pkgconfig
%{_libdir}/pkgconfig/libjpeg.pc
%{_libdir}/libturbojpeg.so.0.1.0
%{_libdir}/libturbojpeg.so.0

View File

@@ -1,4 +1,4 @@
# Copyright (C)2009-2011, 2013 D. R. Commander. All Rights Reserved.
# Copyright (C)2009-2011, 2013, 2016 D. R. Commander. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -66,6 +66,9 @@ MANDIR=%{__mandir}
if [ -d $BINDIR ]; then
rmdir $BINDIR 2>&1 || EXITSTATUS=-1
fi
if [ -d $LIBDIR/pkgconfig ]; then
rmdir $LIBDIR/pkgconfig 2>&1 || EXITSTATUS=-1
fi
if [ -d $LIBDIR ]; then
rmdir $LIBDIR 2>&1 || EXITSTATUS=-1
fi