/[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 1636688 - (show annotations) (download)
Sun Oct 18 10:14:15 2020 UTC (3 years, 6 months ago) by akien
File size: 3292 byte(s)
Fedora patch to fix manpage build with recent ghostscript (SILENT)
1 %global __provides_exclude_from %{_datadir}/%{name}/%{name}.py
2 %global __requires_exclude_from %{_datadir}/%{name}/%{name}.py
3
4 %global optflags %{optflags} -DGLM_ENABLE_EXPERIMENTAL
5
6 %global __python %{__python3}
7
8 %define _texmf %(eval "echo `kpsewhich -expand-var '$TEXMFMAIN'`")
9
10 Name: asymptote
11 Version: 2.67
12 Release: %mkrel 1
13 Summary: Powerful descriptive vector graphics language
14 Group: Sciences/Other
15 License: LGPLv3
16 URL: http://asymptote.sourceforge.net
17 Source0: http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
18 Source1: xasy.desktop
19 Patch0: asymptote-2.67-settings.patch
20 # https://github.com/vectorgraphics/asymptote/pull/181
21 Patch1: asymptote-2.67-fix-for-gs-9.35.patch
22
23 BuildRequires: dvipdf
24 BuildRequires: pkgconfig(freeglut)
25 BuildRequires: imagemagick
26 BuildRequires: latex
27 BuildRequires: pkgconfig(ncurses)
28 BuildRequires: pkgconfig(glm)
29 BuildRequires: pkgconfig(gsl)
30 BuildRequires: pkgconfig(fftw3)
31 BuildRequires: pkgconfig(osmesa)
32 BuildRequires: pkgconfig(bdw-gc)
33 BuildRequires: pkgconfig(readline)
34 BuildRequires: texinfo-tex
35
36 Requires: texlive
37 Requires(post): texlive
38 Requires(postun):texlive
39
40 %description
41 Asymptote is a powerful descriptive vector graphics language that provides
42 a natural coordinate-based framework for technical drawing. Labels and equations
43 are typeset with LaTeX, for high-quality PostScript output.
44
45 A major advantage of Asymptote over other graphics packages is that it is
46 a programming language, as opposed to just a graphics program.
47
48 %package gui
49 Summary: GUI for Asymptote vector graphics language
50 Group: Sciences/Other
51 Requires: %{name} = %{version}-%{release}
52 Requires: python3-tkinter
53 Requires: python3-pillow-tk
54 BuildArch: noarch
55
56 %description gui
57 Asymptote is a powerful descriptive vector graphics language that provides
58 a natural coordinate-based framework for technical drawing. Labels and equations
59 are typeset with LaTeX, for high-quality PostScript output.
60
61 A major advantage of Asymptote over other graphics packages is that it is
62 a programming language, as opposed to just a graphics program.
63
64 This package contains "xasy", a GUI for Asymptote.
65
66 %prep
67 %autosetup -p1
68 sed -i -e 's/_LIB_/%{_lib}/' -e 's/_GS_MAJOR_/9/' settings.cc
69
70 %build
71 %configure \
72 --enable-gc=system \
73 --with-latex=%{_texmf}/tex/latex \
74 --with-context=%{_texmf}/tex/context
75
76 %make_build
77
78 %install
79 %make_install
80
81 # Fix info location
82 mv %{buildroot}%{_infodir}/%{name}/%{name}.info* %{buildroot}%{_infodir}
83
84 # Install desktop file
85 install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/xasy.desktop
86
87 # Install icons
88 for size in 16x16 32x32 48x48; do
89 install -d %{buildroot}%{_iconsdir}/hicolor/$size/apps
90 convert -resize $size asy.ico %{buildroot}%{_iconsdir}/hicolor/$size/apps/asy.png
91 done
92
93 %post
94 texhash
95
96 %postun
97 texhash
98
99 %files
100 %doc %{_docdir}/%{name}
101 %{_bindir}/asy
102 %{_datadir}/%{name}
103 %exclude %{_datadir}/%{name}/GUI
104 %{_infodir}/asy-faq.info*
105 %{_infodir}/%{name}.info*
106 %{_mandir}/man1/asy.1*
107 %{_texmf}/tex/*/%{name}
108
109 %files gui
110 %{_bindir}/xasy
111 %{_datadir}/%{name}/GUI
112 %{_datadir}/applications/xasy.desktop
113 %{_iconsdir}/hicolor/*/apps/asy.png
114 %{_mandir}/man1/xasy.1*

  ViewVC Help
Powered by ViewVC 1.1.30