File lua51-luaevent.spec of Package lua51-luaevent

#
# spec file for package lua51-luaevent
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lua_archdir %{_libdir}/lua/5.1
%define lua_noarchdir %{_datadir}/lua/5.1

Name:           lua51-luaevent
Version:        0.4.3+git20140917
Release:        1.1
Summary:        A binding of libevent to Lua
License:        MIT
Group:          System/Libraries
Url:            https://github.com/harningt/luaevent
Source:         luaevent-0.4.3-git20140917.tar.gz
BuildRequires:  libevent-devel
Requires:       lua51-luasocket
Provides:       luaevent = %{version}
Obsoletes:      luaevent < %{version}
Provides:       lua51-event = %{version}
Obsoletes:      lua51-event < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#%if 0%{?suse_version} <= 1210
#BuildRequires:  lua-devel
#Requires:       lua
#%else
BuildRequires:  lua51-devel
Requires:       lua51
#%endif

%description
This is a binding of libevent to Lua. It will serve as a drop-in
replacement for copas, and eventually support more features
(async DNS, HTTP, RPC...).

%prep
%setup -q -n luaevent-%{version}

%build
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} INSTALL_DIR_BIN=%{lua_archdir}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc CHANGELOG README LICENSE
%dir %{_libdir}/lua/5.1/luaevent
%{lua_archdir}/luaevent/core.so
%{lua_noarchdir}/luaevent.lua

%changelog
* Mon Oct 20 2014 i@marguerite.su
- update version 0.4.3+git20140917
* Sat Feb 22 2014 i@marguerite.su
- update version 0.4.3.git20140223
- use native makeinstall
* Tue Feb  4 2014 i@marguerite.su
- update version 0.4.3.git20140204
  * core: fixes header definition to use luaopen_luaevent_core
* Sat Jun 29 2013 i@marguerite.su
- initial version 0.4.3.git20130629
openSUSE Build Service is sponsored by