]>
Commit | Line | Data |
---|---|---|
bcb25c3d | 1 | Summary: Lightweight C++ API library for Lua |
f57cf942 | 2 | Summary(pl.UTF-8): Lekka biblioteka API C++ dla Lua |
bcb25c3d AG |
3 | Name: lutok |
4 | Version: 0.4 | |
f57cf942 | 5 | Release: 2 |
bcb25c3d | 6 | License: BSD |
f57cf942 JB |
7 | Group: Libraries |
8 | #Source0Download: https://github.com/jmmv/lutok/releases | |
bcb25c3d AG |
9 | Source0: https://github.com/jmmv/lutok/releases/download/%{name}-%{version}/lutok-%{version}.tar.gz |
10 | # Source0-md5: 5da43895d9209f8c19d79433dd046b3f | |
11 | URL: https://github.com/jmmv/lutok | |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
14 | BuildRequires: libatf-c++-devel >= 0.20 | |
15 | BuildRequires: libtool | |
16 | BuildRequires: lua53-devel | |
34c079d8 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bcb25c3d | 18 | |
f57cf942 | 19 | %define pkgtestsdir %{_libexecdir}/lutok/tests |
bcb25c3d AG |
20 | |
21 | %description | |
22 | Lutok provides thin C++ wrappers around the Lua C API to ease the | |
23 | interaction between C++ and Lua. These wrappers make intensive use of | |
24 | RAII to prevent resource leakage, expose C++-friendly data types, | |
25 | report errors by means of exceptions and ensure that the Lua stack is | |
26 | always left untouched in the face of errors. The library also provides | |
27 | a small subset of miscellaneous utility functions built on top of the | |
28 | wrappers. | |
29 | ||
30 | Lutok focuses on providing a clean and safe C++ interface; the | |
31 | drawback is that it is not suitable for performance-critical | |
32 | environments. In order to implement error-safe C++ wrappers on top of | |
33 | a Lua C binary library, Lutok adds several layers or abstraction and | |
34 | error checking that go against the original spirit of the Lua C API | |
35 | and thus degrade performance. | |
36 | ||
f57cf942 JB |
37 | %description -l pl.UTF-8 |
38 | Lutok udostępnia cienką warstwę obudowującą API C języka Lua, aby | |
39 | ułatwić współpracę między C++ a Lua. Interfejsy te intensywnie | |
40 | wykorzystują RAII (aby zapobiec wyciekowi zasobów), udostępniają | |
41 | typy danych przyjazne dla C++, zgłaszają błędy poprzez wyjątki i | |
42 | zapewniają, że stos Lua jest nienaruszony w przypadku błędów. | |
43 | Biblioteka udostępnia także mały podzbiór różnych funkcji | |
44 | narzędziowych, zbudowanych w oparciu o te interfejsy. | |
45 | ||
46 | Lutok skupia się na zapewnieniu czystego i bezpiecznego interfejsu | |
47 | C++; wadą jest to, że nie nadaje się w środowisku, gdzie krytyczna | |
48 | jest wydajność. Aby zaimplementować bezpieczne pod kątem błędów | |
49 | interfejsy C++ w oparciu o bibliotekę binarną C Lua, Lutok dodaje | |
50 | kilka warstw lub abstrakcji oraz sprawdzania błędów, niezgodnych z | |
51 | duchem API C Lua i zmniejszających wydajność. | |
52 | ||
bcb25c3d AG |
53 | %package -n liblutok |
54 | Summary: Lutok library | |
f57cf942 | 55 | Summary(pl.UTF-8): Biblioteka Lutok |
bcb25c3d AG |
56 | Group: Libraries |
57 | ||
58 | %description -n liblutok | |
59 | Lutok provides thin C++ wrappers around the Lua C API to ease the | |
60 | interaction between C++ and Lua. These wrappers make intensive use of | |
61 | RAII to prevent resource leakage, expose C++-friendly data types, | |
62 | report errors by means of exceptions and ensure that the Lua stack is | |
63 | always left untouched in the face of errors. The library also provides | |
64 | a small subset of miscellaneous utility functions built on top of the | |
65 | wrappers. | |
66 | ||
67 | Lutok focuses on providing a clean and safe C++ interface; the | |
68 | drawback is that it is not suitable for performance-critical | |
69 | environments. In order to implement error-safe C++ wrappers on top of | |
70 | a Lua C binary library, Lutok adds several layers or abstraction and | |
71 | error checking that go against the original spirit of the Lua C API | |
72 | and thus degrade performance. | |
73 | ||
f57cf942 JB |
74 | %description -n liblutok -l pl.UTF-8 |
75 | Lutok udostępnia cienką warstwę obudowującą API C języka Lua, aby | |
76 | ułatwić współpracę między C++ a Lua. Interfejsy te intensywnie | |
77 | wykorzystują RAII (aby zapobiec wyciekowi zasobów), udostępniają | |
78 | typy danych przyjazne dla C++, zgłaszają błędy poprzez wyjątki i | |
79 | zapewniają, że stos Lua jest nienaruszony w przypadku błędów. | |
80 | Biblioteka udostępnia także mały podzbiór różnych funkcji | |
81 | narzędziowych, zbudowanych w oparciu o te interfejsy. | |
82 | ||
83 | Lutok skupia się na zapewnieniu czystego i bezpiecznego interfejsu | |
84 | C++; wadą jest to, że nie nadaje się w środowisku, gdzie krytyczna | |
85 | jest wydajność. Aby zaimplementować bezpieczne pod kątem błędów | |
86 | interfejsy C++ w oparciu o bibliotekę binarną C Lua, Lutok dodaje | |
87 | kilka warstw lub abstrakcji oraz sprawdzania błędów, niezgodnych z | |
88 | duchem API C Lua i zmniejszających wydajność. | |
89 | ||
bcb25c3d | 90 | %package -n liblutok-devel |
f57cf942 JB |
91 | Summary: Header files for Lutok development |
92 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lutok | |
bcb25c3d AG |
93 | Requires: liblutok = %{version}-%{release} |
94 | Requires: lua-devel >= 5.1 | |
95 | ||
96 | %description -n liblutok-devel | |
f57cf942 JB |
97 | The header files to develop applications that use the Lutok C++ API to |
98 | Lua. | |
99 | ||
100 | %description -n liblutok-devel -l pl.UTF-8 | |
101 | Pliki nagłówkowe do tworzenia aplikacji wykorzystująch API C++ | |
102 | biblioteki Lutok do Lua. | |
bcb25c3d AG |
103 | |
104 | %package -n liblutok-static | |
105 | Summary: Static liblutok library | |
f57cf942 | 106 | Summary(pl.UTF-8): Statyczna biblioteka liblutok |
bcb25c3d AG |
107 | Group: Development/Libraries |
108 | Requires: liblutok-devel = %{version}-%{release} | |
109 | ||
110 | %description -n liblutok-static | |
111 | Static liblutok library. | |
112 | ||
f57cf942 JB |
113 | %description -n liblutok-static -l pl.UTF-8 |
114 | Statyczna biblioteka liblutok. | |
115 | ||
bcb25c3d AG |
116 | %prep |
117 | %setup -q | |
118 | ||
119 | %build | |
120 | %{__libtoolize} | |
523724f1 | 121 | %{__aclocal} -I m4 |
bcb25c3d AG |
122 | %{__autoconf} |
123 | %{__autoheader} | |
124 | %{__automake} | |
8a9130b1 | 125 | cat configure |
bcb25c3d | 126 | %configure \ |
bcb25c3d | 127 | --docdir=%{_docdir}/lutok-doc-%{version} \ |
f57cf942 JB |
128 | --htmldir=%{_docdir}/lutok-doc-%{version}/html \ |
129 | --with-atf \ | |
130 | --with-doxygen | |
bcb25c3d AG |
131 | |
132 | %{__make} \ | |
f57cf942 | 133 | testsdir=%{pkgtestsdir} |
bcb25c3d AG |
134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
f57cf942 | 137 | |
bcb25c3d AG |
138 | %{__make} install \ |
139 | DESTDIR=$RPM_BUILD_ROOT \ | |
140 | doc_DATA= \ | |
f57cf942 JB |
141 | testsdir=%{pkgtestsdir} |
142 | ||
143 | # obsoleted by pkg-config | |
144 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblutok.la | |
bcb25c3d AG |
145 | |
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
456dca95 JB |
149 | %post -n liblutok -p /sbin/ldconfig |
150 | %postun -n liblutok -p /sbin/ldconfig | |
bcb25c3d AG |
151 | |
152 | %files | |
153 | %defattr(644,root,root,755) | |
154 | %doc AUTHORS COPYING NEWS README | |
34c079d8 | 155 | %doc %{_docdir}/lutok-doc-%{version} |
bcb25c3d | 156 | %dir %{_libexecdir}/%{name} |
f57cf942 | 157 | %{pkgtestsdir} |
bcb25c3d AG |
158 | |
159 | %files -n liblutok | |
160 | %defattr(644,root,root,755) | |
f57cf942 JB |
161 | %attr(755,root,root) %{_libdir}/liblutok.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/liblutok.so.3 | |
bcb25c3d AG |
163 | |
164 | %files -n liblutok-devel | |
165 | %defattr(644,root,root,755) | |
bcb25c3d | 166 | %attr(755,root,root) %{_libdir}/liblutok.so |
f57cf942 | 167 | %{_includedir}/lutok |
bcb25c3d AG |
168 | %{_pkgconfigdir}/lutok.pc |
169 | ||
170 | %files -n liblutok-static | |
171 | %defattr(644,root,root,755) | |
172 | %{_libdir}/liblutok.a |