2014-06-09 16:05:18 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2014-06-04 20:44:03 +00:00
|
|
|
%define luaver 5.1
|
|
|
|
%else
|
2013-05-13 01:47:46 +00:00
|
|
|
%define luaver 5.2
|
2014-06-04 20:44:03 +00:00
|
|
|
%endif
|
2008-04-08 21:33:01 +00:00
|
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
%define luapkgdir %{_datadir}/lua/%{luaver}
|
2014-06-04 20:38:15 +00:00
|
|
|
%global commit 58016bbba40b063e8a98a7e9f14acfcd46f103d4
|
2013-05-13 01:47:46 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
Name: lua-posix
|
2014-06-04 20:38:15 +00:00
|
|
|
Version: 32
|
2014-08-17 07:56:48 +00:00
|
|
|
Release: 3%{?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
|
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 02:07:32 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2013-05-15 13:23:29 +00:00
|
|
|
BuildRequires: lua-lunit
|
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}
|
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
|
2014-06-04 20:38:15 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
2013-05-13 01:47:46 +00:00
|
|
|
%{_defaultdocdir}/luaposix/
|
2008-04-08 21:33:01 +00:00
|
|
|
%{lualibdir}/*
|
2011-10-06 16:02:26 +00:00
|
|
|
%{luapkgdir}/*.lua
|
2014-06-04 20:38:15 +00:00
|
|
|
%{luapkgdir}/posix/
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-08-17 07:56:48 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 07:14:45 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-06-04 20:38:15 +00:00
|
|
|
* Wed Jun 4 2014 Orion Poplawski <orion@cora.nwra.com> - 32-1
|
|
|
|
- Update to version 32
|
|
|
|
|
2013-08-03 08:26:17 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.28-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
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
|
|
|
|
|