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