[521] | 1 | %define luaver %(pkg-config --variable=V lua || echo missing) |
---|
| 2 | %define lualibdir %{_libdir}/lua/%{luaver} |
---|
| 3 | |
---|
| 4 | Name: lua-rex |
---|
[12212] | 5 | Version: 2.9.0 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[521] | 7 | Summary: Regular expression handling library for Lua |
---|
| 8 | Summary(ja): 正規表現を扱うための Lua ライブラリ |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | License: MIT |
---|
[12212] | 11 | URL: http://rrthomas.github.io/lrexlib/ |
---|
| 12 | |
---|
| 13 | Vendor: Project Vine |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | |
---|
| 16 | %global altver %(echo %{version} | sed -e 's/\\./-/g') |
---|
| 17 | Source0: https://github.com/rrthomas/lrexlib/archive/rel-%{altver}.tar.gz |
---|
| 18 | Source1: Makefile |
---|
| 19 | Source2: common.mak |
---|
| 20 | Source3: defaults.mak |
---|
| 21 | Source4: rex_onig.mak |
---|
| 22 | Source5: rex_pcre.mak |
---|
| 23 | Source6: rex_posix.mak |
---|
[521] | 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 25 | |
---|
| 26 | BuildRequires: oniguruma-devel |
---|
| 27 | BuildRequires: pcre-devel |
---|
| 28 | BuildRequires: lua-devel |
---|
| 29 | BuildRequires: pkgconfig |
---|
| 30 | BuildRequires: unzip |
---|
| 31 | Requires: lua = %{luaver} |
---|
| 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 |
---|
[12212] | 50 | make %{?_smp_mflags} 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 |
---|
| 60 | make %{?_smp_mflags} test |
---|
| 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 |
---|
[12212] | 75 | * Sat Sep 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-7 |
---|
| 76 | - new upstream release. |
---|
| 77 | - built with oniguruma-6.9.3. |
---|
| 78 | |
---|
[7003] | 79 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-6 |
---|
| 80 | - rebuild with pcre-8.31 |
---|
| 81 | |
---|
[3526] | 82 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 2.4.0-5 |
---|
| 83 | - rebuilt with rpm-4.8.1-3 |
---|
| 84 | |
---|
[521] | 85 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.0-4 |
---|
| 86 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
| 87 | |
---|
| 88 | * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.0-3 |
---|
| 89 | - rebuilt with rpm-4.8.0-3 (on ppc) |
---|
| 90 | |
---|
| 91 | * Wed Feb 03 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.0-2 |
---|
| 92 | - added BR: unzip |
---|
| 93 | |
---|
| 94 | * Wed Feb 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
| 95 | - initial build for Vine Linux |
---|
| 96 | |
---|
| 97 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-5 |
---|
| 98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 99 | |
---|
| 100 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-4 |
---|
| 101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 102 | |
---|
[12212] | 103 | * Tue Dec 23 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3 |
---|
[521] | 104 | - Compile shared library as PIC |
---|
| 105 | |
---|
| 106 | * Wed Dec 17 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2 |
---|
| 107 | - Add doc directory to documentation |
---|
| 108 | - Allow parallel make runs |
---|
| 109 | |
---|
| 110 | * Tue Dec 16 2008 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-1 |
---|
| 111 | - Initial packaging |
---|