]> granicus.if.org Git - libjpeg-turbo/commitdiff
Clean up pkgconfig dir when removing RPM & Mac pkg
authorDRC <information@libjpeg-turbo.org>
Sun, 14 Feb 2016 23:20:30 +0000 (17:20 -0600)
committerDRC <information@libjpeg-turbo.org>
Sun, 14 Feb 2016 23:20:30 +0000 (17:20 -0600)
release/libjpeg-turbo.spec.in
release/uninstall.in

index 74ee3004bcc500c94b81a70d32e0edb729f25f29..4b792d7a35af19920be9f2b7006834850a047c1b 100644 (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
index f167bbdf1e63c1b67efbca3bc81e386a6bb72262..6cd1f869493d81d12e8d5485b562f29bc945c0f6 100644 (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