Clean up pkgconfig dir when removing RPM & Mac pkg
diff --git a/release/libjpeg-turbo.spec.in b/release/libjpeg-turbo.spec.in
index 74ee300..4b792d7 100644
--- a/release/libjpeg-turbo.spec.in
+++ b/release/libjpeg-turbo.spec.in
@@ -124,6 +124,7 @@
%{_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
diff --git a/release/uninstall.in b/release/uninstall.in
index f167bbd..6cd1f86 100644
--- a/release/uninstall.in
+++ b/release/uninstall.in
@@ -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 @@
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