]>
Commit | Line | Data |
---|---|---|
958bf321 | 1 | Summary: A Graphviz to LaTeX converter |
d79e408a | 2 | Summary(hu.UTF-8): Egy Graphviz-ből LaTeX-be konvertáló program |
958bf321 MB |
3 | Summary(pl.UTF-8): Konwerter plików Graphviza do LaTeXa |
4 | Name: dot2tex | |
d79e408a | 5 | Version: 2.8.6 |
958bf321 MB |
6 | Release: 1 |
7 | License: MIT | |
8 | Group: Applications | |
9 | Source0: http://dot2tex.googlecode.com/files/%{name}-%{version}.tar.gz | |
d79e408a | 10 | # Source0-md5: 8af7c44ea6484d47faee31cacbad9206 |
958bf321 MB |
11 | URL: http://www.fauskes.net/code/dot2tex/ |
12 | BuildRequires: python >= 1:2.5 | |
13 | BuildRequires: rpm-pythonprov | |
14 | Requires: graphviz | |
15 | Requires: python-pyparsing >= 1.4.8 | |
4ed13a3b | 16 | Requires: texlive-latex |
958bf321 MB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | dot2tex is a tool for converting graphs rendered by Graphviz to | |
21 | formats that can be used with LaTeX. | |
22 | ||
d79e408a ZU |
23 | %description -l hu.UTF-8 |
24 | dot2tex egy eszköz, amellyel a Graphviz által feldolgozandó gráfokat | |
25 | LaTeX-ben használható formátumokba alakít. | |
26 | ||
958bf321 MB |
27 | %description -l pl.UTF-8 |
28 | dot2tex jest narzędziem do konwertowania grafów stworzonych przez | |
29 | Graphviza do formatów, które mogą być użyte z LaTeXem. | |
30 | ||
31 | %package doc | |
32 | Summary: dot2tex documentation | |
d79e408a | 33 | Summary(hu.UTF-8): dot2tex dokumentáció |
958bf321 MB |
34 | Summary(pl.UTF-8): Dokumentacja programu dot2tex |
35 | Group: Documentation | |
36 | ||
37 | %description doc | |
38 | dot2tex documentation. | |
39 | ||
d79e408a ZU |
40 | %description doc -l hu.UTF-8 |
41 | dot2tex dokumentáció. | |
42 | ||
958bf321 MB |
43 | %description doc -l pl.UTF-8 |
44 | Dokumentacja programu dot2tex. | |
45 | ||
46 | %package examples | |
47 | Summary: Examples for dot2tex | |
d79e408a | 48 | Summary(hu.UTF-8): Példák dot2tex-hez |
958bf321 | 49 | Summary(pl.UTF-8): Przykłady dla dot2tex |
d79e408a | 50 | Group: Documentation |
958bf321 MB |
51 | |
52 | %description examples | |
53 | Examples for dot2tex. | |
54 | ||
d79e408a ZU |
55 | %description examples -l hu.UTF-8 |
56 | Példák dot2tex-hez. | |
57 | ||
958bf321 MB |
58 | %description examples -l pl.UTF-8 |
59 | Przykłady dla dot2tex. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | ||
64 | %build | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
69 | ||
70 | %{__python} setup.py install \ | |
71 | --root=$RPM_BUILD_ROOT \ | |
72 | --optimize=2 | |
73 | ||
74 | %{__cp} -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
75 | ||
76 | %py_postclean | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc README.txt changelog.txt | |
84 | %attr(755,root,root) %{_bindir}/dot2tex | |
85 | %dir %{py_sitescriptdir}/dot2tex | |
86 | %{py_sitescriptdir}/dot2tex/*.py[co] | |
87 | %{py_sitescriptdir}/dot2tex-*.egg-info | |
88 | ||
89 | %files doc | |
90 | %defattr(644,root,root,755) | |
91 | %doc doc/usage.html doc/img/ doc/docgraphs/ | |
92 | ||
93 | %files examples | |
94 | %defattr(644,root,root,755) | |
95 | %{_examplesdir}/%{name}-%{version} |