From e5a0d850e209b7c79562a392e7170c3c62617dde Mon Sep 17 00:00:00 2001 From: ellson Date: Sun, 23 Jan 2005 02:15:56 +0000 Subject: [PATCH] align graphviz.spec.in closer to Fedora's put back $(lefty_DATA) into EXTRA_DIST so that "make dist" works --- cmd/dotty/Makefile.am | 2 +- cmd/lefty/Makefile.am | 2 +- cmd/lefty/examples/Makefile.am | 2 + graphviz.spec.in | 76 ++++++++++++++++++++-------------- 4 files changed, 48 insertions(+), 34 deletions(-) diff --git a/cmd/dotty/Makefile.am b/cmd/dotty/Makefile.am index 0722c12e1..7ce20371e 100644 --- a/cmd/dotty/Makefile.am +++ b/cmd/dotty/Makefile.am @@ -19,7 +19,7 @@ dotty: $(top_srcdir)/cmd/dotty/dotty.sh .1.pdf: groff -Tps -man $< | ps2pdf - - >$@ -EXTRA_DIST = $(man) $(pdf) \ +EXTRA_DIST = $(lefty_DATA) $(man) $(pdf) \ dotty.bsh dotty.ksh dotty.sh \ Makefile.old notes mswin32 diff --git a/cmd/lefty/Makefile.am b/cmd/lefty/Makefile.am index b4c303d51..ecdfdbba1 100644 --- a/cmd/lefty/Makefile.am +++ b/cmd/lefty/Makefile.am @@ -42,7 +42,7 @@ lefty_LDADD = $(top_builddir)/cmd/lefty/dot2l/libdot2l.la \ .1.pdf: groff -Tps -man $< | ps2pdf - - >$@ -EXTRA_DIST = $(man) $(pdf) \ +EXTRA_DIST = $(lefty_DATA) $(man) $(pdf) \ colors.txt Makefile.old aix_mods DISTCLEANFILES = $(pdf) diff --git a/cmd/lefty/examples/Makefile.am b/cmd/lefty/examples/Makefile.am index 316f28d3a..b71d38ae8 100644 --- a/cmd/lefty/examples/Makefile.am +++ b/cmd/lefty/examples/Makefile.am @@ -4,3 +4,5 @@ leftydir = $(pkgdatadir)/lefty lefty_DATA = box.lefty def.lefty fractal.lefty fractal2.lefty \ slides.lefty tree.lefty + +EXTRA_DIST = $(lefty_DATA) diff --git a/graphviz.spec.in b/graphviz.spec.in index 950fac1d4..d316fd189 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -4,8 +4,9 @@ Summary: Graph Visualization Tools Name: graphviz Version: @VERSION@ Release: 1 -Group: Applications/Graphics -License: CPL (see COPYING) +Epoch: 0 +Group: Applications/Multimedia +License: CPL URL: http://www.graphviz.org/ Source: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz Packager: John Ellson (ellson@graphviz.org) @@ -34,16 +35,16 @@ A collection of tools and tcl packages for the manipulation and layout of graphs (as in nodes and edges, not as in barcharts). %package graphs -Group: Applications/Graphics +Group: Applications/Multimedia Summary: Demo graphs for %{name} %description graphs This package provides some example graphs for %{name}. %package tcl -Group: Applications/Graphics -Summary: Tcl extension tools for version %{version} of %{name} -Requires: %{name} = %{version}-%{release} +Group: Applications/Multimedia +Summary: Tcl extension tools for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} tcl >= 0:8.3 tk %description tcl The %{name}-tcl package contains the various tcl packages (extensions) @@ -75,8 +76,9 @@ The %{name}-doc package provides some additional PDF and HTML documentation for %ifarch %ix86 %define optflags -DNDEBUG -O3 -march=%{_target_cpu} -mcpu=i686 -ffast-math %endif -# configure is broken in RH7.3 rpmbuild - even in comments! -#configure --with-x +# %%configure is broken in RH7.3 rpmbuild - even in comments! +# need unreleased changes to gd, so use --with-mylibgd for now. +CFLAGS="$RPM_OPT_FLAGS" \ ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -86,32 +88,42 @@ The %{name}-doc package provides some additional PDF and HTML documentation for --mandir=%{_mandir} \ --with-x \ --disable-gvrender \ - --with-mylibgd + --with-mylibgd \ + --disable-dependency-tracking # need gd-2.0.29 commonly available in rpms before removing --enable-mylibgd %__make %{?_smp_mflags} %install -make DESTDIR="$RPM_BUILD_ROOT" install +rm -rf $RPM_BUILD_ROOT __doc +make \ + DESTDIR=$RPM_BUILD_ROOT \ + docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \ + pkgconfigdir=%{_libdir}/pkgconfig \ + transform='s,x,x,' \ + install +chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/* +cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/doc __doc +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc + +%clean +rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog NEWS +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/* +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/*.so.* +%{_mandir}/man1/*.1* %dir %{_datadir}/%{name} %{_datadir}/%{name}/lefty -%{_mandir}/man1/* -%dir %{_libdir}/%{name} -%{_libdir}/%{name}/lib*.so.* %exclude %{_libdir}/%{name}/lib*tcl*.so.* %exclude %{_libdir}/%{name}/libtk*.so.* - -%files graphs -%defattr(-,root,root) -%{_datadir}/%{name}/graphs +%exclude %{_bindir}/dotneato-config +%exclude %{_mandir}/man1/dotneato-config.1* %files tcl -%defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog +%defattr(-,root,root,-) %{_libdir}/%{name}/lib*tcl*.so.*.*.* %{_libdir}/%{name}/libtk*.so.*.*.* %{_libdir}/%{name}/pkgIndex.tcl @@ -119,22 +131,22 @@ make DESTDIR="$RPM_BUILD_ROOT" install %{_mandir}/mann/* %files devel -%defattr(-,root,root) -%doc AUTHORS COPYING +%defattr(-,root,root,-) +%{_bindir}/dotneato-config %{_includedir}/%{name} %{_libdir}/%{name}/*.*a %{_libdir}/%{name}/*.so -%dir %{_libdir}/pkgconfig %{_libdir}/pkgconfig/*.pc -%{_mandir}/man3/* +%{_mandir}/man1/dotneato-config.1* +%{_mandir}/man3/*.3* %exclude %{_libdir}/%{name}/lib*tcl*.* %exclude %{_libdir}/%{name}/libtk*.* -%files doc -%defattr(-,root,root) -%doc AUTHORS COPYING -%doc cpl1.0.txt -%{_datadir}/%{name}/doc +%files graphs +%defattr(-,root,root,-) +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/graphs -%clean -%__rm -rf "$RPM_BUILD_ROOT" +%files doc +%defattr(-,root,root,-) +%doc __doc/* -- 2.40.0