1 Summary: Lightweight C++ API library for Lua
2 Summary(pl.UTF-8): Lekka biblioteka API C++ dla Lua
8 #Source0Download: https://github.com/jmmv/lutok/releases
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
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define pkgtestsdir %{_libexecdir}/lutok/tests
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
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.
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.
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ść.
54 Summary: Lutok library
55 Summary(pl.UTF-8): Biblioteka Lutok
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
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.
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.
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ść.
90 %package -n liblutok-devel
91 Summary: Header files for Lutok development
92 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lutok
93 Requires: liblutok = %{version}-%{release}
94 Requires: lua-devel >= 5.1
96 %description -n liblutok-devel
97 The header files to develop applications that use the Lutok C++ API to
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.
104 %package -n liblutok-static
105 Summary: Static liblutok library
106 Summary(pl.UTF-8): Statyczna biblioteka liblutok
107 Group: Development/Libraries
108 Requires: liblutok-devel = %{version}-%{release}
110 %description -n liblutok-static
111 Static liblutok library.
113 %description -n liblutok-static -l pl.UTF-8
114 Statyczna biblioteka liblutok.
127 --docdir=%{_docdir}/lutok-doc-%{version} \
128 --htmldir=%{_docdir}/lutok-doc-%{version}/html \
133 testsdir=%{pkgtestsdir}
136 rm -rf $RPM_BUILD_ROOT
139 DESTDIR=$RPM_BUILD_ROOT \
141 testsdir=%{pkgtestsdir}
143 # obsoleted by pkg-config
144 %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblutok.la
147 rm -rf $RPM_BUILD_ROOT
149 %post -n liblutok -p /sbin/ldconfig
150 %postun -n liblutok -p /sbin/ldconfig
153 %defattr(644,root,root,755)
154 %doc AUTHORS COPYING NEWS README
155 %doc %{_docdir}/lutok-doc-%{version}
156 %dir %{_libexecdir}/%{name}
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/liblutok.so.*.*.*
162 %attr(755,root,root) %ghost %{_libdir}/liblutok.so.3
164 %files -n liblutok-devel
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_libdir}/liblutok.so
168 %{_pkgconfigdir}/lutok.pc
170 %files -n liblutok-static
171 %defattr(644,root,root,755)
172 %{_libdir}/liblutok.a