-
Notifications
You must be signed in to change notification settings - Fork 23
/
luacxx.spec.in
49 lines (41 loc) · 1.23 KB
/
luacxx.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%if 0%{?fedora} > 19
%global luaver 5.2
%else
%global luaver 5.1
%endif
%global lualibdir %{_libdir}/lua/%{luaver}
%global luapkgdir %{_datadir}/lua/%{luaver}
Name: @PACKAGE_NAME@
# Change all release values back to 1 when bumping to a new version
Version: @PACKAGE_VERSION@
Release: @PACKAGE_RELEASE@%{?dist}
Summary: C++11 bindings and modules for Lua
Group: Applications/Internet
License: MIT
URL: @PACKAGE_URL@
Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: @build_cpu@
Requires: qt
Requires: lua >= %{luaver}
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.8
BuildRequires: lua-devel >= %{luaver}
BuildRequires: make automake autoconf libtool gcc-c++ boost-test boost-devel qt-devel
%description
Luacxx is a C++11 binding to Lua. It also contains many modules for C and C++ libraries.
%prep
%setup -q
%build
export CXX=g++
export CC=gcc
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{lualibdir}
ln -s %{_libdir}/lib@PACKAGE_NAME@.so %{buildroot}%{lualibdir}/@PACKAGE_NAME@.so
%files
%{_libdir}/*
%{_includedir}/@PACKAGE_NAME@/*
%{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@.m4
%{lualibdir}/luacxx.so