blob: c1bf0606aa61b98646779a672dc0af4841fdb466 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
%{!?_texmf: %global _texmf %(eval "echo `kpsewhich -expand-var '$TEXMFLOCAL'`")}
%global _python_bytecompile_errors_terminate_build 0
%global __python %{__python3}
Name: asymptote
Version: 2.90
Release: 1%{?dist}
Summary: Descriptive vector graphics language
Group: Applications/Publishing
License: GPL
URL: https://asymptote.sourceforge.io/
Source: http://downloads.sourceforge.net/sourceforge/asymptote/asymptote-%{version}.src.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++
BuildRequires: ncurses-devel
BuildRequires: readline-devel
BuildRequires: fftw-devel >= 3.0
BuildRequires: gc-devel >= 6.7
BuildRequires: gsl-devel
BuildRequires: glm-devel
BuildRequires: tetex-latex
BuildRequires: ghostscript >= 9.55
BuildRequires: texinfo >= 4.7
BuildRequires: freeglut-devel
BuildRequires: zlib-devel
BuildRequires: libtool
BuildRequires: libtirpc-devel
BuildRequires: libglvnd-devel
BuildRequires: libcurl-devel
BuildRequires: boost-devel
Requires: tetex-latex
Requires: freeglut-devel >= 3.0.0
Requires: dvisvgm >= 2.9.1
Requires: ImageMagick
Requires(post): /usr/bin/texhash /sbin/install-info
Requires(postun): /usr/bin/texhash /sbin/install-info
%description
Asymptote is a powerful descriptive vector graphics language for technical
drawing, inspired by MetaPost but with an improved C++-like syntax.
Asymptote provides for figures the same high-quality level of typesetting
that LaTeX does for scientific text.
%prep
%setup -q
%build
CFLAGS="`echo $RPM_OPT_FLAGS | sed s/-O2/-O3/` -fno-lto" \
%configure --with-latex=%{_texmf}/tex/latex --with-context=%{_texmf}/tex/context/third
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install-notexhash DESTDIR=$RPM_BUILD_ROOT
%{__install} -p -m 644 BUGS ChangeLog LICENSE README ReleaseNotes TODO \
$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/
%clean
rm -rf $RPM_BUILD_ROOT
%post
texhash >/dev/null 2>&1 || :
/sbin/install-info %{_infodir}/%{name}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :
%postun
texhash >/dev/null 2>&1 || :
if [ $1 = 0 ]; then
/sbin/install-info --remove %{_infodir}/%{name}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc %{_defaultdocdir}/%{name}/
%{_bindir}/*
%{_datadir}/%{name}/
%{_texmf}/tex/latex/%{name}
%{_texmf}/tex/context/third/%{name}
%{_mandir}/man1/*.1*
%{_infodir}/%{name}/
%{_infodir}/%{name}/*.info*
%{_infodir}/*.info*
%changelog
* Thu Apr 19 2007 John Bowman <> - 1.26-1
- Update source tar ball name.
* Tue May 30 2006 John Bowman <> - 1.07-1
- Use make install-all to also install info pages.
* Fri May 26 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.07-1
- Update to 1.07.
* Sun May 21 2006 John Bowman <> - 1.06-1
- Update to 1.06.
* Mon May 8 2006 John Bowman <> - 1.05-1
- Update to 1.05.
* Sun May 7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.04-1
- Update to 1.04.
* Fri Mar 31 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
- Update to 1.03.
* Thu Mar 23 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.02-1
- First build.
|