]> git.pld-linux.org Git - packages/asymptote.git/blobdiff - asymptote.spec
- 1.81
[packages/asymptote.git] / asymptote.spec
index ffd6ad72c5aa9ce9219f860867d713b2435e5c3f..ee9b02f895a5b59ecface25c08a4394da28107c9 100644 (file)
@@ -2,12 +2,13 @@ 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.69
+Version:       1.81
 Release:       1
 License:       GPL v3
 Group:         Applications/Science
 Source0:       http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: 70c8a87bf19e6cec16fd210ca32d2608
+# Source0-md5: 3acbb534f9ea426a710e3be354880428
+Patch0:                %{name}-memrchr.patch
 URL:           http://asymptote.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: gc-devel >= 7.0
@@ -16,10 +17,10 @@ BuildRequires:      ncurses-devel
 BuildRequires: python
 BuildRequires: readline-devel
 BuildRequires: rpm-pythonprov
+BuildRequires: texinfo-texi2dvi
 BuildRequires: texlive-dvips
 BuildRequires: texlive-latex
 BuildRequires: texlive-tex-babel
-BuildRequires: texinfo-texi2dvi
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -103,8 +104,27 @@ LaTeX stílusok.
 %description latex -l pl.UTF-8
 Style LaTeXa.
 
+%package context
+Summary:       ConTeXt color macros
+Group:         Applications/Publishing/TeX
+
+%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
+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.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__autoheader}
@@ -114,22 +134,35 @@ Style LaTeXa.
        --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}
+
+%ifnarch ppc
+%{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
+%{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -143,10 +176,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)
@@ -154,11 +192,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)
@@ -166,4 +210,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files latex
 %defattr(644,root,root,755)
-%{_datadir}/texmf/tex/latex/asymptote
+%{_datadir}/texmf-dist/tex/latex/asymptote
+
+%files context
+%defattr(644,root,root,755)
+%{_datadir}/texmf-dist/tex/context/third/asymptote/colo-asy.tex
+
+%files -n vim-syntax-asymptote
+%defattr(644,root,root,755)
+%{_datadir}/vim/vimfiles/syntax
This page took 0.036704 seconds and 4 git commands to generate.