]> git.pld-linux.org Git - packages/asymptote.git/blob - asymptote.spec
- BR ghostscript
[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.82
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:  0960360e00e8a1a6b84acb70f623ca72
11 Patch0:         %{name}-memrchr.patch
12 URL:            http://asymptote.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  gc-devel >= 7.0
15 BuildRequires:  ghostscript
16 BuildRequires:  gsl-devel >= 1.7
17 BuildRequires:  ncurses-devel
18 BuildRequires:  python
19 BuildRequires:  readline-devel
20 BuildRequires:  rpm-pythonprov
21 BuildRequires:  texinfo-texi2dvi
22 BuildRequires:  texlive-dvips
23 BuildRequires:  texlive-fonts-ams
24 BuildRequires:  texlive-latex
25 BuildRequires:  texlive-tex-babel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Asymptote is a powerful descriptive vector graphics language for
30 technical drawing, inspired by MetaPost but with an improved C++-like
31 syntax. Asymptote provides for figures the same high-quality level of
32 typesetting that LaTeX does for scientific text.
33
34 %description -l hu.UTF-8
35 Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
36 a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
37 képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
38 tudományos szöveggel.
39
40 %description -l pl.UTF-8
41 Asymptote jest językiem opisu grafiki wektorowej dla rysunków
42 technicznych. Język ten jest inspirowany językiem MetaPost, ale
43 posiada bogatszą składnię w stylu C++.
44
45 %package gui
46 Summary:        GUI for asymptote
47 Summary(hu.UTF-8):      GUI asymptote-hoz
48 Summary(pl.UTF-8):      Graficzny interfejs do asymptote
49 Group:          Applications/Science
50 Requires:       %{name} = %{version}-%{release}
51
52 %description gui
53 GUI for asymptote.
54
55 %description gui -l hu.UTF-8
56 GUI asymptote-hoz.
57
58 %description gui -l hu.UTF-8 -l pl.UTF-8
59 Graficzny interfejs do asymptote.
60
61 %package doc
62 Summary:        Asymptote documentation
63 Summary(hu.UTF-8):      Asymptote dokumentáció
64 Summary(pl.UTF-8):      Dokumentacja do Asymptote
65 Group:          Documentation
66 Requires:       %{name} = %{epoch}:%{version}-%{release}
67
68 %description doc
69 Asymptote documentation.
70
71 %description doc -l hu.UTF-8
72 Asymptote dokumentációja.
73
74 %description doc -l pl.UTF-8
75 Dokumentacja do Asymptote.
76
77 %package examples
78 Summary:        Asymptote examples
79 Summary(hu.UTF-8):      Asymptote példák
80 Summary(pl.UTF-8):      Przykłady do Asymptote
81 Group:          Documentation
82 Requires:       %{name} = %{epoch}:%{version}-%{release}
83
84 %description examples
85 Asymptote examples.
86
87 %description examples -l hu.UTF-8
88 Asymptote példák.
89
90 %description examples -l pl.UTF-8
91 Przykładowe pliki dla asymptote.
92
93 %package latex
94 Summary:        LaTeX styles
95 Summary(hu.UTF-8):      LaTeX stílusok
96 Summary(pl.UTF-8):      Style LaTeXa
97 Group:          Applications/Publishing/TeX
98 Requires(post,postun):  %{_bindir}/texhash
99
100 %description latex
101 LaTeX styles.
102
103 %description latex -l hu.UTF-8
104 LaTeX stílusok.
105
106 %description latex -l pl.UTF-8
107 Style LaTeXa.
108
109 %package context
110 Summary:        ConTeXt color macros
111 Group:          Applications/Publishing/TeX
112
113 %description context
114 ConTeXt color macros.
115
116 %package -n vim-syntax-asymptote
117 Summary:        Vim syntax file to asy-files
118 Summary(hu.UTF-8):      Vim syntax fájl asy fájlokhoz
119 Group:          Applications/Editors/Vim
120
121 %description -n vim-syntax-asymptote
122 Vim syntax file to asy files.
123
124 %description -n vim-syntax-asymptote -l hu.UTF-8
125 Vim syntax fájl asy fájlokhoz.
126
127 %prep
128 %setup -q
129 %patch0 -p1
130
131 %build
132 %{__autoheader}
133 %{__autoconf}
134 %configure \
135         CPPFLAGS=-I/usr/include/gc \
136         --disable-static \
137         --enable-gc=%{_includedir}/gc \
138         --with-docdir=%{_docdir}/%{name}-doc
139
140 %ifarch ppc
141 %{__make} asy
142 %{__make} faq
143 %else
144 %{__make} all
145 %endif
146
147 %install
148 rm -rf $RPM_BUILD_ROOT
149
150 %ifarch ppc
151 %{__make} install-asy \
152 %else
153 %{__make} install \
154 %endif
155         DESTDIR=$RPM_BUILD_ROOT
156
157 install -d $RPM_BUILD_ROOT%{_examplesdir}
158 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
159
160 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
161 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
162 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
163
164 %ifnarch ppc
165 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
166 %{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote
167 %endif
168
169 %clean
170 rm -rf $RPM_BUILD_ROOT
171
172 %post latex
173 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
174
175 %postun latex
176 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
177
178 %files
179 %defattr(644,root,root,755)
180 %doc README TODO BUGS
181 %ifnarch ppc
182 %{_infodir}/*.info.gz
183 %endif
184 %attr(755,root,root) %{_bindir}/asy
185 %{_datadir}/%{name}
186 %exclude %{_datadir}/%{name}/GUI
187 %ifnarch ppc
188 %{_mandir}/man1/asy.1*
189 %endif
190
191 %files gui
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_bindir}/xasy
194 %dir %{_datadir}/%{name}/GUI
195 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
196 %{_datadir}/%{name}/GUI/[!x]*.py
197 %ifnarch ppc
198 %{_mandir}/man1/xasy.1*
199 %endif
200
201 %ifarch ppc
202 # What should we do?
203 %else
204 %files doc
205 %defattr(644,root,root,755)
206 %{_docdir}/%{name}-doc
207 %endif
208
209 %files examples
210 %defattr(644,root,root,755)
211 %{_examplesdir}/%{name}-%{version}
212
213 %files latex
214 %defattr(644,root,root,755)
215 %{_datadir}/texmf-dist/tex/latex/asymptote
216
217 %files context
218 %defattr(644,root,root,755)
219 %{_datadir}/texmf-dist/tex/context/third/asymptote/colo-asy.tex
220
221 %files -n vim-syntax-asymptote
222 %defattr(644,root,root,755)
223 %{_datadir}/vim/vimfiles/syntax
This page took 0.470724 seconds and 3 git commands to generate.