Репозиторий Sisyphus
Последнее обновление: 14 апреля 2021 | Пакетов: 17839 | Посещений: 20714042
en ru br
Репозитории ALT
5.1: 2.22.2-alt2.2
4.1: 2.20.3-alt0.M41.1
4.0: 2.2.1-alt2
3.0: 2.2.1-alt1

Другие репозитории

Группа :: Издательство
Пакет: graphviz

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: graphviz
Version: 2.20.3
Release: alt0.M41.1

Summary: Graphs visualization tools
License: Common Public License 1.0
Group: Publishing

# Git: http://www.graphviz.org/pub/scm/graphviz2/.git

Url: http://www.graphviz.org
Source: %url/pub/graphviz/ARCHIVE/%name-%version.tar.gz
Source1: %name-2.2-alt-libpath.patch
Patch1: %name.as-needed.patch
Patch2: %name.as-needed.2.patch
Packager: Michael Shigorin <mike at altlinux.org>

Requires: lib%name = %version-%release
Provides: libdotneato = %version-%release
Obsoletes: libdotneato

# Automatically added by buildreq on Thu Feb 14 2008 (-bi)

BuildRequires: flex gcc-c++ imake libXaw-devel libexpat-devel libgd2-devel libltdl-devel libpango-devel tk-devel xorg-cf-files

BuildRequires: flex fontconfig-devel freetype2-devel gcc-c++ gd2-utils libexpat-devel libgd2-devel libjpeg-devel libpng-devel libstdc++-devel tcl-devel tk-devel xorg-x11-devel zlib-devel
BuildRequires: swig

%{?_enable_lua:BuildRequires: liblua5-devel}

%define gvlibdir %_libdir/%name
%define gvdatadir %_datadir/%name

%set_verify_elf_method unresolved=relaxed
%add_findreq_skiplist %gvdatadir/demo/*.pl
%add_findreq_skiplist %gvdatadir/demo/*.tcl

# help is welcome to re-enable, fix packaging and test

%def_disable lua
%def_disable ocaml
%def_disable php
%def_disable python
%def_disable ruby

%name is a set of graph drawing tools for Un*x or MS-Wind*ws (win32).
Source code and binary executables for common platforms are available.

Graph drawing addresses the problem of visualizing structural information by
constructing geometric representations of abstract graphs and networks.
Automatic generation of graph drawings has important applications in key
technologies such as database design, software engineering, VLSI and network
design and visual interfaces in other domains.

# {{{ subpackages

%package -n lib%name
Summary: Shared libraries for %name
Group: System/Libraries

%description -n lib%name
This package includes shared libraries for %name

%package -n lib%name-devel
Summary: Header files and C programming manual for %name
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel < 2.16.1

%description -n lib%name-devel
This package includes header files for %name

%package doc
Summary: Documentation for %name
Group: Publishing
Requires: %name = %version-%release

%description doc
This package contains most of documentation for %name

%package graphs
Summary: Demo graphs for graphviz
Group: Graphics
Requires: %name = %version-%release

%description graphs
This package provides some example graphs for %name.

%if_enabled lua
%package lua
Summary: Lua bindings to %name
Group: Development/Other
Requires: %name = %version-%release

%description lua
This package makes %name functionality accessible from Lua

%package perl
Summary: Perl bindings to %name
Group: Development/Perl
Requires: %name = %version-%release

%description perl
This package makes %name functionality accessible from Perl

%if_enabled python
%package python
Summary: Python bindings to %name
Group: Development/Python
Requires: %name = %version-%release

%description python
This package makes %name functionality accessible from Python

%package ruby
Summary: Ruby bindings to %name
Group: Development/Ruby
Requires: %name = %version-%release

%description ruby
This package makes %name functionality accessible from Ruby

%package tcl
Summary: Tcl bindings to %name
Group: Development/Tcl
Requires: tcl >= 8.4.0-alt1
Provides: tcl-tkspline = %version-%release
Provides: tcl-gd = %version-%release
Obsoletes: tcl-gd <= 2.16.1-alt1
Obsoletes: tcl-tkspline <= 2.16.1-alt1

%description tcl
This package makes %name functionality accessible from Tcl

# }}}


%add_optflags -DNDEBUG %optflags_fastmath
%configure \
--disable-static \
--with-pangocairo \
--with-x \
--without-gdk-pixbuf \
--without-gnomeui \
--without-gtk \
--without-ipsepcola \
--enable-guile \
%{subst_enable lua } \
%{subst_enable ocaml } \
%{subst_enable php } \
%{subst_enable python } \
%{subst_enable ruby } \
--enable-tcl \
--disable-java \
--disable-sharp \

# SMP-incompatible


#make_install DESTDIR=%buildroot install -C dotneato/gvrender
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_defaultdocdir
mv %buildroot%gvdatadir/doc %buildroot%_defaultdocdir/%name-%version
mkdir -p -m 0755 %buildroot%_tcldatadir/{%name,gd,tkspline}
cat <<EOF > %buildroot%_tcldatadir/gd/pkgIndex.tcl
package ifneeded Gdtclft %version "load [file join \$dir .. .. .. lib tcl libgdtclft.so.0] Gdtclft"
cat <<EOF > %buildroot%_tcldatadir/%name/pkgIndex.tcl
package ifneeded Tcldot %version "load [file join \$dir .. .. .. lib tcl libtcldot.so.0] Tcldot"
package ifneeded Tclpathplan %version "load [file join \$dir .. .. .. lib tcl libtclplan.so.0] Tclpathplan"
cat <<EOF > %buildroot%_tcldatadir/tkspline/pkgIndex.tcl
package ifneeded Tkspline %version "
package require Tk 8.3
       load [file join \$dir .. .. .. lib tcl libtkspline.so.0] Tkspline"
# created by %_bindir/dot -c
touch %buildroot%gvlibdir/config

rm -f %buildroot%gvlibdir/*/lib*.la
rm -f %buildroot%gvlibdir/libgvplugin_*.la

[ ! -x %_bindir/dot ] || %_bindir/dot -c >&/dev/null

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%dir %gvdatadir/
%ghost %gvlibdir/config
%doc AUTHORS COPYING cpl1.0.txt ChangeLog NEWS

%files -n lib%name
%dir %gvlibdir/

%files -n lib%name-devel

%files doc
%exclude %_defaultdocdir/%name-%version/AUTHORS
%exclude %_defaultdocdir/%name-%version/COPYING
%exclude %_defaultdocdir/%name-%version/cpl1.0.txt
%exclude %_defaultdocdir/%name-%version/ChangeLog
%exclude %_defaultdocdir/%name-%version/NEWS

%files graphs

%if_enabled lua
%files lua
%dir %gvlibdir/lua/

%files perl
%dir %gvlibdir/perl/

%if_enabled python
%files python
%dir %gvlibdir/python*/

%if_enabled ruby
%files ruby
%dir %gvlibdir/ruby/

%files tcl
%dir %gvlibdir/tcl/


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin