]> git.pld-linux.org Git - packages/slib.git/blob - slib.spec
8d913f619de49a2eabab52ef935c81b678cff415
[packages/slib.git] / slib.spec
1 Summary:        Scheme library
2 Summary(pl.UTF-8):      Biblioteka Scheme
3 Name:           slib
4 Version:        3a4
5 Release:        1
6 License:        GPL
7 Group:          Development/Languages/Scheme
8 Source0:        ftp://ftp-swiss.ai.mit.edu/pub/scm/%{name}%{version}.tar.gz
9 # Source0-md5:  87bc0b62370c0bf8a510a2acf6868eb9
10 Patch0:         %{name}-info.patch
11 URL:            http://www-swiss.ai.mit.edu/~jaffer/SLIB.html
12 BuildRequires:  texinfo
13 Requires(post): /usr/bin/guile
14 Requires:       guile >= 5:1.8
15 Requires:       guile < 5:1.9
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 SLIB is a portable scheme library meant to provide compatibility and
21 utility functions for all standard scheme implementations. Slib
22 conforms to Revised^5 Report on the Algorithmic Language Scheme and
23 the IEEE P1178 specification.
24
25 %description -l pl.UTF-8
26 SLIB jest przenośną biblioteką scheme mającą zapewnić kompatybilność i
27 funkcje użytkowe dla wszystkich implementacji scheme. SLIB jest zgodne
28 ze specyfikacją Revised^5 Report on the Algorithmic Language Scheme
29 oraz IEEE P1178.
30
31 %prep
32 %setup -q -n %{name}
33 %patch0 -p1
34
35 %build
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_infodir},%{_datadir}/guile/slib,%{_bindir},%{_mandir}/man1}
41 install *.scm $RPM_BUILD_ROOT%{_datadir}/guile/slib
42 sed -e 's,/usr/lib/slib/,%{_datadir}/guile/slib/,' guile.init > $RPM_BUILD_ROOT%{_datadir}/guile/slib/guile.init
43 cat > $RPM_BUILD_ROOT%{_bindir}/slib <<EOF
44 #!/bin/sh
45 SCHEME_LIBRARY_PATH=%{_datadir}/guile/slib/
46 EOF
47 cat slib.sh >>$RPM_BUILD_ROOT%{_bindir}/slib
48 install slib.1 $RPM_BUILD_ROOT%{_mandir}/man1
49 install slib.info $RPM_BUILD_ROOT%{_infodir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 # note: using "(use-modules (ice-9 slib))" in -c here fails
55 %post
56 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
57 umask 022
58 rm -f %{_datadir}/guile/slibcat
59 /usr/bin/guile -l %{_datadir}/guile/slib/guile.init -c "(require 'new-catalog)"
60
61 %preun
62 if [ "$1" = "0" ]; then
63         rm -f %{_datadir}/guile/1.8/slibcat
64 fi
65
66 %postun
67 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
68
69 %files
70 %defattr(644,root,root,755)
71 %doc ANNOUNCE ChangeLog FAQ README *.init
72 %attr(755,root,root) %{_bindir}/slib
73 %{_datadir}/guile/slib
74 %{_mandir}/man1/slib.1*
75 %{_infodir}/slib.info*
This page took 0.028965 seconds and 2 git commands to generate.