X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=asymptote.spec;h=7a3f88e12dfa8970fd46903da8f8aa5dec604e3a;hb=b10c4a0f7a223daa752931833a63d6889a2f229c;hp=c71554956fd8d8ff0de5c98762482ad938bb1a80;hpb=05261a2a57186afabf3c14a433c4ddfd8a4ae9e3;p=packages%2Fasymptote.git diff --git a/asymptote.spec b/asymptote.spec index c715549..7a3f88e 100644 --- a/asymptote.spec +++ b/asymptote.spec @@ -2,26 +2,31 @@ 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 +Version: 1.86 Release: 1 License: GPL v3 Group: Applications/Science Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz -# Source0-md5: 61a7819027e30a435add7d1af73425bc +# Source0-md5: 0dc9c827a5e6f3577b5bc5966cb90ca8 +Patch0: %{name}-memrchr.patch URL: http://asymptote.sourceforge.net/ BuildRequires: autoconf BuildRequires: gc-devel >= 7.0 +BuildRequires: ghostscript BuildRequires: gsl-devel >= 1.7 BuildRequires: ncurses-devel BuildRequires: python BuildRequires: readline-devel BuildRequires: rpm-pythonprov -BuildRequires: tetex-dvips -BuildRequires: tetex-format-latex -BuildRequires: tetex-tex-babel BuildRequires: texinfo-texi2dvi +BuildRequires: texlive-dvips +BuildRequires: texlive-fonts-ams +BuildRequires: texlive-latex +BuildRequires: texlive-tex-babel 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 @@ -39,6 +44,22 @@ Asymptote jest językiem opisu grafiki wektorowej dla rysunków technicznych. Język ten jest inspirowany językiem MetaPost, ale posiada bogatszą składnię w stylu C++. +%package gui +Summary: GUI for asymptote +Summary(hu.UTF-8): GUI asymptote-hoz +Summary(pl.UTF-8): Graficzny interfejs do asymptote +Group: Applications/Science +Requires: %{name} = %{version}-%{release} + +%description gui +GUI for asymptote. + +%description gui -l hu.UTF-8 +GUI asymptote-hoz. + +%description gui -l hu.UTF-8 -l pl.UTF-8 +Graficzny interfejs do asymptote. + %package doc Summary: Asymptote documentation Summary(hu.UTF-8): Asymptote dokumentáció @@ -74,6 +95,7 @@ Przykładowe pliki dla asymptote. %package latex Summary: LaTeX styles Summary(hu.UTF-8): LaTeX stílusok +Summary(pl.UTF-8): Style LaTeXa Group: Applications/Publishing/TeX Requires(post,postun): %{_bindir}/texhash @@ -83,26 +105,32 @@ LaTeX styles. %description latex -l hu.UTF-8 LaTeX stílusok. -%package gui -Summary: GUI for asymptote -Summary(hu.UTF-8): GUI asymptote-hoz -Group: Applications/Science -Requires: %{name} = %{epoch}:%{version}-%{release} +%description latex -l pl.UTF-8 +Style LaTeXa. -%description gui -GUI for asymptote. +%package context +Summary: ConTeXt color macros +Group: Applications/Publishing/TeX +Requires(post,postun): %{_bindir}/texhash +Requires: texlive-context -%description gui -l hu.UTF-8 -GUI asymptote-hoz. +%description context +ConTeXt color macros. -%post latex -[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 +%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 -%postun latex -[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 +%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} @@ -112,50 +140,92 @@ GUI asymptote-hoz. --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 +%post latex +[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 + +%postun latex +[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 + %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 -%{_mandir}/man1/asy* +%ifnarch ppc +%{_mandir}/man1/asy.1* +%endif %files gui %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/xasy %dir %{_datadir}/%{name}/GUI %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py -%{_datadir}/%{name}/GUI/[!xasy.py]* -%{_mandir}/man1/xasy* +%{_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) %{_examplesdir}/%{name}-%{version} -%files doc +%files latex %defattr(644,root,root,755) -%{_docdir}/%{name}-doc +%{texmfdist}/tex/latex/asymptote -%files latex +%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) -%{_datadir}/texmf/tex/latex/asymptote +%{_datadir}/vim/vimfiles/syntax