]>
Commit | Line | Data |
---|---|---|
18093490 | 1 | Summary: A CGI graph server script that uses tcldot utility |
bb4502fc | 2 | Summary(pl.UTF-8): Skrypt serwerowy CGI do grafów używający narzędzia tcldot |
18093490 | 3 | Name: webdot |
b0309102 | 4 | Version: 2.30 |
4bb41cde | 5 | Release: 1 |
18093490 JB |
6 | Group: Applications/Graphics |
7 | License: BSD-like | |
caac5ade | 8 | Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz |
b0309102 | 9 | # Source0-md5: fb31bc9de763b3797cb5b088b90e101f |
18093490 JB |
10 | Patch0: %{name}-status.patch |
11 | URL: http://www.graphviz.org/ | |
12495da8 | 12 | Requires: filesystem >= 3.0-11 |
18093490 JB |
13 | # it wants to open "Times" font by filename |
14 | Requires: fonts-TTF-microsoft | |
b0309102 | 15 | Requires: tcl-graphviz >= 2.30 |
18093490 JB |
16 | Requires: ghostscript |
17 | Requires: tcl | |
18 | Requires: webserver | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
54f07ec8 JB |
22 | %define appdir %{_datadir}/webdot |
23 | %define cgibindir %{_prefix}/lib/cgi-bin | |
18093490 | 24 | %define cachedir /var/cache/webdot |
048ae1b7 | 25 | %define tcldotlib /usr/%{_lib}/graphviz/libtcldot.so |
18093490 JB |
26 | |
27 | %description | |
28 | A cgi-bin program that produces clickable graphs in web pages when | |
29 | provided with an href to a .dot file. Uses Tcldot from the | |
30 | graphviz-tcl package. | |
31 | ||
ab987116 JR |
32 | %description -l pl.UTF-8 |
33 | webdot to program CGI tworzący klikalne grafy na stronach WWW kiedy | |
34 | href wskazuje na plik .dot. Używa Tcldot z pakietu graphviz-tcl. | |
18093490 JB |
35 | |
36 | %prep | |
37 | %setup -q | |
e68b29a0 | 38 | %patch0 -p1 |
18093490 JB |
39 | |
40 | find . -type d -name CVS | xargs rm -rf | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
54f07ec8 JB |
44 | install -d $RPM_BUILD_ROOT{%{cgibindir},%{appdir},%{cachedir}} |
45 | cp -r html/webdot/* $RPM_BUILD_ROOT%{appdir} | |
18093490 JB |
46 | |
47 | cat > $RPM_BUILD_ROOT%{cgibindir}/webdot <<'EOF' | |
48 | #!/usr/bin/tclsh | |
49 | set LIBTCLDOT %{tcldotlib} | |
50 | set CACHE_ROOT %{cachedir} | |
51 | set GS /usr/bin/gs | |
52 | set PS2EPSI /usr/bin/ps2epsi | |
53 | set LOCALHOSTONLY 1 | |
54 | EOF | |
55 | cat cgi-bin/webdot >> $RPM_BUILD_ROOT%{cgibindir}/webdot | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc AUTHORS CHANGES COPYING README | |
63 | %attr(755,root,root) %{cgibindir}/webdot | |
54f07ec8 | 64 | %{appdir} |
18093490 | 65 | %attr(770,root,http) %{cachedir} |