X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=asymptote.spec;h=d849f67b2b1a9eed748de14724a9ab2a5bfdae5a;hb=415a9e932d977dfad55ff6e0d8da08ea1a81ea9d;hp=6786dd8d7b231f9ddbd9c608ee4a078e9bcf62dd;hpb=87e885242e8b2a4a87b478dc0a2c695706c840b5;p=packages%2Fasymptote.git diff --git a/asymptote.spec b/asymptote.spec index 6786dd8..d849f67 100644 --- a/asymptote.spec +++ b/asymptote.spec @@ -2,12 +2,12 @@ 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.59 +Version: 1.68 Release: 1 License: GPL v3 Group: Applications/Science Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz -# Source0-md5: 9d7c25d9e3a24b0d9b63c98b5f676c89 +# Source0-md5: 61a7819027e30a435add7d1af73425bc URL: http://asymptote.sourceforge.net/ BuildRequires: autoconf BuildRequires: gc-devel >= 7.0 @@ -71,6 +71,36 @@ Asymptote példák. %description examples -l pl.UTF-8 Przykładowe pliki dla asymptote. +%package latex +Summary: LaTeX styles +Summary(hu.UTF-8): LaTeX stílusok +Group: Applications/Publishing/TeX +Requires(post,postun): %{_bindir}/texhash + +%description latex +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 gui +GUI for asymptote. + +%description gui -l hu.UTF-8 +GUI asymptote-hoz. + +%post latex +[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 + +%postun latex +[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 + %prep %setup -q @@ -97,6 +127,7 @@ rm -rf $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 %clean rm -rf $RPM_BUILD_ROOT @@ -105,10 +136,17 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README TODO BUGS %attr(755,root,root) %{_bindir}/asy -%attr(755,root,root) %{_bindir}/xasy %{_datadir}/%{name} -%{_datadir}/texmf*/tex/latex/asymptote -%{_mandir}/man1/* +%exclude %{_datadir}/%{name}/GUI +%{_mandir}/man1/asy* + +%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* %files examples %defattr(644,root,root,755) @@ -117,3 +155,7 @@ rm -rf $RPM_BUILD_ROOT %files doc %defattr(644,root,root,755) %{_docdir}/%{name}-doc + +%files latex +%defattr(644,root,root,755) +%{_datadir}/texmf/tex/latex/asymptote