]> git.pld-linux.org Git - packages/slang.git/blob - slang.spec
- release 7.
[packages/slang.git] / slang.spec
1 %define         docver  1.4
2 Summary:        shared library for C like extension language
3 Summary(de):    Shared Library für eine C-artige Sprache 
4 Summary(fr):    Bibliothèque partagée pour le langage d'extension C like
5 Summary(pl):    Biblioteka Slang
6 Summary(tr):    C benzeri dil için ortak kitaplýk
7 Name:           slang
8 Version:        1.4.4
9 Release:        7
10 Epoch:          1
11 License:        GPL
12 Group:          Libraries
13 Group(de):      Libraries
14 Group(es):      Bibliotecas
15 Group(fr):      Librairies
16 Group(pl):      Biblioteki
17 Group(pt_BR):   Bibliotecas
18 Group(ru):      âÉÂÌÉÏÔÅËÉ
19 Group(uk):      â¦Â̦ÏÔÅËÉ
20 Source0:        ftp://space.mit.edu/pub/davis/slang/v1.4/%{name}-%{version}.tar.bz2
21 Source1:        ftp://space.mit.edu/pub/davis/slang/v1.4/%{name}%{docver}-doc.tar.gz
22 Patch0:         %{name}-security.patch
23 Patch1:         %{name}-DESTDIR.patch
24 Patch2:         %{name}-nodevel.patch
25 Patch3:         %{name}-keymap.patch
26 %{?BOOT:BuildRequires:  uClibc-devel-BOOT}
27 BuildRequires:  autoconf
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _includedir     %{_prefix}/include/slang
31
32 %description
33 Slang (pronounced ``sssslang'') is a powerful stack based interpreter
34 that supports a C-like syntax. It has been designed from the beginning
35 to be easily embedded into a program to make it extensible. Slang also
36 provides a way to quickly develop and debug the application embedding
37 it in a safe and efficient manner. Since slang resembles C, it is easy
38 to recode slang procedures in C if the need arises.
39
40 %description -l de
41 Slang (sprich ``sssslang'') ist ein leistungsfähiger stapelbasierter
42 Interpreter, der eine C-ähnliche Syntax unterstützt. Er kann auf
43 einfache Weise in ein Programm eingebettet werden, damit dieses
44 erweiterbar wird. Slang bietet außerdem eine Möglichkeit zum schnellen
45 Entwickeln und Debuggen der Anwendung, in die er eingebettet ist. Da
46 Slang C ähnlich ist, können Slang-Vorgänge einfach in C umgeschrieben
47 werden.
48
49 %description -l fr
50 slang (prononcez « sssslang ») est un interpréteur puissant offrant
51 une syntaxe à la C. Il a été conçu au début pour être facilement
52 intégré dans un programme afin de le rendre extensible. slang offre
53 aussi le moyen de developper et débugger rapidement l'application
54 intégrée de façon sûre et efficace. Comme slang ressemble à C, il est
55 facile de recoder les procédures slang en C si besoin est.
56
57 %description -l pl
58 Slang jest opart± o terminfo bibliotek± do obs³ugi terminali
59 znakowych, posiadaj±c± wbudowany interpreter jêzyka podobnego
60 sk³adniowo do C. Na pocz±tku by³ on przeznaczony aby ³atwo da³ siê
61 osadzaæ w aplikacjê i uczyniæ j± rozszerzon±. Slang zapewnia
62 mechanizmy u³atwiaj±ce szybkie tworzenie rozbudowanych, ³atwo
63 konfigurowalnych aplikacji. Slang równie¿ umo¿liwia proste
64 prze¶ledzenie ewentualnych b³êdów w aplikacjach w bezpieczny i wydajny
65 sposób.
66
67 %description -l tr
68 Slang, C'ye benzer bir yazýmý olan, güçlü, yýðýn-tabanlý bir
69 yorumlayýcýdýr. C'ye benzer olduðundan Slang ile yazýlmýþ kodlarý C'ye
70 çevirmek oldukça kolaydýr.
71
72 %package devel
73 Summary:        header files for slang C like language
74 Summary(de):    Header-Dateien für eine Slangvariante der C-Sprache 
75 Summary(fr):    En-têtes pour le langage slang
76 Summary(pl):    Pliki nag³ówkowe dla slanga
77 Summary(tr):    slang dili için statik kitaplýk ve baþlýk dosyalarý
78 Group:          Development/Libraries
79 Group(de):      Entwicklung/Libraries
80 Group(es):      Desarrollo/Bibliotecas
81 Group(fr):      Development/Librairies
82 Group(pl):      Programowanie/Biblioteki
83 Group(pt_BR):   Desenvolvimento/Bibliotecas
84 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
85 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
86 Requires:       %{name} = %{version}
87
88 %description devel
89 This package contains header files required to develop slang-based
90 applications. It also includes documentation to help you write
91 slang-based apps.
92
93 %description devel -l de
94 Dieses Paket enthält Header-Dateien zum Entwickeln von slang-basierten
95 Anwendungen. Dokumentation zum Schreiben von slang-basierten
96 Anwendungen ist enthalten.
97
98 %description devel -l fr
99 Ce paquetage contient les bibliothèques statiques et les en-têtes
100 slang pour développer des applications en slang. Il contient aussi la
101 documentation pour vous aider à écrire ces applications.
102
103 %description devel -l pl
104 Pakiet ten zawiera pliki nag³ówkowe slang. Znajduje siê tutaj równie¿
105 dokumentacja, która pomo¿e Ci w pisaniu aplikacji pod tê bibliotekê.
106
107 %description devel -l tr
108 Bu paket slang tabanlý uygulamalar geliþtirmek için gereken baþlýk
109 dosyalarý ve kitaplýklarýn yanýsýra slang yardým belgelerini de
110 içerir.
111
112 %package static
113 Summary:        slang static library
114 Summary(pl):    Biblioteka statyczna slang
115 Group:          Development/Libraries
116 Group(de):      Entwicklung/Libraries
117 Group(es):      Desarrollo/Bibliotecas
118 Group(fr):      Development/Librairies
119 Group(pl):      Programowanie/Biblioteki
120 Group(pt_BR):   Desenvolvimento/Bibliotecas
121 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
122 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
123 Requires:       %{name}-devel = %{version}
124
125 %description static
126 This package contains the slang static libraries.
127
128 %description static -l de
129 Dieses Paket enthält die statischen Libraries.
130
131 %description static -l pl
132 Biblioteka statyczna slang.
133
134 %package devel-BOOT
135 Summary:        Static slang for bootdisk
136 Summary(pl):    Statyczny slang dla bootkietki
137 Group:          Development/Libraries
138 Group(de):      Entwicklung/Libraries
139 Group(es):      Desarrollo/Bibliotecas
140 Group(fr):      Development/Librairies
141 Group(pl):      Programowanie/Biblioteki
142 Group(pt_BR):   Desenvolvimento/Bibliotecas
143 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
144 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
145
146 %description devel-BOOT
147 Static slang for bootdisk (compiled against uClibc headers).
148
149 %description devel-BOOT -l pl
150 Statyczny slang dla bootkietki (skompilowany z nag³ówkami uClibc).
151
152 %prep
153 %setup  -q -a1
154 %patch0 -p1
155 %patch1 -p1
156 %patch2 -p1
157
158 %build
159 (cd autoconf ; mv -f acsite.m4 aclocal.m4 ; autoconf ; cp -f configure ..)
160 (cd demo ; cp -f ../autoconf/aclocal.m4 . ; autoconf)
161 %configure
162
163 %if %{?BOOT:1}%{!?BOOT:0}
164 # BOOT version
165 %{__make} all \
166         CFLAGS="-m386 -Os -fno-strength-reduce -I%{_libdir}/bootdisk/usr/include" \
167         OTHERSTUFF=""
168 mv -f src/objs/libslang.a libslang.a-BOOT
169 %{__make} clean
170 %endif
171
172 # normal
173 %{__make} elf ELF_CFLAGS="%{rpmcflags} -fPIC"
174 %{__make} all CFLAGS="%{rpmcflags}"
175 %{__make} -C slsh DL_LIB="-ldl" ARCH="elf" CFLAGS="%{rpmcflags}"
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}}
180
181 %if %{?BOOT:1}%{!?BOOT:0}
182 # BOOT version
183 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}
184 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_includedir}
185 install libslang.a-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/libslang.a
186 install src/slang.h src/slcurses.h $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_includedir}
187 %endif
188
189 %{__make} install install-elf install-links \
190         DESTDIR=$RPM_BUILD_ROOT
191         
192 install slsh/slsh $RPM_BUILD_ROOT%{_bindir} 
193
194 cp -a modules examples demo src/curses $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
195
196 gzip -9nf doc/sgml/* doc/*.txt 
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post   -p /sbin/ldconfig
202 %postun -p /sbin/ldconfig
203
204 %files
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_bindir}/*
207 %attr(755,root,root) %{_libdir}/lib*.so.*.*
208
209 %files devel
210 %defattr(644,root,root,755)
211 %doc doc/html doc/*.gz
212 %attr(755,root,root) %{_libdir}/libslang.so
213 %{_includedir}
214 %{_examplesdir}/%{name}-%{version}
215
216 %files static
217 %defattr(644,root,root,755)
218 %{_libdir}/libslang.a
219
220 %if %{?BOOT:1}%{!?BOOT:0}
221 %files devel-BOOT
222 %defattr(644,root,root,755)
223 %{_libdir}/bootdisk%{_libdir}/*.a
224 %{_libdir}/bootdisk%{_includedir}
225 %endif
This page took 0.080902 seconds and 3 git commands to generate.