|
|
8fccf2 |
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
|
|
8fccf2 |
%global lualibdir %{_libdir}/lua/%{luaver}
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%define luacompatver 5.1
|
|
|
8fccf2 |
%define luacompatlibdir %{_libdir}/lua/%{luacompatver}
|
|
|
8fccf2 |
%define luacompatpkgdir %{_datadir}/lua/%{luacompatver}
|
|
|
8fccf2 |
%define lua51dir %{_builddir}/lua51-%{name}-%{version}-%{release}
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%global commit 8014725009e195ffb502bcd65ca4e93b60a1b21c
|
|
|
8fccf2 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
8fccf2 |
|
|
|
8fccf2 |
Name: lua-filesystem
|
|
|
8fccf2 |
Version: 1.6.3
|
|
|
8fccf2 |
Release: 7%{?dist}
|
|
|
8fccf2 |
Summary: File System Library for the Lua Programming Language
|
|
|
8fccf2 |
|
|
|
8fccf2 |
Group: Development/Libraries
|
|
|
8fccf2 |
License: MIT
|
|
|
8fccf2 |
URL: http://www.keplerproject.org/luafilesystem/
|
|
|
8fccf2 |
Source0: https://github.com/keplerproject/luafilesystem/archive/%{commit}/luafilesystem-%{version}.tar.gz
|
|
|
8fccf2 |
%if 0%{?el5}
|
|
|
8fccf2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
BuildRequires: lua-devel >= %{luaver}
|
|
|
8fccf2 |
%if 0%{?fedora}
|
|
|
8fccf2 |
Requires: lua(abi) = %{luaver}
|
|
|
8fccf2 |
%else
|
|
|
8fccf2 |
Requires: lua >= %{luaver}
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
BuildRequires: compat-lua >= %{luacompatver}, compat-lua-devel >= %{luacompatver}
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%description
|
|
|
8fccf2 |
LuaFileSystem is a Lua library developed to complement the set of functions
|
|
|
8fccf2 |
related to file systems offered by the standard Lua distribution.
|
|
|
8fccf2 |
|
|
|
8fccf2 |
LuaFileSystem offers a portable way to access the underlying directory
|
|
|
8fccf2 |
structure and file attributes.
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
%package compat
|
|
|
8fccf2 |
Summary: File System Library for the Lua Programming Language 5.1
|
|
|
8fccf2 |
Group: Development/Libraries
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%description compat
|
|
|
8fccf2 |
LuaFileSystem is a Lua library developed to complement the set of functions
|
|
|
8fccf2 |
related to file systems offered by the standard Lua distribution.
|
|
|
8fccf2 |
|
|
|
8fccf2 |
LuaFileSystem offers a portable way to access the underlying directory
|
|
|
8fccf2 |
structure and file attributes.
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%prep
|
|
|
8fccf2 |
%setup -q -n luafilesystem-%{commit}
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
rm -rf %{lua51dir}
|
|
|
8fccf2 |
cp -a . %{lua51dir}
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%build
|
|
|
8fccf2 |
make %{?_smp_mflags} PREFIX=%{_prefix} LUA_LIBDIR=%{lualibdir} CFLAGS="%{optflags} -fPIC"
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
pushd %{lua51dir}
|
|
|
8fccf2 |
make %{?_smp_mflags} PREFIX=%{_prefix} LUA_LIBDIR=%{luacompatlibdir} CFLAGS="-I%{_includedir}/lua-%{luacompatver} %{optflags} -fPIC"
|
|
|
8fccf2 |
popd
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%install
|
|
|
8fccf2 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8fccf2 |
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir}
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
pushd %{lua51dir}
|
|
|
8fccf2 |
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{luacompatlibdir}
|
|
|
8fccf2 |
popd
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%check
|
|
|
8fccf2 |
LUA_CPATH=$RPM_BUILD_ROOT%{lualibdir}/\?.so lua tests/test.lua
|
|
|
8fccf2 |
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?rhel}
|
|
|
8fccf2 |
%clean
|
|
|
8fccf2 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%files
|
|
|
8fccf2 |
%defattr(-,root,root,-)
|
|
|
8fccf2 |
%doc doc/us/*
|
|
|
8fccf2 |
%doc README
|
|
|
8fccf2 |
%{lualibdir}/*
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%if 0%{?fedora} >= 20
|
|
|
8fccf2 |
%files compat
|
|
|
8fccf2 |
%defattr(-,root,root,-)
|
|
|
8fccf2 |
%doc doc/us/*
|
|
|
8fccf2 |
%doc README
|
|
|
8fccf2 |
%{luacompatlibdir}/*
|
|
|
8fccf2 |
%endif
|
|
|
8fccf2 |
|
|
|
8fccf2 |
%changelog
|
|
|
8fccf2 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-7
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-6
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Fri May 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.6.3-5
|
|
|
8fccf2 |
- Handle lua not being in the default buildroot
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org>
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3-2
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu Jan 15 2015 Tom Callaway <spot@fedoraproject.org> - 1.6.3-1
|
|
|
8fccf2 |
- update to 1.6.3
|
|
|
8fccf2 |
- rebuild for lua 5.3
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-7
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-6
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu May 22 2014 Jan Kaluza <jkaluza@redhat.com> - 1.6.2-5
|
|
|
8fccf2 |
- build -compat subpackage against compat-lua
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-4
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Fri May 10 2013 Tom Callaway <spot@fedoraproject.org> - 1.6.2-3
|
|
|
8fccf2 |
- rebuild for lua 5.2
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Mon Oct 8 2012 Michel Salim <salimma@fedoraproject.org> - 1.6.2-1
|
|
|
8fccf2 |
- Update to 1.6.2
|
|
|
8fccf2 |
- Spec cleanup
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Tue Aug 16 2011 Michel Salim <salimma@fedoraproject.org> - 1.5.0-1
|
|
|
8fccf2 |
- Update to 1.5.0
|
|
|
8fccf2 |
- Enable tests
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Tue Sep 29 2009 Tim Niemueller <tim@niemueller.de> - 1.4.2-1
|
|
|
8fccf2 |
- Upgrade to latest stable release
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-3
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
|
|
|
8fccf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Thu May 08 2008 Tim Niemueller <tim@niemueller.de> - 1.4.1-1
|
|
|
8fccf2 |
- Upgrade to latest stable release
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-3
|
|
|
8fccf2 |
- Add patch to add missing include of stdlib.h
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-2
|
|
|
8fccf2 |
- Pass correct CFLAGS to make to produce proper debuginfo
|
|
|
8fccf2 |
|
|
|
8fccf2 |
* Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-1
|
|
|
8fccf2 |
- Initial package
|
|
|
8fccf2 |
|