diff --git a/.cvsignore b/.cvsignore index d177121..796a17c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -asymptote-1.37.src.tgz +asymptote-1.41.src.tgz diff --git a/asy.gif b/asy.gif new file mode 100644 index 0000000..290721e Binary files /dev/null and b/asy.gif differ diff --git a/asymptote.spec b/asymptote.spec index d98f6ca..6e41768 100644 --- a/asymptote.spec +++ b/asymptote.spec @@ -4,16 +4,17 @@ %define xemacs_sitelisp %{_datadir}/xemacs/site-packages/lisp Name: asymptote -Version: 1.37 +Version: 1.41 Release: 1%{?dist} Summary: Descriptive vector graphics language Group: Applications/Publishing License: GPLv3+ URL: http://asymptote.sourceforge.net/ -Source: http://dl.sourceforge.net/sourceforge/asymptote/asymptote-%{version}.src.tgz +Source0: http://dl.sourceforge.net/sourceforge/asymptote/asymptote-%{version}.src.tgz +Source1: asy.gif +Source2: xasy.desktop Patch0: asymptote-1.29-settings.patch -Patch1: asymptote-1.37-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel @@ -25,9 +26,11 @@ BuildRequires: tetex-latex BuildRequires: ghostscript BuildRequires: texinfo-tex BuildRequires: ImageMagick +BuildRequires: desktop-file-utils Requires: tetex-latex Requires: tkinter +Requires: python-imaging-tk Requires(post): /usr/bin/texhash /sbin/install-info Requires(postun): /usr/bin/texhash /sbin/install-info @@ -43,8 +46,6 @@ that LaTeX does for scientific text. %prep %setup -q %patch0 -p1 -%patch1 -p1 -%{__sed} -i 's|^#!/usr/bin/env python$|#!%{__python}|' xasy %{__sed} -i 's/\r//' doc/CAD1.asy # convert to UTF-8 @@ -84,11 +85,22 @@ for vimver in 63 64 70 71 ; do ln -s ../../../%{name}/asy.vim . done +# copy icon to pixmaps dir +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/ +cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/ + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +desktop-file-install --vendor "fedora" \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + %{SOURCE2} + # Clean up symlink rm -rf $RPM_BUILD_ROOT%{_bindir}/xasy cd $RPM_BUILD_ROOT%{_bindir} ln -s ../share/%{name}/GUI/xasy.py xasy + + %clean rm -rf $RPM_BUILD_ROOT @@ -119,9 +131,15 @@ fi # Thus, its ok for dual ownership. %{_datadir}/emacs* %{_datadir}/xemacs/ +%{_datadir}/pixmaps/asy.gif +%{_datadir}/applications/*.desktop %changelog +* Wed Feb 6 2008 Tom "spot" Callaway - 1.41-1 +- update to 1.41 +- enable desktop file for xasy + * Thu Jan 3 2008 Tom "spot" Callaway - 1.37-1 - bump to 1.37 - fix gcc43 failures diff --git a/sources b/sources index 429ea13..7ccd98d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -05b6e614f43e2fd163161117c4093f87 asymptote-1.37.src.tgz +ebcb18fbec3f585e0c7258ca3994b86c asymptote-1.41.src.tgz diff --git a/xasy.desktop b/xasy.desktop new file mode 100644 index 0000000..269d85e --- /dev/null +++ b/xasy.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=xasy +Icon=/usr/share/pixmaps/asy.gif +Terminal=false +Name=Asymptote +GenericName=xasy +Comment=GUI tool for using Asymptote vector graphics +Type=Application +Categories=Application;Graphics; +StartupNotify=true +X-Desktop-File-Install-Version=0.10