]> git.pld-linux.org Git - packages/asymptote.git/blame - asymptote.spec
Up to 2.23
[packages/asymptote.git] / asymptote.spec
CommitLineData
67493c5f 1Summary: Asymptote is a powerful descriptive vector graphics language for technical drawing
574b04f2 2Summary(hu.UTF-8): Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
e4f2efd9 3Summary(pl.UTF-8): Język opisu grafiki wektorowej do rysunków technicznych
67493c5f 4Name: asymptote
9425d432 5Version: 2.23
6f7e588e 6Release: 1
51b599cf 7License: GPL v3
67493c5f 8Group: Applications/Science
aa974d1c 9Source0: http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
9425d432 10# Source0-md5: b6e5a8e6c24e27eff42d5476072218bc
f575f05d 11Patch0: %{name}-memrchr.patch
e4f2efd9 12URL: http://asymptote.sourceforge.net/
9425d432 13#BuildRequires: Mesa-libglapi-devel
5aafd215 14BuildRequires: autoconf
f03a555d 15BuildRequires: fftw3-devel
67493c5f 16BuildRequires: gc-devel >= 7.0
9425d432 17BuildRequires: gc-c++-devel >= 7.0
6f19eac0 18BuildRequires: ghostscript
67493c5f 19BuildRequires: gsl-devel >= 1.7
f03a555d 20BuildRequires: libstdc++-devel
67493c5f 21BuildRequires: ncurses-devel
22BuildRequires: python
23BuildRequires: readline-devel
24BuildRequires: rpm-pythonprov
0428895c 25BuildRequires: texinfo-texi2dvi
73995274 26BuildRequires: texlive-dvips
456b8bea 27BuildRequires: texlive-fonts-ams
a3caeacc 28BuildRequires: texlive-format-pdflatex
73995274 29BuildRequires: texlive-latex
1a3867c7 30BuildRequires: texlive-latex-ams
f03a555d 31#BuildRequires: texlive-tex-babel
32BuildRequires: zlib-devel
56a71b6d
ZU
33Suggests: ImageMagick-coder-dot
34Suggests: ImageMagick-coder-jpeg
35Suggests: ImageMagick-coder-png
62cedd45
ZU
36# e.g. "label" command needs latex
37Suggests: texlive-latex
67493c5f 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
df810fe2
ZU
40%define texmfdist %{_datadir}/texmf-dist
41
67493c5f 42%description
43Asymptote is a powerful descriptive vector graphics language for
44technical drawing, inspired by MetaPost but with an improved C++-like
45syntax. Asymptote provides for figures the same high-quality level of
46typesetting that LaTeX does for scientific text.
47
48%description -l hu.UTF-8
7df42c97
ZU
49Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
50a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
51képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
52tudományos szöveggel.
67493c5f 53
574b04f2 54%description -l pl.UTF-8
55Asymptote jest językiem opisu grafiki wektorowej dla rysunków
56technicznych. Język ten jest inspirowany językiem MetaPost, ale
57posiada bogatszą składnię w stylu C++.
58
69badf0e
JB
59%package gui
60Summary: GUI for asymptote
61Summary(hu.UTF-8): GUI asymptote-hoz
62Summary(pl.UTF-8): Graficzny interfejs do asymptote
63Group: Applications/Science
64Requires: %{name} = %{version}-%{release}
c046b545 65Requires: python-tkinter
69badf0e
JB
66
67%description gui
68GUI for asymptote.
69
70%description gui -l hu.UTF-8
71GUI asymptote-hoz.
72
73%description gui -l hu.UTF-8 -l pl.UTF-8
74Graficzny interfejs do asymptote.
75
67493c5f 76%package doc
77Summary: Asymptote documentation
87e88524 78Summary(hu.UTF-8): Asymptote dokumentáció
e4f2efd9 79Summary(pl.UTF-8): Dokumentacja do Asymptote
67493c5f 80Group: Documentation
81Requires: %{name} = %{epoch}:%{version}-%{release}
82
83%description doc
84Asymptote documentation.
85
87e88524
ZU
86%description doc -l hu.UTF-8
87Asymptote dokumentációja.
88
574b04f2 89%description doc -l pl.UTF-8
e4f2efd9 90Dokumentacja do Asymptote.
574b04f2 91
67493c5f 92%package examples
93Summary: Asymptote examples
87e88524 94Summary(hu.UTF-8): Asymptote példák
e4f2efd9 95Summary(pl.UTF-8): Przykłady do Asymptote
67493c5f 96Group: Documentation
97Requires: %{name} = %{epoch}:%{version}-%{release}
98
99%description examples
574b04f2 100Asymptote examples.
101
87e88524
ZU
102%description examples -l hu.UTF-8
103Asymptote példák.
104
574b04f2 105%description examples -l pl.UTF-8
106Przykładowe pliki dla asymptote.
67493c5f 107
811998fe
ZU
108%package latex
109Summary: LaTeX styles
110Summary(hu.UTF-8): LaTeX stílusok
69badf0e 111Summary(pl.UTF-8): Style LaTeXa
811998fe 112Group: Applications/Publishing/TeX
09cdfb34 113Requires(post,postun): %{_bindir}/texhash
811998fe
ZU
114
115%description latex
116LaTeX styles.
117
118%description latex -l hu.UTF-8
119LaTeX stílusok.
120
69badf0e
JB
121%description latex -l pl.UTF-8
122Style LaTeXa.
09cdfb34 123
eb37b2fc
ZU
124%package context
125Summary: ConTeXt color macros
126Group: Applications/Publishing/TeX
df810fe2
ZU
127Requires(post,postun): %{_bindir}/texhash
128Requires: texlive-context
eb37b2fc
ZU
129
130%description context
131ConTeXt color macros.
132
0428895c
ZU
133%package -n vim-syntax-asymptote
134Summary: Vim syntax file to asy-files
135Summary(hu.UTF-8): Vim syntax fájl asy fájlokhoz
136Group: Applications/Editors/Vim
137
138%description -n vim-syntax-asymptote
139Vim syntax file to asy files.
140
141%description -n vim-syntax-asymptote -l hu.UTF-8
142Vim syntax fájl asy fájlokhoz.
143
67493c5f 144%prep
145%setup -q
f575f05d 146%patch0 -p1
67493c5f 147
148%build
5aafd215 149%{__autoheader}
150%{__autoconf}
67493c5f 151%configure \
9425d432 152 --enable-gc \
67493c5f 153 --with-docdir=%{_docdir}/%{name}-doc
154
259d854e
ZU
155%ifarch ppc
156%{__make} asy
157%{__make} faq
158%else
5aafd215 159%{__make} all
259d854e 160%endif
67493c5f 161
162%install
163rm -rf $RPM_BUILD_ROOT
164
ddbcf2cf
ZU
165%ifarch ppc
166%{__make} install-asy \
167%else
67493c5f 168%{__make} install \
ddbcf2cf 169%endif
67493c5f 170 DESTDIR=$RPM_BUILD_ROOT
e4f2efd9 171
67493c5f 172install -d $RPM_BUILD_ROOT%{_examplesdir}
e4f2efd9 173mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67493c5f 174
0428895c
ZU
175install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
176%{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
eb37b2fc 177%{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
df810fe2 178%{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
9425d432 179%{__rm} -r $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
0428895c 180
d375e5d6 181%ifnarch ppc
94b3e541 182%{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
9425d432 183%{__rm} -r $RPM_BUILD_ROOT%{_infodir}/asymptote
d375e5d6 184%endif
94b3e541 185
67493c5f 186%clean
187rm -rf $RPM_BUILD_ROOT
188
69badf0e
JB
189%post latex
190[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
191
192%postun latex
193[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
194
67493c5f 195%files
196%defattr(644,root,root,755)
e4f2efd9 197%doc README TODO BUGS
d375e5d6 198%ifnarch ppc
51a60dd2 199%{_infodir}/*.info*
d375e5d6 200%endif
67493c5f 201%attr(755,root,root) %{_bindir}/asy
67493c5f 202%{_datadir}/%{name}
811998fe 203%exclude %{_datadir}/%{name}/GUI
d375e5d6 204%ifnarch ppc
0016879a 205%{_mandir}/man1/asy.1*
d375e5d6 206%endif
811998fe
ZU
207
208%files gui
209%defattr(644,root,root,755)
210%attr(755,root,root) %{_bindir}/xasy
be68a45d 211%dir %{_datadir}/%{name}/GUI
811998fe 212%attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
0016879a 213%{_datadir}/%{name}/GUI/[!x]*.py
9425d432
AF
214%{_datadir}/%{name}/GUI/xasy2asy.py
215%{_datadir}/%{name}/GUI/xasyActions.py
216%{_datadir}/%{name}/GUI/xasyBezierEditor.py
217%{_datadir}/%{name}/GUI/xasyCodeEditor.py
218%{_datadir}/%{name}/GUI/xasyColorPicker.py
219%{_datadir}/%{name}/GUI/xasyFile.py
220%{_datadir}/%{name}/GUI/xasyGUIIcons.py
221%{_datadir}/%{name}/GUI/xasyMainWin.py
222%{_datadir}/%{name}/GUI/xasyOptions.py
223%{_datadir}/%{name}/GUI/xasyOptionsDialog.py
224%{_datadir}/%{name}/GUI/xasyVersion.py
7acb5d56 225%ifnarch ppc
0016879a 226%{_mandir}/man1/xasy.1*
7acb5d56 227%endif
67493c5f 228
259d854e
ZU
229%ifarch ppc
230# What should we do?
231%else
67493c5f 232%files doc
233%defattr(644,root,root,755)
234%{_docdir}/%{name}-doc
259d854e 235%endif
811998fe 236
69badf0e
JB
237%files examples
238%defattr(644,root,root,755)
239%{_examplesdir}/%{name}-%{version}
240
811998fe
ZU
241%files latex
242%defattr(644,root,root,755)
df810fe2 243%{texmfdist}/tex/latex/asymptote
eb37b2fc
ZU
244
245%files context
246%defattr(644,root,root,755)
df810fe2
ZU
247# should be in texlive.spec
248%dir %{texmfdist}/tex/context
249%{texmfdist}/tex/context/asymptote
0428895c
ZU
250
251%files -n vim-syntax-asymptote
252%defattr(644,root,root,755)
253%{_datadir}/vim/vimfiles/syntax
This page took 0.254068 seconds and 4 git commands to generate.