]> git.pld-linux.org Git - packages/asymptote.git/blobdiff - asymptote.spec
- 1.96
[packages/asymptote.git] / asymptote.spec
index 9b0dbacc47e815da3d58aea1ab09959cf5391271..be215cb2ca2f1864661218e0ac1ad4e1e3dca9a2 100644 (file)
@@ -2,26 +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.74
+Version:       1.96
 Release:       1
 License:       GPL v3
 Group:         Applications/Science
 Source0:       http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: 3a9b15912e43bce93a749cc44a063979
+# Source0-md5: 91038fd31705bfe125c42f8ddc19867f
+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
@@ -45,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.
@@ -103,6 +119,15 @@ LaTeX stílusok.
 %description latex -l pl.UTF-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.
+
 %package -n vim-syntax-asymptote
 Summary:       Vim syntax file to asy-files
 Summary(hu.UTF-8):     Vim syntax fájl asy fájlokhoz
@@ -116,6 +141,7 @@ Vim syntax fájl asy fájlokhoz.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__autoheader}
@@ -125,25 +151,37 @@ Vim syntax fájl asy fájlokhoz.
        --disable-static \
        --enable-gc=%{_includedir}/gc \
        --with-docdir=%{_docdir}/%{name}-doc
-cd doc && for i in %{_datadir}/texmf/tex/texinfo/*; do ln -s $i; done && cd ..
 
+%ifarch ppc
+%{__make} asy
+%{__make} faq
+%else
 %{__make} all
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-# I don't know why need it - maybe the bad tetex configuration?
-# And the solution suggested by asympote's doc doesn't work too :(
-# cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc
+%ifarch ppc
+%{__make} install-asy \
+%else
 %{__make} install \
+%endif
        DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}
 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf-local $RPM_BUILD_ROOT%{_datadir}/texmf
 
 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/*,}
+%{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -157,10 +195,15 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README TODO BUGS
+%ifnarch ppc
+%{_infodir}/*.info.gz
+%endif
 %attr(755,root,root) %{_bindir}/asy
 %{_datadir}/%{name}
 %exclude %{_datadir}/%{name}/GUI
+%ifnarch ppc
 %{_mandir}/man1/asy.1*
+%endif
 
 %files gui
 %defattr(644,root,root,755)
@@ -168,11 +211,17 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/%{name}/GUI
 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
 %{_datadir}/%{name}/GUI/[!x]*.py
+%ifnarch ppc
 %{_mandir}/man1/xasy.1*
+%endif
 
+%ifarch ppc
+# What should we do?
+%else
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}-doc
+%endif
 
 %files examples
 %defattr(644,root,root,755)
@@ -180,7 +229,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files latex
 %defattr(644,root,root,755)
-%{_datadir}/texmf/tex/latex/asymptote
+%{texmfdist}/tex/latex/asymptote
+
+%files context
+%defattr(644,root,root,755)
+# 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.09142 seconds and 4 git commands to generate.