108 lines
3.3 KiB
RPMSpec
108 lines
3.3 KiB
RPMSpec
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
%define luaver 5.1
|
|
%else
|
|
%define luaver 5.2
|
|
%endif
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
%define luapkgdir %{_datadir}/lua/%{luaver}
|
|
%global commit 58016bbba40b063e8a98a7e9f14acfcd46f103d4
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
Name: lua-posix
|
|
Version: 32
|
|
Release: 3%{?dist}
|
|
Summary: A POSIX library for Lua
|
|
Group: Development/Libraries
|
|
License: Public Domain
|
|
URL: http://luaforge.net/projects/luaposix/
|
|
Source0: https://github.com/luaposix/luaposix/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: lua-lunit
|
|
Requires: lua >= %{luaver}
|
|
|
|
%description
|
|
This is a POSIX library for Lua which provides access to many POSIX features
|
|
to Lua programs.
|
|
|
|
%prep
|
|
%setup -q -n luaposix-%{commit}
|
|
|
|
%build
|
|
%configure --libdir=%{lualibdir} --datadir=/%{luapkgdir}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
%check
|
|
make check
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
%{_defaultdocdir}/luaposix/
|
|
%{lualibdir}/*
|
|
%{luapkgdir}/*.lua
|
|
%{luapkgdir}/posix/
|
|
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed Jun 4 2014 Orion Poplawski <orion@cora.nwra.com> - 32-1
|
|
- Update to version 32
|
|
|
|
* 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
|
|
|
|
* Sun May 12 2013 Tom Callaway <spot@fedoraproject.org> - 5.1.28-1
|
|
- update to 5.1.28, lua 5.2
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* Tue Sep 27 2011 Michel Salim <salimma@fedoraproject.org> - 5.1.14-1
|
|
- Update to 5.1.14
|
|
|
|
* 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
|
|
|
|
* Sun Aug 15 2010 Tim Niemueller <tim@niemueller.de> - 5.1.7-1
|
|
- Update to 5.1.7
|
|
- Add -fPIC to CFLAGS
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* Mon Dec 22 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1
|
|
- Update to 5.1.4
|
|
|
|
* 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
|
|
|