Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

5 changed files with 97 additions and 47 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
SOURCES/release-v33.3.1.tar.gz
/luaposix-*.tar.gz
/release-*.tar.gz
/lua-posix-*.tar.gz

View File

@ -1 +0,0 @@
200d9a6e0b0a62b2705e3405c99e5c5e70bfd8ce SOURCES/release-v33.3.1.tar.gz

View File

@ -1,61 +1,58 @@
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
%global lualibdir %{_libdir}/lua/%{luaver}
%global luapkgdir %{_datadir}/lua/%{luaver}
%global commit 58016bbba40b063e8a98a7e9f14acfcd46f103d4
%global shortcommit %(c=%{commit}; echo ${c:0:7})
* Mon Feb 14 2022 Andrew Hughes <gnu.andrew@redhat.com> - 35.0-6
- Pass LDFLAGS to the build so RPM linker flags are used and annocheck passes.
- Add patch from upstream to fix propagation of LDFLAGS into build system.
Name: lua-posix
Version: 33.3.1
Release: 9%{?dist}
Summary: A POSIX library for Lua
Group: Development/Libraries
License: MIT
URL: http://luaforge.net/projects/luaposix/
Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz
BuildRequires: lua-devel
BuildRequires: ncurses-devel
BuildRequires: lua-lunit
BuildRequires: perl-interpreter
%if 0%{?fedora} || 0%{?rhel} >= 7
Requires: lua(abi) = %{luaver}
%else
Requires: lua >= %{luaver}
%endif
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 35.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
%description
This is a POSIX library for Lua which provides access to many POSIX features
to Lua programs.
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 35.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
%prep
%setup -q -n luaposix-release-v%{version}
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 35.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 35.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
%build
%configure --libdir=%{lualibdir} --datadir=/%{luapkgdir}
make V=1 %{?_smp_mflags}
* Fri Jul 10 2020 Orion Poplawski <orion@nwra.com> - 35.0-1
- Update to 35.0
* Fri Jul 03 2020 Orion Poplawski <orion@nwra.com> - 34.1.1-2
- Fix bit32 patch
- More lua 5.4 fixes
%install
make install DESTDIR=$RPM_BUILD_ROOT
* Fri Jul 03 2020 Orion Poplawski <orion@nwra.com> - 34.1.1-1
- Update to 34.1.1 (bz#1849450)
* 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
%check
make V=1 check
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 22 2020 Owen Taylor <otaylor@redhat.com> - 33.3.1-15
- Use RPM macros from lua-devel
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_defaultdocdir}/luaposix/
%{lualibdir}/*
%{luapkgdir}/*.lua
%{luapkgdir}/posix/
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
%changelog
* Fri Jul 20 2018 Bastien Nocera <bnocera@redhat.com> - 33.3.1-9
+ lua-posix-33.3.1-9
- Correct License field, it's MIT, not Public Domain
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 33.3.1-12
- Rebuilt for libcrypt.so.2 (#1666033)
* 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)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 33.3.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 33.3.1-8
- Rebuilt for switch to libxcrypt

51
lua-posix.spec Normal file
View File

@ -0,0 +1,51 @@
# Tests require specl which is not yet packaged
%bcond_with check
Name: lua-posix
Version: 36.2.1
Release: %autorelease
Summary: POSIX library for Lua
License: MIT
URL: http://luaforge.net/projects/luaposix/
Source0: https://github.com/luaposix/luaposix/archive/v%{version}/lua-posix-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: lua-devel
%{?lua_requires}
%description
This is a POSIX library for Lua which provides access to many POSIX features
to Lua programs.
%prep
%autosetup -p1 -n luaposix-%{version}
%build
build-aux/luke CFLAGS="%build_cflags" LDFLAGS="%build_ldflags"
%install
build-aux/luke install PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{lua_libdir}
%check
lua -e \
'package.cpath="%{buildroot}%{lua_libdir}/?.so;"..package.cpath;
package.path="%{buildroot}%{lua_pkgdir}/?.lua;"..package.path;
local posix = require("posix.errno"); print("Hello from "..posix.version.."!");'
%if %{with check}
lua ./spec/spec_helper.lua
%endif
%files
%license LICENSE
%doc AUTHORS NEWS.md README.md
%{lua_libdir}/*
%{lua_pkgdir}/posix/
%changelog
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (lua-posix-36.2.1.tar.gz) = cd7deeaa9179306f90bafdc6cfb2668cf42d5378e72e5baa09419198f2d42c5eab5d881e5584ac511f317bbfd850f2ad46b8cb743f1ae5e1a96f8153e03599d8