[521] | 1 | %define luaver %(pkg-config --variable=V lua || echo missing) |
---|
| 2 | %define lualibdir %{_libdir}/lua/%{luaver} |
---|
| 3 | |
---|
[12494] | 4 | Summary: Regular expression handling library for Lua |
---|
| 5 | Summary(ja): 正規表現を扱うための Lua ライブラリ |
---|
[521] | 6 | Name: lua-rex |
---|
[12494] | 7 | Version: 2.9.1 |
---|
[12212] | 8 | Release: 1%{?_dist_release} |
---|
[12494] | 9 | Group: programming |
---|
[12212] | 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
[12494] | 13 | License: MIT |
---|
| 14 | URL: http://rrthomas.github.io/lrexlib/ |
---|
[12212] | 15 | %global altver %(echo %{version} | sed -e 's/\\./-/g') |
---|
| 16 | Source0: https://github.com/rrthomas/lrexlib/archive/rel-%{altver}.tar.gz |
---|
| 17 | Source1: Makefile |
---|
| 18 | Source2: common.mak |
---|
| 19 | Source3: defaults.mak |
---|
| 20 | Source4: rex_onig.mak |
---|
| 21 | Source5: rex_pcre.mak |
---|
| 22 | Source6: rex_posix.mak |
---|
[521] | 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 24 | |
---|
| 25 | BuildRequires: oniguruma-devel |
---|
| 26 | BuildRequires: pcre-devel |
---|
[12494] | 27 | BuildRequires: lua |
---|
[521] | 28 | BuildRequires: lua-devel |
---|
| 29 | BuildRequires: pkgconfig |
---|
| 30 | BuildRequires: unzip |
---|
[12494] | 31 | Requires: lua(abi) = %{luaver} |
---|
[521] | 32 | Provides: lrexlib = %{version} |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | Lrexlib are bindings of three regular expression library APIs (POSIX, PCRE |
---|
| 36 | and Oniguruma) to Lua. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %prep |
---|
[12212] | 40 | %setup -q -n lrexlib-rel-%{altver} |
---|
[521] | 41 | |
---|
[12212] | 42 | cp -f %{SOURCE1} ./ |
---|
| 43 | cp -f %{SOURCE2} src/ |
---|
| 44 | cp -f %{SOURCE3} src/ |
---|
| 45 | cp -f %{SOURCE4} src/oniguruma/ |
---|
| 46 | cp -f %{SOURCE5} src/pcre/ |
---|
| 47 | cp -f %{SOURCE6} src/posix/ |
---|
[521] | 48 | |
---|
| 49 | %build |
---|
[12494] | 50 | make %{?_smp_mflags} LUA=lua LD=cc MYCFLAGS='%{optflags} -DVERSION=\"%{version}\" -fPIC %(pcre-config --cflags)' build |
---|
[521] | 51 | |
---|
| 52 | |
---|
| 53 | %install |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | install -d $RPM_BUILD_ROOT%{lualibdir} |
---|
| 56 | cp -P */*/rex_{onig,pcre,posix}.so* $RPM_BUILD_ROOT%{lualibdir} |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %check |
---|
[12494] | 60 | make %{?_smp_mflags} LUA=lua test |
---|
[521] | 61 | |
---|
| 62 | |
---|
| 63 | %clean |
---|
| 64 | rm -rf $RPM_BUILD_ROOT |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(-,root,root,-) |
---|
| 69 | %{lualibdir}/* |
---|
[12212] | 70 | %license LICENSE |
---|
| 71 | %doc ChangeLog NEWS README doc |
---|
[521] | 72 | |
---|
| 73 | |
---|
| 74 | %changelog |
---|
[12494] | 75 | * Fri Aug 21 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.1-1 |
---|
[12212] | 76 | - new upstream release. |
---|
[12494] | 77 | |
---|
| 78 | * Sat Sep 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-1 |
---|
| 79 | - new upstream release. |
---|
[12212] | 80 | - built with oniguruma-6.9.3. |
---|
| 81 | |
---|
[7003] | 82 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-6 |
---|
| 83 | - rebuild with pcre-8.31 |
---|
| 84 | |
---|
[3526] | 85 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 2.4.0-5 |
---|
| 86 | - rebuilt with rpm-4.8.1-3 |
---|
| 87 | |
---|
[521] | 88 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.0-4 |
---|
| 89 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
| 90 | |
---|
| 91 | * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.0-3 |
---|
| 92 | - rebuilt with rpm-4.8.0-3 (on ppc) |
---|
| 93 | |
---|
| 94 | * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.0-2 |
---|
| 95 | - added BR: unzip |
---|
| 96 | |
---|
| 97 | * Wed Feb 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
| 98 | - initial build for Vine Linux |
---|
| 99 | |
---|
| 100 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-5 |
---|
| 101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 102 | |
---|
| 103 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4 |
---|
| 104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 105 | |
---|
[12212] | 106 | * Tue Dec 23 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3 |
---|
[521] | 107 | - Compile shared library as PIC |
---|
| 108 | |
---|
| 109 | * Wed Dec 17 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2 |
---|
| 110 | - Add doc directory to documentation |
---|
| 111 | - Allow parallel make runs |
---|
| 112 | |
---|
| 113 | * Tue Dec 16 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-1 |
---|
| 114 | - Initial packaging |
---|