]> git.pld-linux.org Git - packages/asymptote.git/blob - asymptote.spec
c71554956fd8d8ff0de5c98762482ad938bb1a80
[packages/asymptote.git] / asymptote.spec
1 Summary:        Asymptote is a powerful descriptive vector graphics language for technical drawing
2 Summary(hu.UTF-8):      Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
3 Summary(pl.UTF-8):      Język opisu grafiki wektorowej do rysunków technicznych
4 Name:           asymptote
5 Version:        1.68
6 Release:        1
7 License:        GPL v3
8 Group:          Applications/Science
9 Source0:        http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
10 # Source0-md5:  61a7819027e30a435add7d1af73425bc
11 URL:            http://asymptote.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  gc-devel >= 7.0
14 BuildRequires:  gsl-devel >= 1.7
15 BuildRequires:  ncurses-devel
16 BuildRequires:  python
17 BuildRequires:  readline-devel
18 BuildRequires:  rpm-pythonprov
19 BuildRequires:  tetex-dvips
20 BuildRequires:  tetex-format-latex
21 BuildRequires:  tetex-tex-babel
22 BuildRequires:  texinfo-texi2dvi
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Asymptote is a powerful descriptive vector graphics language for
27 technical drawing, inspired by MetaPost but with an improved C++-like
28 syntax. Asymptote provides for figures the same high-quality level of
29 typesetting that LaTeX does for scientific text.
30
31 %description -l hu.UTF-8
32 Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
33 a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
34 képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
35 tudományos szöveggel.
36
37 %description -l pl.UTF-8
38 Asymptote jest językiem opisu grafiki wektorowej dla rysunków
39 technicznych. Język ten jest inspirowany językiem MetaPost, ale
40 posiada bogatszą składnię w stylu C++.
41
42 %package doc
43 Summary:        Asymptote documentation
44 Summary(hu.UTF-8):      Asymptote dokumentáció
45 Summary(pl.UTF-8):      Dokumentacja do Asymptote
46 Group:          Documentation
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48
49 %description doc
50 Asymptote documentation.
51
52 %description doc -l hu.UTF-8
53 Asymptote dokumentációja.
54
55 %description doc -l pl.UTF-8
56 Dokumentacja do Asymptote.
57
58 %package examples
59 Summary:        Asymptote examples
60 Summary(hu.UTF-8):      Asymptote példák
61 Summary(pl.UTF-8):      Przykłady do Asymptote
62 Group:          Documentation
63 Requires:       %{name} = %{epoch}:%{version}-%{release}
64
65 %description examples
66 Asymptote examples.
67
68 %description examples -l hu.UTF-8
69 Asymptote példák.
70
71 %description examples -l pl.UTF-8
72 Przykładowe pliki dla asymptote.
73
74 %package latex
75 Summary:        LaTeX styles
76 Summary(hu.UTF-8):      LaTeX stílusok
77 Group:          Applications/Publishing/TeX
78 Requires(post,postun):  %{_bindir}/texhash
79
80 %description latex
81 LaTeX styles.
82
83 %description latex -l hu.UTF-8
84 LaTeX stílusok.
85
86 %package gui
87 Summary:        GUI for asymptote
88 Summary(hu.UTF-8):      GUI asymptote-hoz
89 Group:          Applications/Science
90 Requires:       %{name} = %{epoch}:%{version}-%{release}
91
92 %description gui
93 GUI for asymptote.
94
95 %description gui -l hu.UTF-8
96 GUI asymptote-hoz.
97
98 %post latex
99 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
100
101 %postun latex
102 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
103
104 %prep
105 %setup -q
106
107 %build
108 %{__autoheader}
109 %{__autoconf}
110 %configure \
111         CPPFLAGS=-I/usr/include/gc \
112         --disable-static \
113         --enable-gc=%{_includedir}/gc \
114         --with-docdir=%{_docdir}/%{name}-doc
115 cd doc && for i in %{_datadir}/texmf/tex/texinfo/*; do ln -s $i; done && cd ..
116
117 %{__make} all
118
119 %install
120 rm -rf $RPM_BUILD_ROOT
121
122 # I don't know why need it - maybe the bad tetex configuration?
123 # And the solution suggested by asympote's doc doesn't work too :(
124 # cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc
125 %{__make} install \
126         DESTDIR=$RPM_BUILD_ROOT
127
128 install -d $RPM_BUILD_ROOT%{_examplesdir}
129 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
130 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf-local $RPM_BUILD_ROOT%{_datadir}/texmf
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files
136 %defattr(644,root,root,755)
137 %doc README TODO BUGS
138 %attr(755,root,root) %{_bindir}/asy
139 %{_datadir}/%{name}
140 %exclude %{_datadir}/%{name}/GUI
141 %{_mandir}/man1/asy*
142
143 %files gui
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/xasy
146 %dir %{_datadir}/%{name}/GUI
147 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
148 %{_datadir}/%{name}/GUI/[!xasy.py]*
149 %{_mandir}/man1/xasy*
150
151 %files examples
152 %defattr(644,root,root,755)
153 %{_examplesdir}/%{name}-%{version}
154
155 %files doc
156 %defattr(644,root,root,755)
157 %{_docdir}/%{name}-doc
158
159 %files latex
160 %defattr(644,root,root,755)
161 %{_datadir}/texmf/tex/latex/asymptote
This page took 0.277325 seconds and 2 git commands to generate.