]> git.pld-linux.org Git - packages/slib.git/blame - slib.spec
- update guile paths, rel 4
[packages/slib.git] / slib.spec
CommitLineData
195a67d2 1# TODO: integration with other Scheme implementations (see Makefile catalogs target)
9982c70f 2Summary: Scheme library
e7ef4cf8 3Summary(pl.UTF-8): Biblioteka Scheme
c53e78e0 4Name: slib
d34a76d0 5Version: 3b6
79b6b73c 6Release: 4
48058682 7License: distributable (BSD and Public Domain parts)
50b1d67c 8Group: Development/Languages/Scheme
47f41471 9Source0: http://groups.csail.mit.edu/mac/ftpdir/scm/%{name}-%{version}.tar.gz
d34a76d0 10# Source0-md5: c895d74d769c5072c4c6d1b1700db83f
50b1d67c 11Patch0: %{name}-info.patch
47f41471 12URL: http://people.csail.mit.edu/jaffer/SLIB.html
5be39f8f 13BuildRequires: scm
0451a7e0 14BuildRequires: texinfo
1810bcdd 15BuildArch: noarch
7242f12c 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c53e78e0 17
18%description
50b1d67c 19SLIB is a portable scheme library meant to provide compatibility and
20utility functions for all standard scheme implementations. Slib
21conforms to Revised^5 Report on the Algorithmic Language Scheme and
22the IEEE P1178 specification.
c53e78e0 23
f2537dd1
JR
24%description -l pl.UTF-8
25SLIB jest przenośną biblioteką scheme mającą zapewnić kompatybilność i
26funkcje użytkowe dla wszystkich implementacji scheme. SLIB jest zgodne
27ze specyfikacją Revised^5 Report on the Algorithmic Language Scheme
e1a3654c 28oraz IEEE P1178.
c53e78e0 29
195a67d2
JB
30%package -n guile-slib
31Summary: Scheme library for Guile
32Summary(pl.UTF-8): Biblioteka Scheme dla Guile
33Group: Development/Languages/Scheme
34Requires(post): /usr/bin/guile
35Requires: %{name} = %{version}-%{release}
b8710c15 36Requires: guile >= 5:2.2
195a67d2
JB
37
38%description -n guile-slib
39SLIB is a portable scheme library meant to provide compatibility and
40utility functions for all standard scheme implementations. Slib
41conforms to Revised^5 Report on the Algorithmic Language Scheme and
42the IEEE P1178 specification.
43
44This package integrates SLIB with Guile implementation.
45
46%description -n guile-slib -l pl.UTF-8
47SLIB jest przenośną biblioteką scheme mającą zapewnić kompatybilność i
48funkcje użytkowe dla wszystkich implementacji scheme. SLIB jest zgodne
49ze specyfikacją Revised^5 Report on the Algorithmic Language Scheme
50oraz IEEE P1178.
51
52Ten pakiet integruje SLIB z implementacją Guile.
53
98ca6d20
JB
54%package -n scm-slib
55Summary: Scheme library for SCM
56Summary(pl.UTF-8): Biblioteka Scheme dla SCM-a
57Group: Development/Languages/Scheme
58Requires(post): /usr/bin/scm
59Requires: %{name} = %{version}-%{release}
60Requires: scm
61
62%description -n scm-slib
63SLIB is a portable scheme library meant to provide compatibility and
64utility functions for all standard scheme implementations. Slib
65conforms to Revised^5 Report on the Algorithmic Language Scheme and
66the IEEE P1178 specification.
67
68This package integrates SLIB with SCM implementation.
69
70%description -n scm-slib -l pl.UTF-8
71SLIB jest przenośną biblioteką scheme mającą zapewnić kompatybilność i
72funkcje użytkowe dla wszystkich implementacji scheme. SLIB jest zgodne
73ze specyfikacją Revised^5 Report on the Algorithmic Language Scheme
74oraz IEEE P1178.
75
76Ten pakiet integruje SLIB z implementacją SCM.
77
9982c70f 78%prep
47f41471 79%setup -q
f6cdf4b1 80%patch0 -p1
c53e78e0 81
16c62ae9
JB
82%build
83%{__make}
84
8c0f0832
JB
85%{__make} slib.info
86
c53e78e0 87%install
1810bcdd 88rm -rf $RPM_BUILD_ROOT
195a67d2
JB
89install -d $RPM_BUILD_ROOT{%{_infodir},%{_datadir}/slib,%{_bindir},%{_mandir}/man1}
90
91cp -p *.scm $RPM_BUILD_ROOT%{_datadir}/slib
92cp -p guile.init guile-2.init $RPM_BUILD_ROOT%{_datadir}/slib
98ca6d20 93cp -p scm.init $RPM_BUILD_ROOT%{_datadir}/slib
195a67d2
JB
94# TODO (and possibly other, not present yet in PLD)
95#cp -p scheme48.init umbscheme.init $RPM_BUILD_ROOT%{_datadir}/slib
96
16c62ae9
JB
97cat > $RPM_BUILD_ROOT%{_bindir}/slib <<EOF
98#!/bin/sh
195a67d2 99SCHEME_LIBRARY_PATH=%{_datadir}/slib/
16c62ae9
JB
100EOF
101cat slib.sh >>$RPM_BUILD_ROOT%{_bindir}/slib
195a67d2 102
16c62ae9 103install slib.1 $RPM_BUILD_ROOT%{_mandir}/man1
ca66adb7 104install slib.info $RPM_BUILD_ROOT%{_infodir}
c53e78e0 105
98ca6d20 106# guile
79b6b73c
JR
107install -d $RPM_BUILD_ROOT%{_datadir}/guile/site/3.0
108:> $RPM_BUILD_ROOT%{_datadir}/guile/site/3.0/slibcat
195a67d2 109
c53e78e0 110%clean
111rm -rf $RPM_BUILD_ROOT
112
195a67d2
JB
113%post -p /sbin/postshell
114-/usr/sbin/fix-info-dir -c %{_infodir}
c53e78e0 115
47f41471 116%postun -p /sbin/postshell
8d5fc77a 117-/usr/sbin/fix-info-dir -c %{_infodir}
36fd7e00 118
195a67d2
JB
119%post -n guile-slib
120# old (guile < 2) location
121rm -f %{_datadir}/guile/site/slibcat
122umask 022
123/usr/bin/guile -l %{_datadir}/slib/guile.init -c "(use-modules (ice-9 slib)) (require 'new-catalog)" >/dev/null 2>&1
124
98ca6d20
JB
125%post -n scm-slib
126umask 022
127scm -c "(require 'new-catalog)" >/dev/null 2>&1
128
640013ed
JB
129%triggerin -n scm-slib -- scm
130# force regeneration after scm upgrade
131umask 022
132scm -c "(require 'new-catalog)" >/dev/null 2>&1
133
c53e78e0 134%files
135%defattr(644,root,root,755)
195a67d2 136%doc ANNOUNCE COPYING ChangeLog FAQ README
16c62ae9 137%attr(755,root,root) %{_bindir}/slib
195a67d2
JB
138%dir %{_datadir}/slib
139%{_datadir}/slib/*.scm
16c62ae9 140%{_mandir}/man1/slib.1*
ca66adb7 141%{_infodir}/slib.info*
195a67d2
JB
142
143%files -n guile-slib
144%defattr(644,root,root,755)
145%{_datadir}/slib/guile.init
146%{_datadir}/slib/guile-2.init
79b6b73c 147%ghost %{_datadir}/guile/site/3.0/slibcat
98ca6d20
JB
148
149%files -n scm-slib
150%defattr(644,root,root,755)
151%{_datadir}/slib/scm.init
152# impossible due to main package being noarch
153#%ghost %{_libdir}/scm/slibcat
This page took 0.127679 seconds and 4 git commands to generate.