]> git.pld-linux.org Git - packages/Yap.git/blob - Yap.spec
- up to 4.5.4
[packages/Yap.git] / Yap.spec
1 Summary:        Prolog Compiler
2 Summary(pl):    Kompilator Prologu
3 Name:           Yap
4 Version:        4.5.4
5 Release:        1
6 License:        Artistic
7 Group:          Development/Languages
8 Source0:        http://dl.sourceforge.net/yap/%{name}-%{version}.tar.gz
9 # Source0-md5:  a31c469361e2e7893d04338444e52802
10 Patch0:         %{name}-acdirs.patch
11 URL:            http://www.ncc.up.pt/~vsc/Yap/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  readline-devel
15 BuildRequires:  indent
16 BuildRequires:  gmp-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A high-performance Prolog compiler developed at LIACC, Universidade do
21 Porto. The Prolog engine is based in the WAM (Warren Abstract
22 Machine), with several optimizations for better performance. YAP
23 follows the Edinburgh tradition, and is largely compatible with the
24 ISO-Prolog standard and with Quintus and SICStus Prolog.
25
26 %description -l pl
27 Wydajny kompilator Prologu stworzony w LIACC, Universidade do
28 Porto. Silnik Prologu bazuje na WAM (Warren Abstract Machine), z
29 ró¿nymi optymalizacjami dla lepszej wydajno¶ci. Zgodnie z tradycj±
30 Edinburgh jest on wysoce kompatybilny ze standardem ISO-Prolog oraz
31 z Prologiem Quintus i SICStus.
32
33 %package static
34 Summary:        Static library for YAP Prolog
35 Summary(pl):    Statyczna biblioteka dla kompilatora Prologu YAP
36 Group:          Development/Languages
37 Requires:       %{name} = %{version}
38
39 %description static
40 Static library for YAP prolog.
41
42 %description static -l pl
43 Statyczna biblioteka dla kompilatora prologu YAP.
44
45 %prep
46 %setup -q
47 %patch0
48
49 %build
50 cp -f /usr/share/automake/config.sub .
51 %{__aclocal}
52 %{__autoconf}
53 %configure \
54         --enable-coroutining \
55         --enable-depth-limit \
56         --enable-low-level-tracer \
57         --enable-depth-limit
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_infodir},%{_examplesdir}/%{name}-%{version}}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 install docs/*info* $RPM_BUILD_ROOT%{_infodir}
69
70 for d in chr clpqr; do
71         mv -f $RPM_BUILD_ROOT%{_datadir}/Yap/$d/examples \
72                 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$d
73 done
74
75 %post
76 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
77 /sbin/ldconfig
78
79 %postun
80 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
81 /sbin/ldconfig
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc README* INSTALL changes4.3.html docs/yap.tex
89 %attr(755,root,root) %{_bindir}/yap
90 %dir %{_libdir}/%{name}
91 %attr(755,root,root) %{_libdir}/%{name}/*.so
92 %attr(755,root,root) %{_libdir}/%{name}/startup
93 %{_datadir}/%{name}
94 %{_includedir}/%{name}
95 %{_infodir}/*info*
96 %{_examplesdir}/%{name}-%{version}
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libYap.a
This page took 0.078429 seconds and 4 git commands to generate.