]> git.pld-linux.org Git - packages/asymptote.git/blobdiff - asymptote.spec
- vim-syntax-asymptote package
[packages/asymptote.git] / asymptote.spec
index 420712d87af5e04baf3502d87e3d079c1c08bdc6..9abdfd9789a1c24cdc9103bd1a2bbfe38a903ca9 100644 (file)
@@ -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.66
-Release:       1
+Version:       1.70
+Release:       2
 License:       GPL v3
 Group:         Applications/Science
 Source0:       http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: 225b06f80f228b7440fb4328c83c9c9a
+# Source0-md5: 3d001d5ce77f00f5c3061cccfd4832af
 URL:           http://asymptote.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: gc-devel >= 7.0
@@ -16,10 +16,10 @@ 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-latex
+BuildRequires: texlive-tex-babel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,6 +39,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ó
@@ -71,6 +87,33 @@ 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
+Summary(pl.UTF-8):     Style LaTeXa
+Group:         Applications/Publishing/TeX
+Requires(post,postun): %{_bindir}/texhash
+
+%description latex
+LaTeX styles.
+
+%description latex -l hu.UTF-8
+LaTeX stílusok.
+
+%description latex -l pl.UTF-8
+Style LaTeXa.
+
+%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
 
@@ -97,23 +140,48 @@ 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
+
+install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
 
 %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
 %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.1*
 
-%files examples
+%files gui
 %defattr(644,root,root,755)
-%{_examplesdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/xasy
+%dir %{_datadir}/%{name}/GUI
+%attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
+%{_datadir}/%{name}/GUI/[!x]*.py
+%{_mandir}/man1/xasy.1*
 
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}-doc
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%files latex
+%defattr(644,root,root,755)
+%{_datadir}/texmf/tex/latex/asymptote
+
+%files -n vim-syntax-asymptote
+%defattr(644,root,root,755)
+%{_datadir}/vim/vimfiles/syntax
This page took 0.900965 seconds and 4 git commands to generate.