Skip to content

Commit

Permalink
Bump rpm version number. Use makefile in rpm spec file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Feb 7, 2010
1 parent a092893 commit 9253276
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions sqlite3-pcre.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Name: sqlite3-pcre
Version: 0.1
Release: alt1
Version: 0.1.1
Release: 0

Summary: Perl-compatible regular expression support for the SQLite
License: Public Domain
Group: Databases
URL: https://git.altlinux.org/people/at/packages/?p=sqlite3-pcre.git

Source: %name-%version.tar
Source: %name-%version.tar.gz

%if %{defined suse_version}
Requires: libsqlite3 >= 3.3.8 libpcre0
Expand All @@ -28,9 +28,7 @@ for regular expression matching.
%setup -q

%build
cflags=`pkg-config --cflags sqlite3 libpcre`
libs=`pkg-config --libs sqlite3 libpcre`
gcc -shared -o pcre.so $cflags %optflags %optflags_shared -W -Werror pcre.c $libs -Wl,-z,defs
make

#check
sqlite3 >out <<EOF
Expand All @@ -40,7 +38,7 @@ EOF
grep 1 out

%install
install -pD -m755 pcre.so %buildroot%_libdir/sqlite3/pcre.so
make DESTDIR=%buildroot%_libdir install

%files
%dir %_libdir/sqlite3
Expand Down

0 comments on commit 9253276

Please sign in to comment.