forked from ralight/sqlite3-pcre
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlite3-pcre.spec
54 lines (41 loc) · 1.12 KB
/
sqlite3-pcre.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Name: sqlite3-pcre
Version: 0.1.1
Release: 0
Summary: Perl-compatible regular expression support for the SQLite
License: Public Domain
Group: Databases
URL: http:https://git.altlinux.org/people/at/packages/?p=sqlite3-pcre.git
Source: %name-%version.tar.gz
Requires: libsqlite3 >= 3.3.8-alt2
# Automatically added by buildreq on Thu Nov 02 2006
BuildRequires: libpcre-devel libsqlite3-devel sqlite3
#%if %{defined suse_version}
#Requires: libsqlite3 >= 3.3.8 libpcre0
#BuildRequires: pcre-devel sqlite3-devel sqlite3
#%endif
#%if %{defined fedora} || %{defined mdkversion}
#Requires: libsqlite >= 3.3.8 libpcre0
#BuildRequires: pcre-devel sqlite-devel sqlite
#%endif
%description
This SQLite loadable extension enables the REGEXP operator,
which is not implemented by default, to call PCRE routines
for regular expression matching.
%prep
%setup -q
%build
make
#check
sqlite3 >out <<EOF
.load ./pcre.so
SELECT "asdf" REGEXP "(?i)^A";
EOF
grep 1 out
%install
make DESTDIR=%buildroot%_libdir install
%files
%dir %_libdir/sqlite3
%_libdir/sqlite3/pcre.so
%changelog
* Thu Nov 02 2006 Alexey Tourbin <[email protected]> 0.1-alt1
- initial revision