]>
Commit | Line | Data |
---|---|---|
64d44f46 | 1 | %bcond_without luajit # use lua interpreter |
6299949c | 2 | |
64d44f46 JP |
3 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 mipsel ppc |
4 | %undefine with_luajit | |
6299949c | 5 | %endif |
6 | ||
f3205533 | 7 | Summary: WebKitGTK+ based browser |
0836801b | 8 | Summary(hu.UTF-8): WebKitGTK+ alapú böngésző |
7f49f6e8 | 9 | Summary(pl.UTF-8): Przeglądarka oparta na WebKitGTK+ |
f3205533 | 10 | Name: luakit |
64d44f46 JP |
11 | Version: 2.3 |
12 | Release: 1 | |
13 | Epoch: 1 | |
d58785c7 | 14 | License: GPL v3 |
f3205533 | 15 | Group: Applications |
64d44f46 JP |
16 | Source0: https://github.com/luakit/luakit/archive/%{version}/%{name}-%{version}.tar.gz |
17 | # Source0-md5: 056187ee95e0ac6eff84f7ff9fd2ed51 | |
7f49f6e8 | 18 | Patch0: %{name}-shebang.patch |
b5696a6e | 19 | URL: http://luakit.org/ |
64d44f46 JP |
20 | BuildRequires: glib2-devel |
21 | BuildRequires: gtk+3-devel | |
22 | BuildRequires: gtk-webkit4-devel | |
23 | %if %{with luajit} | |
24 | BuildRequires: luajit | |
25 | BuildRequires: luajit-devel | |
26 | %else | |
f3b8d5b4 | 27 | BuildRequires: lua51 |
f3205533 | 28 | BuildRequires: lua51-devel |
64d44f46 JP |
29 | %endif |
30 | BuildRequires: lua51-filesystem | |
8bdbe2f6 | 31 | BuildRequires: pkgconfig |
64d44f46 | 32 | BuildRequires: sqlite3-devel |
f3205533 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | luakit is a highly configurable, micro-browser framework based on the | |
37 | WebKit web content engine and the GTK+ toolkit. It is very fast, | |
ac76fd81 | 38 | extensible by Lua. |
f3205533 | 39 | |
7f49f6e8 | 40 | %description -l hu.UTF-8 |
0836801b ZU |
41 | luakit egy magas szinten konfigurálható, micro-böngésző keretrendszer |
42 | WebKit motorral és GTK+ grafikus felületettel. Nagyon gyors, és Lua | |
43 | nyelven bővíthető. | |
44 | ||
7f49f6e8 | 45 | %description -l pl.UTF-8 |
46 | luakit jest wysoko konfigurowalnym frameworkiem mikro-przeglądarki | |
47 | opartym na silniku webowym WebKit oraz GTK+. Jest szybki i | |
48 | rozszeezalny przez Lua. | |
49 | ||
f3205533 | 50 | %prep |
64d44f46 | 51 | %setup -q |
f3205533 | 52 | |
53 | %build | |
64d44f46 JP |
54 | export CFLAGS="%{rpmcflags}" |
55 | export LDFLAGS="%{rpmldflags}" | |
6299949c | 56 | %{__make} \ |
64d44f46 JP |
57 | CC="%{__cc}" \ |
58 | PREFIX=%{_prefix} \ | |
59 | LIBDIR=%{_libdir}/luakit \ | |
60 | MANPREFIX=%{_mandir} \ | |
61 | PIXMAPDIR=%{_pixmapsdir} \ | |
62 | APPDIR=%{_desktopdir} \ | |
63 | %{?with_luajit:USE_LUAJIT=1 LUA_BIN_NAME="/usr/bin/luajit -O2"} \ | |
64 | %{!?with_luajit:USE_LUAJIT=0 LUA_BIN_NAME="/usr/bin/lua5.1"} | |
f3205533 | 65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
64d44f46 JP |
68 | |
69 | install -d $RPM_BUILD_ROOT%{_libdir}/luakit | |
70 | ||
f3205533 | 71 | %{__make} install \ |
64d44f46 | 72 | DESTDIR=$RPM_BUILD_ROOT \ |
6299949c | 73 | PREFIX=%{_prefix} \ |
64d44f46 JP |
74 | LIBDIR=%{_libdir}/luakit \ |
75 | MANPREFIX=%{_mandir} \ | |
76 | PIXMAPDIR=%{_pixmapsdir} \ | |
77 | APPDIR=%{_desktopdir} \ | |
f3205533 | 78 | |
64d44f46 JP |
79 | if [ "%{_prefix}/lib" != "%{_libdir}" ]; then |
80 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/luakit/luakit.so $RPM_BUILD_ROOT%{_libdir}/luakit | |
81 | fi | |
f3205533 | 82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
64d44f46 | 88 | %doc AUTHORS README.md |
f3205533 | 89 | |
90 | %dir %{_sysconfdir}/xdg/luakit | |
b3a30aad | 91 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/luakit/*.lua |
8ea19bd5 | 92 | %attr(755,root,root) %{_bindir}/luakit |
64d44f46 JP |
93 | %dir %{_libdir}/luakit |
94 | %attr(755,root,root) %{_libdir}/luakit/luakit.so | |
f3205533 | 95 | %{_datadir}/luakit |
b3a30aad | 96 | %{_pixmapsdir}/luakit.png |
97 | %{_mandir}/man1/luakit.1* | |
98 | %{_desktopdir}/luakit.desktop |