/[packages]/cauldron/asymptote/current/SPECS/asymptote.spec
ViewVC logotype

Contents of /cauldron/asymptote/current/SPECS/asymptote.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 336481 - (show annotations) (download)
Mon Dec 31 04:28:02 2012 UTC (11 years, 2 months ago) by mitya
File size: 2885 byte(s)
SILENT: fix BR again

1 %define _texmf %(eval "echo `kpsewhich -expand-var '$TEXMFMAIN'`")
2
3 Name: asymptote
4 Version: 2.21
5 Release: %mkrel 1
6 Summary: Powerful descriptive vector graphics language
7 Group: Sciences/Other
8 Source0: http://freefr.dl.sourceforge.net/project/%{name}/%{version}/%{name}-%{version}.src.tgz
9 Source1: xasy.desktop
10 Patch0: asymptote-2.21-settings.patch
11 License: LGPLv3
12 BuildRequires: pkgconfig(ncurses)
13 BuildRequires: pkgconfig(gsl)
14 BuildRequires: pkgconfig(fftw3)
15 BuildRequires: pkgconfig(osmesa)
16 BuildRequires: pkgconfig(bdw-gc)
17 BuildRequires: freeglut-devel
18 BuildRequires: readline-devel
19 BuildRequires: latex
20 BuildRequires: dvipdf
21 BuildRequires: texinfo-tex
22 Requires: texlive
23 Requires(post): texlive, info-install
24 Requires(preun):info-install
25 Requires(postun):texlive
26
27 %description
28 Asymptote is a powerful descriptive vector graphics language that provides
29 a natural coordinate-based framework for technical drawing. Labels and equations
30 are typeset with LaTeX, for high-quality PostScript output.
31
32 A major advantage of Asymptote over other graphics packages is that it is
33 a programming language, as opposed to just a graphics program.
34
35 %package gui
36 Summary: GUI for Asymptote vector graphics language
37 Group: Sciences/Other
38 Requires: %{name} = %{version}-%{release}
39 Requires: tkinter, python-imaging
40
41 %description gui
42 Asymptote is a powerful descriptive vector graphics language that provides
43 a natural coordinate-based framework for technical drawing. Labels and equations
44 are typeset with LaTeX, for high-quality PostScript output.
45
46 A major advantage of Asymptote over other graphics packages is that it is
47 a programming language, as opposed to just a graphics program.
48
49 This package contains "xasy", a GUI for Asymptote.
50
51 %prep
52 %setup -q
53 %apply_patches
54
55 %build
56 %configure2_5x \
57 --enable-gc=system \
58 --with-latex=%{_texmf}/tex/latex \
59 --with-context=%{_texmf}/tex/context
60
61 %make
62
63 %install
64
65 %makeinstall_std
66
67 # Fix info location
68 mv %{buildroot}%{_infodir}/%{name}/%{name}.info* %{buildroot}%{_infodir}
69
70 # Install desktop file
71 %__install -d -m755 %{buildroot}%{_datadir}/applications
72 %__install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
73
74 # Install icons
75 for size in 16x16 32x32 48x48; do
76 install -d %{buildroot}%{_iconsdir}/hicolor/$size/apps
77 convert -resize $size asy.ico %{buildroot}%{_iconsdir}/hicolor/$size/apps/asy.png
78 done
79
80 %define _exclude_files_from_autoreq %{_datadir}/%{name}/%{name}.py
81
82 %post
83 texhash
84 %_install_info %{name}.info
85
86 %preun
87 %_remove_install_info %{name}.info
88
89 %postun
90 texhash
91
92 %files
93 %doc %{_docdir}/%{name}
94 %{_bindir}/asy
95 %{_datadir}/%{name}
96 %exclude %{_datadir}/%{name}/GUI
97 %{_infodir}/asy-faq.info.xz
98 %{_infodir}/%{name}.info.xz
99 %{_mandir}/man1/asy.1*
100 %{_texmf}/tex/context
101 %{_texmf}/tex/latex
102
103 %files gui
104 %{_bindir}/xasy
105 %{_datadir}/%{name}/GUI
106 %{_datadir}/applications/xasy.desktop
107 %{_iconsdir}
108 %{_mandir}/man1/xasy.1*

  ViewVC Help
Powered by ViewVC 1.1.30