File: sqlite3-pcre2.spec

package info (click to toggle)
sqlite3-pcre2 0.1.1~git20220105-e3e02a4a-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 144 kB
  • sloc: sh: 193; ansic: 134; sql: 103; makefile: 58
file content (54 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (2)
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-pcre2
Version: 0.1.1
Release: 0

Summary: Perl-compatible regular expression support for the SQLite
License: Public Domain
Group: Databases
URL: https://github.com/christian-proust/sqlite3-pcre2

Source: %name-%version.tar.gz

Requires: libsqlite3 >= 3.3.8-alt2

# Automatically added by buildreq on Thu Nov 02 2006
BuildRequires: libpcre2-devel libsqlite3-devel sqlite3

#%if %{defined suse_version}
#Requires: libsqlite3 >= 3.3.8 libpcre2
#BuildRequires: pcre2-devel sqlite3-devel sqlite3
#%endif

#%if %{defined fedora} || %{defined mdkversion}
#Requires: libsqlite >= 3.3.8 libpcre2
#BuildRequires: pcre2-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 ./pcre2.so
SELECT "asdf" REGEXP "(?i)^A";
EOF
grep 1 out

%install
make DESTDIR=%buildroot%_libdir install

%files
%dir %_libdir/sqlite3
%_libdir/sqlite3/pcre2.so

%changelog
* Thu Nov 02 2006 Alexey Tourbin <at@altlinux.ru> 0.1-alt1
- initial revision