Update spec to match packaging draft, rebuild for lua 5.3 (bug #1195707)
This commit is contained in:
parent
72614edc3e
commit
aac3ea002d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/luaposix-5.1.14.tar.gz
|
/luaposix-5.1.14.tar.gz
|
||||||
/lua-posix-5.1.28-8f80582.tar.gz
|
/lua-posix-5.1.28-8f80582.tar.gz
|
||||||
/lua-posix-32-58016bb.tar.gz
|
/lua-posix-32-58016bb.tar.gz
|
||||||
|
/release-v32.tar.gz
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))")}
|
||||||
%define luaver 5.1
|
%global lualibdir %{_libdir}/lua/%{luaver}
|
||||||
%else
|
%global luapkgdir %{_datadir}/lua/%{luaver}
|
||||||
%define luaver 5.2
|
|
||||||
%endif
|
|
||||||
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
||||||
%define luapkgdir %{_datadir}/lua/%{luaver}
|
|
||||||
%global commit 58016bbba40b063e8a98a7e9f14acfcd46f103d4
|
%global commit 58016bbba40b063e8a98a7e9f14acfcd46f103d4
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
|
|
||||||
Name: lua-posix
|
Name: lua-posix
|
||||||
Version: 32
|
Version: 32
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A POSIX library for Lua
|
Summary: A POSIX library for Lua
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://luaforge.net/projects/luaposix/
|
URL: http://luaforge.net/projects/luaposix/
|
||||||
Source0: https://github.com/luaposix/luaposix/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
|
BuildRequires: lua-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: lua-lunit
|
BuildRequires: lua-lunit
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
|
Requires: lua(abi) = %{luaver}
|
||||||
|
%else
|
||||||
Requires: lua >= %{luaver}
|
Requires: lua >= %{luaver}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a POSIX library for Lua which provides access to many POSIX features
|
This is a POSIX library for Lua which provides access to many POSIX features
|
||||||
to Lua programs.
|
to Lua programs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n luaposix-%{commit}
|
%setup -q -n luaposix-release-v%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=%{lualibdir} --datadir=/%{luapkgdir}
|
%configure --libdir=%{lualibdir} --datadir=/%{luapkgdir}
|
||||||
make %{?_smp_mflags}
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -40,7 +40,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make V=1 check
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -56,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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)
|
||||||
|
|
||||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32-3
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user