]> git.pld-linux.org Git - packages/dot2tex.git/blob - dot2tex.spec
6eb1dd85de12b64fb29ae4926475a2bf89060fcc
[packages/dot2tex.git] / dot2tex.spec
1 Summary:        A Graphviz to LaTeX converter
2 Summary(pl.UTF-8):      Konwerter plików Graphviza do LaTeXa
3 Name:           dot2tex
4 Version:        2.8.5
5 Release:        1
6 License:        MIT
7 Group:          Applications
8 Source0:        http://dot2tex.googlecode.com/files/%{name}-%{version}.tar.gz
9 # Source0-md5:  94e3d97acbd66e24de9a7403d278dd60
10 URL:            http://www.fauskes.net/code/dot2tex/
11 BuildRequires:  python >= 1:2.5
12 BuildRequires:  rpm-pythonprov
13 Requires:       graphviz
14 Requires:       python-pyparsing >= 1.4.8
15 Requires:       tetex-latex
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 dot2tex is a tool for converting graphs rendered by Graphviz to
20 formats that can be used with LaTeX.
21
22 %description -l pl.UTF-8
23 dot2tex jest narzędziem do konwertowania grafów stworzonych przez
24 Graphviza do formatów, które mogą być użyte z LaTeXem.
25
26 %package doc
27 Summary:        dot2tex documentation
28 Summary(pl.UTF-8):      Dokumentacja programu dot2tex
29 Group:          Documentation
30
31 %description doc
32 dot2tex documentation.
33
34 %description doc -l pl.UTF-8
35 Dokumentacja programu dot2tex.
36
37 %package examples
38 Summary:        Examples for dot2tex
39 Summary(pl.UTF-8):      Przykłady dla dot2tex
40 # better group needed
41 Group:          Libraries
42
43 %description examples
44 Examples for dot2tex.
45
46 %description examples -l pl.UTF-8
47 Przykłady dla dot2tex.
48
49 %prep
50 %setup -q
51
52 %build
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
58 %{__python} setup.py install \
59         --root=$RPM_BUILD_ROOT \
60         --optimize=2
61
62 %{__cp} -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
64 %py_postclean
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc README.txt changelog.txt
72 %attr(755,root,root) %{_bindir}/dot2tex
73 %dir %{py_sitescriptdir}/dot2tex
74 %{py_sitescriptdir}/dot2tex/*.py[co]
75 %{py_sitescriptdir}/dot2tex-*.egg-info
76
77 %files doc
78 %defattr(644,root,root,755)
79 %doc doc/usage.html doc/img/ doc/docgraphs/
80
81 %files examples
82 %defattr(644,root,root,755)
83 %{_examplesdir}/%{name}-%{version}
This page took 0.778333 seconds and 2 git commands to generate.