]> git.pld-linux.org Git - packages/asymptote.git/blobdiff - asymptote.spec
- up to 2.59
[packages/asymptote.git] / asymptote.spec
index b75aef75a0d3136b5f346cb21fd688de6cbfa312..4dc5185ce1db543ec0fcf668a3257df6cbc49ed0 100644 (file)
@@ -2,26 +2,49 @@ 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.68
-Release:       2
-License:       GPL v3
+Version:       2.59
+Release:       1
+# uses GPL libraries (gsl, readline), so final license is GPL
+License:       GPL v3+ (LGPL v3+ code)
 Group:         Applications/Science
-Source0:       http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: 61a7819027e30a435add7d1af73425bc
+Source0:       http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
+# Source0-md5: d43d86b6e80faa7364ab57a6161ac1d0
+Patch0:                %{name}-memrchr.patch
 URL:           http://asymptote.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: Mesa-libOSMesa-devel
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenGL-devel
+BuildRequires: OpenGL-glut-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: bison
+BuildRequires: fftw3-devel >= 3
+BuildRequires: flex
+BuildRequires: gc-c++-devel >= 7.0
 BuildRequires: gc-devel >= 7.0
+BuildRequires: ghostscript
 BuildRequires: gsl-devel >= 1.7
+BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: ncurses-devel
-BuildRequires: python
-BuildRequires: readline-devel
+BuildRequires: python >= 2
+BuildRequires: readline-devel >= 4.3
 BuildRequires: rpm-pythonprov
+BuildRequires: texinfo-texi2dvi >= 6.7
 BuildRequires: texlive-dvips
+BuildRequires: texlive-fonts-ams
+BuildRequires: texlive-format-pdflatex
 BuildRequires: texlive-latex
-BuildRequires: texlive-tex-babel
-BuildRequires: texinfo-texi2dvi
+BuildRequires: texlive-latex-ams
+#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 +68,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,37 +127,85 @@ LaTeX stílusok.
 %description latex -l pl.UTF-8
 Style LaTeXa.
 
+%package context
+Summary:       ConTeXt color macros
+Summary(pl.UTF-8):     Makra kolorów ConTeXta
+Group:         Applications/Publishing/TeX
+Requires(post,postun): %{_bindir}/texhash
+Requires:      texlive-context
+
+%description context
+ConTeXt color macros.
+
+%description context -l pl.UTF-8
+Makra kolorów ConTeXta.
+
+%package -n vim-syntax-asymptote
+Summary:       Vim syntax file to asy-files
+Summary(hu.UTF-8):     Vim syntax fájl asy fájlokhoz
+Summary(pl.UTF-8):     Plik składni Vima dla plików asy
+Group:         Applications/Editors/Vim
+
+%description -n vim-syntax-asymptote
+Vim syntax file to asy files.
+
+%description -n vim-syntax-asymptote -l hu.UTF-8
+Vim syntax fájl asy fájlokhoz.
+
+%description -n vim-syntax-asymptote -l pl.UTF-8
+Plik składni Vima dla plików asy.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__autoheader}
 %{__autoconf}
+%{__autoheader}
 %configure \
-       CPPFLAGS=-I/usr/include/gc \
-       --disable-static \
-       --enable-gc=%{_includedir}/gc \
+       --enable-gc=system \
        --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
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/asymptote/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
+%{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
+%{__rm} -r $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
+
+%ifnarch ppc
+%{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*.info,}
+rmdir $RPM_BUILD_ROOT%{_infodir}/asymptote
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
 %post latex
 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
 
@@ -142,11 +214,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO BUGS
+%doc BUGS ChangeLog README ReleaseNotes TODO
 %attr(755,root,root) %{_bindir}/asy
-%{_datadir}/%{name}
-%exclude %{_datadir}/%{name}/GUI
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.asy
+%{_datadir}/%{name}/asymptote.py
+%{_datadir}/%{name}/nopapersize.ps
+%{_datadir}/%{name}/reload.js
+# to emacs package?
+%{_datadir}/%{name}/asy*.el
+# kate package?
+%{_datadir}/%{name}/asy-kate.sh
+%{_datadir}/asymptote/shaders
+%{_datadir}/asymptote/webgl
+%ifnarch ppc
 %{_mandir}/man1/asy.1*
+%{_infodir}/asy-faq.info*
+%{_infodir}/asymptote.info*
+%endif
 
 %files gui
 %defattr(644,root,root,755)
@@ -154,11 +239,39 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/%{name}/GUI
 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
 %{_datadir}/%{name}/GUI/[!x]*.py
+%{_datadir}/asymptote/GUI/xasy2asy.py
+%{_datadir}/asymptote/GUI/xasyArgs.py
+%{_datadir}/asymptote/GUI/xasyBezierInterface.py
+%{_datadir}/asymptote/GUI/xasyFile.py
+%{_datadir}/asymptote/GUI/xasyOptions.py
+%{_datadir}/asymptote/GUI/xasyStrings.py
+%{_datadir}/asymptote/GUI/xasySvg.py
+%{_datadir}/asymptote/GUI/xasyTransform.py
+%{_datadir}/asymptote/GUI/xasyUtils.py
+%{_datadir}/asymptote/GUI/xasyValidator.py
+%{_datadir}/asymptote/GUI/xasyVersion.py
+%dir %{_datadir}/asymptote/GUI/configs
+%{_datadir}/asymptote/GUI/configs/xasyconfig.cson
+%{_datadir}/asymptote/GUI/configs/xasykeymap.cson
+%dir %{_datadir}/asymptote/GUI/pyUIClass
+%{_datadir}/asymptote/GUI/pyUIClass/custMatTransform.py
+%{_datadir}/asymptote/GUI/pyUIClass/labelTextEditor.py
+%{_datadir}/asymptote/GUI/pyUIClass/setCustomAnchor.py
+%{_datadir}/asymptote/GUI/pyUIClass/widg_addLabel.py
+%{_datadir}/asymptote/GUI/pyUIClass/widg_addPolyOpt.py
+%{_datadir}/asymptote/GUI/pyUIClass/widg_editBezier.py
+%{_datadir}/asymptote/GUI/pyUIClass/widgetPointEditor.py
+%{_datadir}/asymptote/GUI/pyUIClass/window1.py
+%{_datadir}/asymptote/GUI/res
+%ifnarch ppc
 %{_mandir}/man1/xasy.1*
+%endif
 
+%ifnarch ppc
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}-doc
+%endif
 
 %files examples
 %defattr(644,root,root,755)
@@ -166,4 +279,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)
+%{texmfdist}/tex/context/asymptote
+
+%files -n vim-syntax-asymptote
+%defattr(644,root,root,755)
+%{_datadir}/vim/vimfiles/syntax/asy.vim
+%{_datadir}/vim/vimfiles/syntax/asy_filetype.vim
This page took 0.071115 seconds and 4 git commands to generate.