source: projects/specs/trunk/l/lua-rex/lua-rex-vl.spec @ 12494

Revision 12494, 3.2 KB checked in by tomop, 3 years ago (diff)

updated 4 packages

apt-0.5.15lorg3.95-30.git522

lua-rex-2.9.1-1

lua-5.4.0-1

rpm-4.12.0.1-4

RevLine 
[521]1%define luaver %(pkg-config --variable=V lua || echo missing)
2%define lualibdir %{_libdir}/lua/%{luaver}
3
[12494]4Summary:        Regular expression handling library for Lua
5Summary(ja):    正規表現を扱うための Lua ライブラリ
[521]6Name:           lua-rex
[12494]7Version:        2.9.1
[12212]8Release:        1%{?_dist_release}
[12494]9Group:          programming
[12212]10Vendor:         Project Vine
11Distribution:   Vine Linux
12
[12494]13License:        MIT
14URL:            http://rrthomas.github.io/lrexlib/
[12212]15%global         altver %(echo %{version} | sed -e 's/\\./-/g')
16Source0:        https://github.com/rrthomas/lrexlib/archive/rel-%{altver}.tar.gz
17Source1:        Makefile
18Source2:        common.mak
19Source3:        defaults.mak
20Source4:        rex_onig.mak
21Source5:        rex_pcre.mak
22Source6:        rex_posix.mak
[521]23BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
24
25BuildRequires:  oniguruma-devel
26BuildRequires:  pcre-devel
[12494]27BuildRequires:  lua
[521]28BuildRequires:  lua-devel
29BuildRequires:  pkgconfig
30BuildRequires:  unzip
[12494]31Requires:       lua(abi) = %{luaver}
[521]32Provides:       lrexlib = %{version}
33
34%description
35Lrexlib are bindings of three regular expression library APIs (POSIX, PCRE
36and Oniguruma) to Lua.
37
38
39%prep
[12212]40%setup -q -n lrexlib-rel-%{altver}
[521]41
[12212]42cp -f %{SOURCE1} ./
43cp -f %{SOURCE2} src/
44cp -f %{SOURCE3} src/
45cp -f %{SOURCE4} src/oniguruma/
46cp -f %{SOURCE5} src/pcre/
47cp -f %{SOURCE6} src/posix/
[521]48
49%build
[12494]50make %{?_smp_mflags} LUA=lua LD=cc MYCFLAGS='%{optflags} -DVERSION=\"%{version}\" -fPIC %(pcre-config --cflags)' build
[521]51
52
53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT%{lualibdir}
56cp -P */*/rex_{onig,pcre,posix}.so* $RPM_BUILD_ROOT%{lualibdir}
57
58
59%check
[12494]60make %{?_smp_mflags} LUA=lua test
[521]61
62
63%clean
64rm -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
Note: See TracBrowser for help on using the repository browser.