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