]> granicus.if.org Git - graphviz/commitdiff
Teach "make uninstall" and "rpm -e" to remove any /usr/lib/graphviz/config
authorellson <devnull@localhost>
Sun, 25 Dec 2005 13:40:20 +0000 (13:40 +0000)
committerellson <devnull@localhost>
Sun, 25 Dec 2005 13:40:20 +0000 (13:40 +0000)
cmd/dot/Makefile.am
graphviz.spec.in

index 4d2f5b8adc8c0d31562d32d7c10bea4e722d45a6..c3f84c557c26beb1fcc2f88f62dc0f3ffa74c5b8 100644 (file)
@@ -38,6 +38,7 @@ uninstall-hook:
        (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)
        (cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; done;)
        (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; done;)
+       (cd $(DESTDIR)$(libdir); rm -f config; done;)
 
 dot.pdf: $(top_srcdir)/cmd/dot/dot.1
        groff -Tps -man $(top_srcdir)/cmd/dot/dot.1 | ps2pdf - - >$@
index eb44463e1f978ea4e02da876b625f80613d04689..9aa9be8f6a2a0b72d8fe16c85536647c9f8a1671 100644 (file)
@@ -405,6 +405,9 @@ rm -rf $RPM_BUILD_ROOT
 %post
 %{_bindir}/dot -c
 
+%postun
+rm -f %{_libdir}/%{name}/config
+
 %changelog
 * Tue Sep 13 2005 John Ellson <ellson@research.att.com>
 - split out language bindings into their own rpms so that