2013-05-13 01:47:46 +00:00
|
|
|
%define luaver 5.2
|
2008-04-08 21:33:01 +00:00
|
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
%define luapkgdir %{_datadir}/lua/%{luaver}
|
2013-05-13 01:47:46 +00:00
|
|
|
%global commit 8f8058293efd9654e5fc7f7627a04f4db2b56f8f
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
Name: lua-posix
|
2013-05-13 01:47:46 +00:00
|
|
|
Version: 5.1.28
|
|
|
|
Release: 1%{?dist}
|
2008-04-08 21:33:01 +00:00
|
|
|
Summary: A POSIX library for Lua
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: Public Domain
|
|
|
|
URL: http://luaforge.net/projects/luaposix/
|
2013-05-13 01:47:46 +00:00
|
|
|
Source0: https://github.com/luaposix/luaposix/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
|
Patch0: luaposix-lua-5.2.patch
|
2008-04-08 21:33:01 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
|
2013-05-15 01:16:36 +00:00
|
|
|
BuildRequires: ncurses-devel, autoconf, automake, libtool
|
2008-04-08 21:33:01 +00:00
|
|
|
Requires: lua >= %{luaver}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a POSIX library for Lua which provides access to many POSIX features
|
|
|
|
to Lua programs.
|
|
|
|
|
|
|
|
%prep
|
2013-05-13 01:47:46 +00:00
|
|
|
%setup -q -n luaposix-%{commit}
|
|
|
|
%patch0 -p1 -b .lua-52
|
2013-05-15 01:16:36 +00:00
|
|
|
autoreconf -vif
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
%build
|
2011-10-06 16:02:26 +00:00
|
|
|
%configure --libdir=%{lualibdir} --datadir=/%{luapkgdir}
|
|
|
|
make %{?_smp_mflags}
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2011-10-06 16:02:26 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-05-13 01:47:46 +00:00
|
|
|
%doc README ChangeLog.old NEWS *.html
|
|
|
|
%{_defaultdocdir}/luaposix/
|
2008-04-08 21:33:01 +00:00
|
|
|
%{lualibdir}/*
|
2011-10-06 16:02:26 +00:00
|
|
|
%{luapkgdir}/*.lua
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-05-13 01:47:46 +00:00
|
|
|
* Sun May 12 2013 Tom Callaway <spot@fedoraproject.org> - 5.1.28-1
|
|
|
|
- update to 5.1.28, lua 5.2
|
|
|
|
|
2013-02-14 05:59:10 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.14-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 22:30:53 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.14-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 09:02:18 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-06 16:02:26 +00:00
|
|
|
* Tue Sep 27 2011 Michel Salim <salimma@fedoraproject.org> - 5.1.14-1
|
|
|
|
- Update to 5.1.14
|
|
|
|
|
2011-02-08 14:12:41 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-08-15 16:52:20 +00:00
|
|
|
* Sun Aug 15 2010 Tim Niemueller <tim@niemueller.de> - 5.1.7-1
|
|
|
|
- Update to 5.1.7
|
2010-08-15 17:13:46 +00:00
|
|
|
- Add -fPIC to CFLAGS
|
2010-08-15 16:52:20 +00:00
|
|
|
|
2009-07-25 11:24:59 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 22:03:08 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-22 00:08:55 +00:00
|
|
|
* Mon Dec 22 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1
|
|
|
|
- Update to 5.1.4
|
|
|
|
|
2008-04-08 21:33:01 +00:00
|
|
|
* Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-2
|
|
|
|
- Set proper CFLAGS for valid debuginfo
|
|
|
|
|
|
|
|
* Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-1
|
|
|
|
- Initial package
|
|
|
|
|