]> git.pld-linux.org Git - packages/asymptote.git/blobdiff - asymptote.spec
- 1.97
[packages/asymptote.git] / asymptote.spec
index ee9b02f895a5b59ecface25c08a4394da28107c9..15950128645c4522d4436d137e8711df93c63728 100644 (file)
@@ -2,27 +2,41 @@ Summary:      Asymptote is a powerful descriptive vector graphics language for techni
 Summary(hu.UTF-8):     Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
 Summary(pl.UTF-8):     Język opisu grafiki wektorowej do rysunków technicznych
 Name:          asymptote
-Version:       1.81
+Version:       1.97
 Release:       1
 License:       GPL v3
 Group:         Applications/Science
 Source0:       http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: 3acbb534f9ea426a710e3be354880428
+# Source0-md5: ac8edf42808496ff179f83ef7fbc7891
 Patch0:                %{name}-memrchr.patch
 URL:           http://asymptote.sourceforge.net/
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenGL-glut-devel
 BuildRequires: autoconf
+BuildRequires: fftw3-devel
 BuildRequires: gc-devel >= 7.0
+BuildRequires: ghostscript
 BuildRequires: gsl-devel >= 1.7
+BuildRequires: libstdc++-devel
 BuildRequires: ncurses-devel
 BuildRequires: python
 BuildRequires: readline-devel
 BuildRequires: rpm-pythonprov
 BuildRequires: texinfo-texi2dvi
 BuildRequires: texlive-dvips
+BuildRequires: texlive-fonts-ams
 BuildRequires: texlive-latex
-BuildRequires: texlive-tex-babel
+#BuildRequires:        texlive-tex-babel
+BuildRequires: zlib-devel
+Suggests:      ImageMagick-coder-dot
+Suggests:      ImageMagick-coder-jpeg
+Suggests:      ImageMagick-coder-png
+# e.g. "label" command needs latex
+Suggests:      texlive-latex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define texmfdist %{_datadir}/texmf-dist
+
 %description
 Asymptote is a powerful descriptive vector graphics language for
 technical drawing, inspired by MetaPost but with an improved C++-like
@@ -46,6 +60,7 @@ Summary(hu.UTF-8):    GUI asymptote-hoz
 Summary(pl.UTF-8):     Graficzny interfejs do asymptote
 Group:         Applications/Science
 Requires:      %{name} = %{version}-%{release}
+Requires:      python-tkinter
 
 %description gui
 GUI for asymptote.
@@ -107,6 +122,8 @@ Style LaTeXa.
 %package context
 Summary:       ConTeXt color macros
 Group:         Applications/Publishing/TeX
+Requires(post,postun): %{_bindir}/texhash
+Requires:      texlive-context
 
 %description context
 ConTeXt color macros.
@@ -158,6 +175,8 @@ mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}
 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
+%{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
+%{__rm} -rf $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
 
 %ifnarch ppc
 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
@@ -210,11 +229,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files latex
 %defattr(644,root,root,755)
-%{_datadir}/texmf-dist/tex/latex/asymptote
+%{texmfdist}/tex/latex/asymptote
 
 %files context
 %defattr(644,root,root,755)
-%{_datadir}/texmf-dist/tex/context/third/asymptote/colo-asy.tex
+# should be in texlive.spec
+%dir %{texmfdist}/tex/context
+%{texmfdist}/tex/context/asymptote
 
 %files -n vim-syntax-asymptote
 %defattr(644,root,root,755)
This page took 0.196183 seconds and 4 git commands to generate.