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