]> granicus.if.org Git - graphviz/commitdiff
per frequent requests, most recently from Debian,
authorellson <devnull@localhost>
Tue, 26 Sep 2006 16:47:54 +0000 (16:47 +0000)
committerellson <devnull@localhost>
Tue, 26 Sep 2006 16:47:54 +0000 (16:47 +0000)
move shared libs to $PREFIX/lib   (from $PREFIX/graphviz/lib)
libcdt, libgraph, libagraph, libgvc, libpack, libexpr, libpathplan
add missing .3 and .pc

graphviz.spec.in
lib/agraph/Makefile.am

index 0651719af5b7f413adb3e9ea0f9724bc8df787e5..756dc1a9dbc4863420eea7025f962c7eae07d009 100644 (file)
@@ -125,6 +125,7 @@ of graphs (as in nodes and edges, not as in barcharts).
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_bindir}/*
 %dir %{_libdir}/graphviz
+%{_libdir}/*.so.*
 %{_libdir}/graphviz/*.so.*
 %{_mandir}/man1/*.1*
 %dir %{_datadir}/graphviz
@@ -134,9 +135,9 @@ of graphs (as in nodes and edges, not as in barcharts).
 
 # run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
 %post
-LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib}/graphviz $RPM_INSTALL_PREFIX0/bin/dot -c
+LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib}/graphviz:$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
 
-# if there is not dot after everything else is done, the remove config
+# if there is no dot after everything else is done, the remove config
 %postun
 if ! test -x $RPM_INSTALL_PREFIX0/bin/dot; then rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/config; fi
 
index c1bee5fe51fcc43d8aa86a71c790c639fcfb2c16..9b21b8cd245b8f848519bb30028269679828e2e6 100644 (file)
@@ -4,19 +4,16 @@
 pdfdir = $(pkgdatadir)/doc/pdf
 pkgconfigdir = $(libdir)/pkgconfig
 
-pdf = agraph.pdf
-man = agraph.3
-
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -I$(top_srcdir)/lib/cdt
 
 pkginclude_HEADERS = aghdr.h agraph.h malloc.h vmstub.h grammar.h
 noinst_LTLIBRARIES = libagraph_C.la
-pkglib_LTLIBRARIES = libagraph.la
+lib_LTLIBRARIES = libagraph.la
 pkgconfig_DATA = libagraph.pc
-man_MANS = $(man)
-pdf_DATA = $(pdf)
+man_MANS = agraph.3
+pdf_DATA = agraph.pdf
 
 libagraph_C_la_SOURCES = agerror.c apply.c attr.c \
        edge.c flatten.c grammar.y graph.c id.c imap.c io.c \
@@ -46,8 +43,8 @@ grammar.h: y.output
 .3.pdf:
        -groff -Tps -man $< | ps2pdf - - >$@
 
-EXTRA_DIST = $(man) $(pdf) Makefile.old cmpnd.c dotdge.c \
+EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old cmpnd.c dotdge.c \
        main.c tester.c README grammar.c grammar.h scan.c \
        y.tab.c y.tab.h y.output
 
-DISTCLEANFILES = $(pdf) grammar.[ch] scan.c y.output y.tab.[ch]
+DISTCLEANFILES = $(pdf_DATA) grammar.[ch] scan.c y.output y.tab.[ch]