%global the_so_name mosquitto.so Name: lua-mosquitto Version: 0.2 Release: 1%{?dist} License: MIT Summary: Lua bindings to libmosquitto Url: https://github.com/flukso/%{name}/ Source: https://github.com/flukso/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: lua >= 5.1 BuildRequires: lua-devel >= 5.1 BuildRequires: mosquitto-devel Requires: lua(abi) = %{lua_version} %description %{name} is a Lua library that provides complete bindings to the Eclipse Mosquitto message broker (https://mosquitto.org) API. %prep %setup -q %build # To make sure we are using proper flags export CFLAGS="%{optflags}" export LDFLAGS="%{?__global_ldflags}" export OPT= %make_build %{the_so_name} %install %make_install %files %license LICENSE %doc README.md %{lua_libdir}/%{the_so_name} %changelog * Tue Sep 26 2017 Damian Wrobel - 0.2-1 - Initial RPM release.