2016-12-12 22:30:41 +00:00
|
|
|
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
2015-02-24 16:17:36 +00:00
|
|
|
%global lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
%global 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
|
2020-07-03 18:32:49 +00:00
|
|
|
Version: 34.1.1
|
2020-07-03 22:31:06 +00:00
|
|
|
Release: 2%{?dist}
|
2008-04-08 21:33:01 +00:00
|
|
|
Summary: A POSIX library for Lua
|
2018-07-25 12:01:45 +00:00
|
|
|
License: MIT
|
2008-04-08 21:33:01 +00:00
|
|
|
URL: http://luaforge.net/projects/luaposix/
|
2015-02-24 16:17:36 +00:00
|
|
|
Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz
|
2020-06-30 04:24:29 +00:00
|
|
|
# bit32 is gone in lua 5.4
|
|
|
|
# this file is a hack to add functions that use the lua native bitwise operators
|
|
|
|
# taken from lua-5.4.0-tests/bitwise.lua
|
|
|
|
Source1: bit32.lua
|
|
|
|
# This patch tells lua-posix to use the local bit32
|
|
|
|
Patch0: lua-posix-local-bit32.patch
|
|
|
|
# Use the same tricks that the helpers use for 5.2/5.3
|
2020-07-03 22:31:06 +00:00
|
|
|
# Other fixes for lua 5.4
|
|
|
|
Patch1: lua-posix-lua-5.4.patch
|
2018-07-09 17:06:48 +00:00
|
|
|
BuildRequires: gcc
|
2015-02-24 16:17:36 +00:00
|
|
|
BuildRequires: lua-devel
|
2018-09-28 18:04:26 +00:00
|
|
|
%{?lua_requires}
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a POSIX library for Lua which provides access to many POSIX features
|
|
|
|
to Lua programs.
|
|
|
|
|
|
|
|
%prep
|
2015-02-24 16:17:36 +00:00
|
|
|
%setup -q -n luaposix-release-v%{version}
|
2020-06-30 04:24:29 +00:00
|
|
|
%patch0 -p1 -b .pbit32
|
|
|
|
%patch1 -p1 -b .54
|
2015-02-26 22:01:01 +00:00
|
|
|
|
2008-04-08 21:33:01 +00:00
|
|
|
%build
|
2020-07-03 18:32:49 +00:00
|
|
|
build-aux/luke CFLAGS="%build_cflags"
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-07-03 18:32:49 +00:00
|
|
|
build-aux/luke PREFIX=%{buildroot}%{_prefix} install
|
2020-07-03 22:31:06 +00:00
|
|
|
install -pm0644 %{SOURCE1} %{buildroot}%{lua_pkgdir}/posix/
|
2020-07-03 18:32:49 +00:00
|
|
|
# Fix install location
|
|
|
|
# https://github.com/luaposix/luaposix/issues/331
|
|
|
|
%if "%_lib" != "lib"
|
|
|
|
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/%{_lib}
|
|
|
|
%endif
|
|
|
|
|
2011-10-06 16:02:26 +00:00
|
|
|
|
2020-07-03 18:32:49 +00:00
|
|
|
#check
|
|
|
|
# Tests require specl which is not yet packaged
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2020-07-03 18:32:49 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS ChangeLog.old NEWS.md README.md
|
2018-09-28 18:04:26 +00:00
|
|
|
%{lua_libdir}/*
|
|
|
|
%{lua_pkgdir}/posix/
|
2008-04-08 21:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-07-03 22:31:06 +00:00
|
|
|
* Fri Jul 03 2020 Orion Poplawski <orion@nwra.com> - 34.1.1-2
|
|
|
|
- Fix bit32 patch
|
|
|
|
- More lua 5.4 fixes
|
|
|
|
|
2020-07-03 18:32:49 +00:00
|
|
|
* Fri Jul 03 2020 Orion Poplawski <orion@nwra.com> - 34.1.1-1
|
|
|
|
- Update to 34.1.1 (bz#1849450)
|
|
|
|
|
2020-06-30 04:24:29 +00:00
|
|
|
* Mon Jun 29 2020 Tom Callaway <spot@fedoraproject.org> - 33.3.1-17
|
|
|
|
- hack this ancient beastie to work with lua 5.4
|
|
|
|
- maintainer, please update this to the current upstream release at your earliest convenience
|
|
|
|
|
2020-01-29 11:31:25 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2018-09-28 18:04:26 +00:00
|
|
|
* Wed Jan 22 2020 Owen Taylor <otaylor@redhat.com> - 33.3.1-15
|
|
|
|
- Use RPM macros from lua-devel
|
|
|
|
|
2019-07-25 15:23:41 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 09:11:33 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-14 18:08:07 +00:00
|
|
|
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 33.3.1-12
|
|
|
|
- Rebuilt for libcrypt.so.2 (#1666033)
|
|
|
|
|
2018-07-25 12:01:45 +00:00
|
|
|
* Wed Jul 25 2018 Bastien Nocera <bnocera@redhat.com> - 33.3.1-11
|
|
|
|
+ lua-posix-33.3.1-11
|
|
|
|
- Correct License field, it's been MIT since 2011, not
|
|
|
|
Public Domain (#1605203)
|
|
|
|
|
2018-07-13 09:28:47 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-08 00:22:47 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-20 22:07:10 +00:00
|
|
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 33.3.1-8
|
|
|
|
- Rebuilt for switch to libxcrypt
|
|
|
|
|
2017-08-03 02:49:13 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-30 13:27:47 +00:00
|
|
|
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 33.3.1-6
|
|
|
|
- Rebuild with binutils fix for ppc64le (#1475636)
|
|
|
|
|
2017-07-26 20:28:19 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 20:07:44 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-12 22:30:41 +00:00
|
|
|
* Mon Dec 12 2016 Orion Poplawski <orion@cora.nwra.com> - 33.3.1-3
|
|
|
|
- Handle lua and perl not being in buildroots
|
|
|
|
- Use %%license
|
|
|
|
- Cleanup spec
|
|
|
|
|
2016-02-04 04:34:21 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-17 15:47:58 +00:00
|
|
|
* Fri Jul 17 2015 Orion Poplawski <orion@cora.nwra.com> - 33.3.1-1
|
|
|
|
- Update to 33.3.1
|
|
|
|
|
2015-06-17 19:06:30 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 33.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-26 22:01:01 +00:00
|
|
|
* Thu Feb 26 2015 Orion Poplawski <orion@cora.nwra.com> - 33.2.1-1
|
|
|
|
- Update to 33.2.1
|
|
|
|
|
2015-02-24 16:17:36 +00:00
|
|
|
* Tue Feb 24 2015 Orion Poplawski <orion@cora.nwra.com> - 32-4
|
|
|
|
- Update spec to match packaging draft, rebuild for lua 5.3 (bug #1195707)
|
|
|
|
|
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
|
|
|
|
|