|
@@ -2,16 +2,25 @@
|
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
|
|
Name: lua-rex
|
|
|
-Version: 2.4.0
|
|
|
-Release: 6%{?_dist_release}
|
|
|
+Version: 2.9.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: Regular expression handling library for Lua
|
|
|
Summary(ja): 正規表現を扱うための Lua ライブラリ
|
|
|
-
|
|
|
Group: Development/Libraries
|
|
|
License: MIT
|
|
|
-URL: http://lrexlib.luaforge.net/
|
|
|
-Source0: http://luaforge.net/frs/download.php/3599/lrexlib-2.4.0.zip
|
|
|
-Patch0: lrexlib-2.4.0-pmake.patch
|
|
|
+URL: http://rrthomas.github.io/lrexlib/
|
|
|
+
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+%global altver %(echo %{version} | sed -e 's/\\./-/g')
|
|
|
+Source0: https://github.com/rrthomas/lrexlib/archive/rel-%{altver}.tar.gz
|
|
|
+Source1: Makefile
|
|
|
+Source2: common.mak
|
|
|
+Source3: defaults.mak
|
|
|
+Source4: rex_onig.mak
|
|
|
+Source5: rex_pcre.mak
|
|
|
+Source6: rex_posix.mak
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: oniguruma-devel
|
|
@@ -28,12 +37,17 @@ and Oniguruma) to Lua.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n lrexlib-%{version}
|
|
|
-%patch0 -p1 -b .pmake
|
|
|
+%setup -q -n lrexlib-rel-%{altver}
|
|
|
|
|
|
+cp -f %{SOURCE1} ./
|
|
|
+cp -f %{SOURCE2} src/
|
|
|
+cp -f %{SOURCE3} src/
|
|
|
+cp -f %{SOURCE4} src/oniguruma/
|
|
|
+cp -f %{SOURCE5} src/pcre/
|
|
|
+cp -f %{SOURCE6} src/posix/
|
|
|
|
|
|
%build
|
|
|
-make %{?_smp_mflags} LD=cc MYCFLAGS="%{optflags} -fPIC %(pcre-config --cflags)" build
|
|
|
+make %{?_smp_mflags} LD=cc MYCFLAGS='%{optflags} -DVERSION=\"%{version}\" -fPIC %(pcre-config --cflags)' build
|
|
|
|
|
|
|
|
|
%install
|
|
@@ -53,10 +67,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%{lualibdir}/*
|
|
|
-%doc ChangeLog LICENSE NEWS README doc
|
|
|
+%license LICENSE
|
|
|
+%doc ChangeLog NEWS README doc
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Sep 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-7
|
|
|
+- new upstream release.
|
|
|
+- built with oniguruma-6.9.3.
|
|
|
+
|
|
|
* Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-6
|
|
|
- rebuild with pcre-8.31
|
|
|
|
|
@@ -81,7 +100,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
-* Thu Dec 23 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3
|
|
|
+* Tue Dec 23 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3
|
|
|
- Compile shared library as PIC
|
|
|
|
|
|
* Wed Dec 17 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2
|