- Merge with specfile from Paul F. Johnson
- Update
This commit is contained in:
parent
0aa119123d
commit
1814a23a83
@ -1 +1 @@
|
||||
graphviz-2.6.tar.gz
|
||||
graphviz-2.8.tar.gz
|
||||
|
382
graphviz.spec
382
graphviz.spec
@ -1,93 +1,73 @@
|
||||
# $Id: graphviz.spec.in,v 1.1 2005/08/13 12:58:55 ellson Exp $ $Revision: 1.1 $
|
||||
# $Id: graphviz.spec.in,v 1.68 2006/01/30 23:45:06 ellson Exp $ $Revision: 1.68 $
|
||||
# graphviz.spec. Generated from graphviz.spec.in by configure.
|
||||
|
||||
Summary: Graph Visualization Tools
|
||||
Name: graphviz
|
||||
# Note: graphviz requires gd with gif support (and other fixes), hence use
|
||||
# internal one for now.
|
||||
|
||||
Version: 2.6
|
||||
Release: 4%{?dist}
|
||||
# Define a default set incase none of the conditionals apply
|
||||
%define SHARP 0
|
||||
%define GUILE 0
|
||||
%define _IO 0
|
||||
%define JAVA 0
|
||||
%define LUA 0
|
||||
%define OCAML 0
|
||||
%define PERL 0
|
||||
%define PHP 0
|
||||
%define PYTHON 0
|
||||
%define RUBY 0
|
||||
%define TCL 1
|
||||
|
||||
Group: Applications/Multimedia
|
||||
License: CPL
|
||||
# Select packages according to dist (set in .rpmmacros on each build host)
|
||||
|
||||
URL: http://www.graphviz.org/
|
||||
Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz
|
||||
# These are all single line conditional blocks because older versions
|
||||
# of rpm can't handle multiline blocks/
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
%{?fc3: %{expand: %%define PERL 1}}
|
||||
%{?fc3: %{expand: %%define TCL 1}}
|
||||
|
||||
BuildRequires: zlib-devel libpng-devel libjpeg-devel expat-devel freetype-devel >= 2
|
||||
BuildRequires: /bin/ksh bison m4 flex tcl-devel >= 8.3 tk-devel swig
|
||||
BuildRequires: /usr/include/tcl.h /usr/include/tk.h
|
||||
BuildRequires: php-devel guile-devel
|
||||
BuildRequires: fontconfig-devel libtool-ltdl-devel
|
||||
BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel
|
||||
BuildRequires: libXt-devel libXmu-devel libXext-devel libX11-devel
|
||||
BuildRequires: ruby-devel
|
||||
Requires(post): %{_bindir}/dot
|
||||
Requires(postun): %{_bindir}/dot
|
||||
Requires: urw-fonts
|
||||
%{?fc4: %{expand: %%define GUILE 1}}
|
||||
%{?fc4: %{expand: %%define PERL 1}}
|
||||
%{?fc4: %{expand: %%define PYTHON 1}}
|
||||
%{?fc4: %{expand: %%define RUBY 1}}
|
||||
%{?fc4: %{expand: %%define TCL 1}}
|
||||
|
||||
%package tcl
|
||||
Summary: Tcl extension tools for %{name}
|
||||
Group: Applications/Multimedia
|
||||
Requires: %{name} = %{version}-%{release} tcl >= 8.3 tk
|
||||
%{?fc5: %{expand: %%define SHARP 1}}
|
||||
%{?fc5: %{expand: %%define GUILE 1}}
|
||||
%{?fc5: %{expand: %%define JAVA 1}}
|
||||
%{?fc5: %{expand: %%define LUA 1}}
|
||||
%{?fc5: %{expand: %%define OCAML 1}}
|
||||
%{?fc5: %{expand: %%define PERL 1}}
|
||||
%{?fc5: %{expand: %%define PHP 1}}
|
||||
%{?fc5: %{expand: %%define PYTHON 1}}
|
||||
%{?fc5: %{expand: %%define RUBY 1}}
|
||||
%{?fc5: %{expand: %%define TCL 1}}
|
||||
|
||||
%package devel
|
||||
Summary: Development package for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release} pkgconfig
|
||||
Summary: Graph Visualization Tools
|
||||
Name: graphviz
|
||||
Version: 2.8
|
||||
Release: 1%{?dist}
|
||||
Group: Applications/Multimedia
|
||||
License: CPL
|
||||
URL: http://www.graphviz.org/
|
||||
Source: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz
|
||||
%{?fc5:Requires: urw-fonts}
|
||||
%{?fc4:Requires: urw-fonts}
|
||||
%{?fc3:Requires: urw-fonts}
|
||||
|
||||
%package doc
|
||||
Summary: PDF and HTML documents for %{name}
|
||||
Group: Documentation
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%package graphs
|
||||
Summary: Demo graphs for %{name}
|
||||
Group: Applications/Multimedia
|
||||
BuildRequires: zlib-devel libpng-devel libjpeg-devel expat-devel freetype-devel >= 2
|
||||
BuildRequires: /bin/ksh bison m4 flex tk tcl >= 8.3 swig
|
||||
BuildRequires: tcl-devel tk-devel
|
||||
%{?fc5:BuildRequires: fontconfig-devel libtool-ltdl-devel}
|
||||
%{?fc5:BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel}
|
||||
%{?fc4:BuildRequires: fontconfig-devel xorg-x11-devel libtool-ltdl-devel}
|
||||
%{?fc3:BuildRequires: fontconfig-devel xorg-x11-devel}
|
||||
|
||||
%description
|
||||
A collection of tools and tcl packages for the manipulation and layout
|
||||
A collection of tools for the manipulation and layout
|
||||
of graphs (as in nodes and edges, not as in barcharts).
|
||||
|
||||
%description tcl
|
||||
Various tcl packages (extensions) for the %{name} tools.
|
||||
|
||||
%description devel
|
||||
A collection of tools and tcl packages for the manipulation and layout
|
||||
of graphs (as in nodes and edges, not as in barcharts).
|
||||
This package contains development files for %{name}.
|
||||
|
||||
%description doc
|
||||
Provides some additional PDF and HTML documentation for %{name}.
|
||||
|
||||
%description graphs
|
||||
Some demo graphs for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --with-x \
|
||||
--with-mylibgd \
|
||||
--disable-dependency-tracking \
|
||||
--disable-static
|
||||
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%{__make} DESTDIR=$RPM_BUILD_ROOT install
|
||||
# docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
|
||||
# pkgconfigdir=%{_libdir}/pkgconfig \
|
||||
# install
|
||||
|
||||
#chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/*
|
||||
mv $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 README
|
||||
@ -97,49 +77,271 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man1/*.1*
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/lefty
|
||||
#%exclude %{_libdir}/%{name}/lib*tcl*.so.*
|
||||
#%exclude %{_libdir}/%{name}/libtk*.so.*
|
||||
#%exclude %{_includedir}/ltdl*
|
||||
#%exclude %{_libdir}/libltdl*
|
||||
%exclude %{_libdir}/%{name}/*/*
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{SHARP}
|
||||
%package sharp
|
||||
Group: Applications/Multimedia
|
||||
Summary: C# extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description sharp
|
||||
C# extensions for %{name}.
|
||||
|
||||
%files sharp
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/sharp
|
||||
%{_libdir}/%{name}/sharp/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{GUILE}
|
||||
%package guile
|
||||
Group: Applications/Multimedia
|
||||
Summary: Guile extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description guile
|
||||
Guile extensions for %{name}.
|
||||
|
||||
%files guile
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/guile
|
||||
%{_libdir}/%{name}/guile/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{_IO}
|
||||
%package io
|
||||
Group: Applications/Multimedia
|
||||
Summary: Io extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description io
|
||||
Java extensions for %{name}.
|
||||
|
||||
%files io
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/io
|
||||
%{_libdir}/%{name}/io/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{JAVA}
|
||||
%package java
|
||||
Group: Applications/Multimedia
|
||||
Summary: Java extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description java
|
||||
Java extensions for %{name}.
|
||||
|
||||
%files java
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/java
|
||||
%{_libdir}/%{name}/java/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{LUA}
|
||||
%package lua
|
||||
Group: Applications/Multimedia
|
||||
Summary: Lua extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description lua
|
||||
Java extensions for %{name}.
|
||||
|
||||
%files lua
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/lua
|
||||
%{_libdir}/%{name}/lua/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{OCAML}
|
||||
%package ocaml
|
||||
Group: Applications/Multimedia
|
||||
Summary: Ocaml extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description ocaml
|
||||
Ocaml extensions for %{name}.
|
||||
|
||||
%files ocaml
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/ocaml
|
||||
%{_libdir}/%{name}/ocaml/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{PERL}
|
||||
%package perl
|
||||
Group: Applications/Multimedia
|
||||
Summary: Perl extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description perl
|
||||
Perl extensions for %{name}.
|
||||
|
||||
%files perl
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/perl
|
||||
%{_libdir}/%{name}/perl/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{PHP}
|
||||
%package php
|
||||
Group: Applications/Multimedia
|
||||
Summary: PHP extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description php
|
||||
PHP extensions for %{name}.
|
||||
|
||||
%files php
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/php
|
||||
%{_libdir}/%{name}/php/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{PYTHON}
|
||||
%package python
|
||||
Group: Applications/Multimedia
|
||||
Summary: Python extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description python
|
||||
Python extensions for %{name}.
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/python
|
||||
%{_libdir}/%{name}/python/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{RUBY}
|
||||
%package ruby
|
||||
Group: Applications/Multimedia
|
||||
Summary: Ruby extension for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description ruby
|
||||
Ruby extensions for %{name}.
|
||||
|
||||
%files ruby
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/%{name}/ruby
|
||||
%{_libdir}/%{name}/ruby/*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%if %{TCL}
|
||||
%package tcl
|
||||
Group: Applications/Multimedia
|
||||
Summary: Tcl extension & tools for %{name}
|
||||
Requires: %{name} = %{version}-%{release} tcl >= 8.3 tk
|
||||
|
||||
%description tcl
|
||||
Various tcl packages (extensions) for the %{name} tools.
|
||||
|
||||
%files tcl
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/%{name}/lib*tcl*.so.*.*
|
||||
%{_libdir}/%{name}/libtk*.so.*.*
|
||||
%dir %{_libdir}/%{name}/tcl
|
||||
%{_libdir}/%{name}/tcl/*
|
||||
%{_libdir}/%{name}/pkgIndex.tcl
|
||||
%{_datadir}/%{name}/demo
|
||||
%{_mandir}/mann/*.n*
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development package for %{name}
|
||||
Requires: %{name} = %{version}-%{release} pkgconfig
|
||||
|
||||
%description devel
|
||||
A collection of tools for the manipulation and layout
|
||||
of graphs (as in nodes and edges, not as in barcharts).
|
||||
This package contains development files for %{name}.
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/%{name}/*.la
|
||||
#%{_includedir}/ltdl.h
|
||||
#%{_libdir}/*.so*
|
||||
%{_libdir}/%{name}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_mandir}/man3/*.3*
|
||||
#%exclude %{_libdir}/%{name}/lib*tcl*.*
|
||||
#%exclude %{_libdir}/%{name}/libtk*.*
|
||||
%exclude %{_libdir}/%{name}/*/*
|
||||
#%exclude %{_libdir}/libltdl*
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%package graphs
|
||||
Group: Applications/Multimedia
|
||||
Summary: Demo graphs for %{name}
|
||||
|
||||
%description graphs
|
||||
Some demo graphs for %{name}.
|
||||
|
||||
%files graphs
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/graphs
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%package doc
|
||||
Group: Documentation
|
||||
Summary: PDF and HTML documents for %{name}
|
||||
|
||||
%description doc
|
||||
Provides some additional PDF and HTML documentation for %{name}.
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc __doc/*
|
||||
|
||||
#------------------------------------------------------------------
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT __doc
|
||||
%{__make} \
|
||||
DESTDIR=$RPM_BUILD_ROOT \
|
||||
docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
|
||||
pkgconfigdir=%{_libdir}/pkgconfig \
|
||||
install
|
||||
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
|
||||
find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
|
||||
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
|
||||
|
||||
# run "dot -c" to generate plugin config in %{_libdir}/%{name}/config
|
||||
%post
|
||||
%{_bindir}/dot -c
|
||||
|
||||
%post tcl
|
||||
%{_bindir}/dot -c
|
||||
|
||||
%post devel
|
||||
%{_bindir}/dot -c
|
||||
# if there is not dot after everything else is done, the remove config
|
||||
%postun
|
||||
if ! test -x %{_bindir}/dot; then rm -f %{_libdir}/%{name}/config; fi
|
||||
|
||||
%changelog
|
||||
* Wed Feb 22 2006 Oliver Falk <oliver@linux-kernel.at> - 2.8-1
|
||||
- Merge with specfile from Paul F. Johnson
|
||||
- Update
|
||||
|
||||
* Mon Feb 13 2006 Oliver Falk <oliver@linux-kernel.at> - 2.6-4
|
||||
- BR: ruby-devel
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user