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