|
|
8c1da1f |
%define luaver 5.1
|
|
|
8c1da1f |
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
8c1da1f |
%define luapkgdir %{_datadir}/lua/%{luaver}
|
|
|
8c1da1f |
|
|
|
8c1da1f |
Name: lua-socket
|
|
|
8c1da1f |
Version: 2.0.2
|
|
|
4f21d73 |
Release: 7%{?dist}
|
|
|
8c1da1f |
Summary: Network support for the Lua language
|
|
|
8c1da1f |
|
|
|
8c1da1f |
Group: Development/Libraries
|
|
|
8c1da1f |
License: MIT
|
|
|
8c1da1f |
URL: http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
|
|
|
8c1da1f |
Source0: http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz
|
|
Matthew Garrett |
ea794d2 |
Patch0: lua-socket-unix-sockets.patch
|
|
|
8c1da1f |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8c1da1f |
|
|
|
8c1da1f |
BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
|
|
|
8c1da1f |
BuildRequires: /usr/bin/iconv
|
|
|
8c1da1f |
Requires: lua >= %{luaver}
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%description
|
|
|
8c1da1f |
LuaSocket is a Lua extension library that is composed by two parts: a C core
|
|
|
8c1da1f |
that provides support for the TCP and UDP transport layers, and a set of Lua
|
|
|
8c1da1f |
modules that add support for functionality commonly needed by applications
|
|
|
8c1da1f |
that deal with the Internet.
|
|
|
8c1da1f |
|
|
|
8c1da1f |
Among the support modules, the most commonly used implement the SMTP, HTTP
|
|
|
8c1da1f |
and FTP. In addition there are modules for MIME, URL handling and LTN12.
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%prep
|
|
|
8c1da1f |
%setup -q -n luasocket-%{version}
|
|
Matthew Garrett |
ea794d2 |
%patch0 -p1 -b .unix
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%build
|
|
|
8c1da1f |
make %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
|
|
|
8c1da1f |
/usr/bin/iconv -f ISO8859-1 -t UTF8 LICENSE >LICENSE.UTF8
|
|
|
8c1da1f |
mv -f LICENSE.UTF8 LICENSE
|
|
|
8c1da1f |
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%install
|
|
|
8c1da1f |
rm -rf $RPM_BUILD_ROOT
|
|
|
8c1da1f |
make install INSTALL_TOP_LIB=$RPM_BUILD_ROOT%{lualibdir} INSTALL_TOP_SHARE=$RPM_BUILD_ROOT%{luapkgdir}
|
|
|
8c1da1f |
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%clean
|
|
|
8c1da1f |
rm -rf $RPM_BUILD_ROOT
|
|
|
8c1da1f |
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%files
|
|
|
8c1da1f |
%defattr(-,root,root,-)
|
|
|
8c1da1f |
%doc doc/*
|
|
|
8c1da1f |
%doc README LICENSE
|
|
|
8c1da1f |
%{lualibdir}/*
|
|
|
8c1da1f |
%{luapkgdir}/*
|
|
|
8c1da1f |
|
|
|
8c1da1f |
|
|
|
8c1da1f |
%changelog
|
|
|
4f21d73 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-7
|
|
|
4f21d73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4f21d73 |
|
|
Matthew Garrett |
ea794d2 |
* Wed Oct 10 2011 Matthew Garrett <mjg@redhat.com> - 2.0.2-6
|
|
Matthew Garrett |
ea794d2 |
- Build support for Unix domain sockets (rhbz: #720692)
|
|
Matthew Garrett |
ea794d2 |
|
|
|
63ccb7d |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-5
|
|
|
63ccb7d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
63ccb7d |
|
|
|
7920905 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-4
|
|
|
7920905 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7920905 |
|
|
|
bfd9e51 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
|
|
|
bfd9e51 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
bfd9e51 |
|
|
|
8c1da1f |
* Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 2.0.2-2
|
|
|
8c1da1f |
- Pass proper CFLAGS to produce valid debuginfo
|
|
|
8c1da1f |
- Pass LICENSE file through iconv to produce proper UTF8
|
|
|
8c1da1f |
|
|
|
8c1da1f |
* Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 2.0.2-1
|
|
|
8c1da1f |
- Initial package
|
|
|
8c1da1f |
|