Browse Source

gd, jasper, jasper1, libtiff, openjpeg2, sqlite3

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10956 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
2c7cff59c1

+ 13 - 2
g/gd/gd-vl.spec

@@ -4,10 +4,12 @@
 Summary: A graphics library for drawing .png files.
 Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
 Name: gd
-Version: 2.2.1
+Version: 2.2.4
 Release: 1%{_dist_release}
 Source0: https://bitbucket.org/libgd/gd-libgd/downloads/libgd-%{version}.tar.xz
 Patch0: gd-2.1.0-multilib.patch
+Patch1: issue357.patch
+Patch2: issue364.patch
 License: BSD-style
 URL: http://www.libgd.org/
 Group: System Environment/Libraries
@@ -26,6 +28,8 @@ BuildRequires: libX11-devel
 BuildRequires: libXpm-devel
 BuildRequires: zlib-devel
 BuildRequires: pkgconfig
+# for test
+BuildRequires: TrueType-vlgothic
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -143,6 +147,8 @@ If you're installing the gd graphics library, you must install gd-devel.
 %prep
 %setup -q -n libgd-%{version}
 %patch0 -p1 -b .mlib
+%patch1 -p1 -b .issue357
+%patch2 -p1 -b .issue364
 
 : regenerate autotool stuff
 if [ -f configure ]; then
@@ -183,8 +189,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
 rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
 
 %check
-
+%ifarch x86_64
 make %{?_smp_mflags} check
+%endif
 
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
@@ -224,6 +231,10 @@ make %{?_smp_mflags} check
 %endif
 
 %changelog
+* Sun Mar 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.4-1
+- new upstream release.
+- made to skip %%check on i686.
+
 * Wed May 25 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.1-1
 - new upstream release.
 - removed Patch1000 (fixed in upstream).

+ 39 - 75
j/jasper/jasper-vl.spec

@@ -1,52 +1,18 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+%define _unpackaged_files_terminate_build 1
 
 Name:        jasper
 Summary:     implementation of the JPEG-2000 standard, Part 1
-Version:     1.900.1
-Release:     11%{?_dist_release}
+Version:     2.0.12
+Release:     1%{?_dist_release}
 
 Group:       Applications/Graphics
 License:     Modified BSD (see LICENSE)
 URL:         http://www.ece.uvic.ca/~mdadams/jasper/
 
-Source:      %{name}-%{version}.zip
-
-Patch1: jasper-1.701.0-GL.patch
-# autoconf/automake bits of patch1
-Patch2: jasper-1.701.0-GL-ac.patch
-# CVE-2007-2721 (bug #240397)
-# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413041;msg=88
-Patch3: patch-libjasper-stepsizes-overflow.diff
-# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
-Patch4: jpc_dec.c.patch
-# OpenBSD hardening patches addressing couple of possible integer overflows
-# during the memory allocations
-# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3520
-Patch5: jasper-1.900.1-CVE-2008-3520.patch
-# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3522
-Patch6: jasper-1.900.1-CVE-2008-3522.patch
-# add pkg-config support
-Patch7: jasper-pkgconfig.patch
-
-Patch8: jasper-1.900.1-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch
-
-Patch9: jasper-CVE-2014-9029.patch
-Patch10: jasper-CVE-2014-8137.patch
-Patch11: jasper-CVE-2014-8138.patch
-
-# Issues found by static analysis of code
-Patch110: jasper-1.900.1-Coverity-BAD_SIZEOF.patch
-Patch111: jasper-1.900.1-Coverity-CHECKED_RETURN.patch
-Patch112: jasper-1.900.1-Coverity-FORWARD_NULL.patch
-Patch113: jasper-1.900.1-Coverity-NULL_RETURNS.patch
-Patch114: jasper-1.900.1-Coverity-RESOURCE_LEAK.patch
-Patch115: jasper-1.900.1-Coverity-UNREACHABLE.patch
-Patch116: jasper-1.900.1-Coverity-UNUSED_VALUE.patch
-
-# from debian
-Patch1000: 09-CVE-2016-1577.patch
-Patch1001: 10-CVE-2016-2089.patch
-Patch1002: 11-CVE-2016-2116.patch
+Source:      %{name}-version-%{version}.tar.gz
+
+Patch1: jasper-1.900.1-CVE-2008-3520.patch
 
 BuildRoot:   %{_tmppath}/%{name}-%{version}-root
 BuildRequires: autoconf automake libtool
@@ -54,6 +20,7 @@ BuildRequires: freeglut-devel
 BuildRequires: libGLU-devel
 BuildRequires: libjpeg-devel
 BuildRequires: pkgconfig
+BuildRequires: cmake
 
 Requires:    %{name}-libs = %{version}-%{release}
 
@@ -103,49 +70,41 @@ This package contains runtime libraries for JasPer.
 
 
 %prep
-%setup -q -n %{name}-%{version}
-
-%patch1 -p1 -b .GL
-%patch2 -p1 -b .GL-ac
-%patch3 -p1 -b .CVE-2007-2721
-%patch4 -p1 -b .jpc_dec_assertion
-%patch5 -p1 -b .CVE-2008-3520
-%patch6 -p1 -b .CVE-2008-3522
-%patch7 -p1 -b .pkgconfig
-%patch8 -p1 -b .CVE-2011-4516-4517
-%patch9 -p1 -b .CVE-2014-9029
-%patch10 -p1 -b .CVE-2014-8137-variant2
-%patch11 -p1 -b .CVE-2014-8138
-
-%patch110 -p1 -b .BAD_SIZEOF
-%patch111 -p1 -b .CHECKED_RETURN
-%patch112 -p1 -b .FORWARD_NULL
-%patch113 -p1 -b .NULL_RETURNS
-%patch114 -p1 -b .RESOURCE_LEAK
-%patch115 -p1 -b .UNREACHABLE
-%patch116 -p1 -b .UNUSED_VALUE
-
-%patch1000 -p1 -b .CVE-2016-1577
-%patch1001 -p1 -b .CVE-2016-2089
-%patch1002 -p1 -b .CVE-2016-2116
-
-autoreconf --verbose --force --install
+%setup -q -n %{name}-version-%{version}
+
+%patch1 -p1 -b .CVE-2008-3520
 
 %build
-CFLAGS="%{optflags} -fno-strict-overflow" \
-%configure --enable-shared --disable-static
+mkdir -p builder
 
-make %{?_smp_mflags}
+%cmake -G "Unix Makefiles" \
+       -H%{_builddir}/%{name}-version-%{version} \
+       -B%{_builddir}/%{name}-version-%{version}/builder
+
+pushd builder
+make %{?_smp_mflags} clean all
+popd
 
 %install
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
+pushd builder
+make install DESTDIR=%{buildroot}
 
 # remove .la
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+rm -f %{buildroot}/%{_libdir}/*.la
+
+popd
+
+rm -rf %{buildroot}%{_docdir}/JasPer
+
+%check
+pushd builder
+LD_PRELOAD=`pwd`/src/libjasper/libjasper.so \
+make test
+popd
 
 %clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 
 %post libs -p /sbin/ldconfig
 
@@ -159,7 +118,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
 %defattr(-,root,root)
 %{!?_licensedir:%global license %%doc}
 %license COPYRIGHT LICENSE
-%doc ChangeLog INSTALL NEWS README doc
+%doc INSTALL README doc/README doc/jasper.pdf doc/jpeg2000.pdf
 %{_bindir}/*
 %{_mandir}/man1/*
 
@@ -186,6 +145,11 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
 %endif
 
 %changelog
+* Mon Mar 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.12-1
+- new upstream release.
+- dropped all patches.
+- imported patch1 from rawhide.
+
 * Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-11
 - added Patch1000-1002 to fix CVE-2016-{1577,2089,2116}.
 

+ 216 - 0
j/jasper1/jasper1-vl.spec

@@ -0,0 +1,216 @@
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
+Name:        jasper1
+Summary:     implementation of the JPEG-2000 standard, Part 1
+Version:     1.900.1
+Release:     12%{?_dist_release}
+
+Group:       Applications/Graphics
+License:     Modified BSD (see LICENSE)
+URL:         http://www.ece.uvic.ca/~mdadams/jasper/
+
+Source:      jasper-%{version}.zip
+
+Patch1: jasper-1.701.0-GL.patch
+# autoconf/automake bits of patch1
+Patch2: jasper-1.701.0-GL-ac.patch
+# CVE-2007-2721 (bug #240397)
+# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413041;msg=88
+Patch3: patch-libjasper-stepsizes-overflow.diff
+# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
+Patch4: jpc_dec.c.patch
+# OpenBSD hardening patches addressing couple of possible integer overflows
+# during the memory allocations
+# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3520
+Patch5: jasper-1.900.1-CVE-2008-3520.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3522
+Patch6: jasper-1.900.1-CVE-2008-3522.patch
+# add pkg-config support
+Patch7: jasper-pkgconfig.patch
+
+Patch8: jasper-1.900.1-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch
+
+Patch9: jasper-CVE-2014-9029.patch
+Patch10: jasper-CVE-2014-8137.patch
+Patch11: jasper-CVE-2014-8138.patch
+
+# Issues found by static analysis of code
+Patch110: jasper-1.900.1-Coverity-BAD_SIZEOF.patch
+Patch111: jasper-1.900.1-Coverity-CHECKED_RETURN.patch
+Patch112: jasper-1.900.1-Coverity-FORWARD_NULL.patch
+Patch113: jasper-1.900.1-Coverity-NULL_RETURNS.patch
+Patch114: jasper-1.900.1-Coverity-RESOURCE_LEAK.patch
+Patch115: jasper-1.900.1-Coverity-UNREACHABLE.patch
+Patch116: jasper-1.900.1-Coverity-UNUSED_VALUE.patch
+
+# from debian
+Patch1000: 09-CVE-2016-1577.patch
+Patch1001: 10-CVE-2016-2089.patch
+Patch1002: 11-CVE-2016-2116.patch
+
+BuildRoot:   %{_tmppath}/jasper-%{version}-root
+BuildRequires: autoconf automake libtool
+BuildRequires: freeglut-devel
+BuildRequires: libGLU-devel
+BuildRequires: libjpeg-devel
+BuildRequires: pkgconfig
+
+Requires:    jasper-libs = %{version}-%{release}
+
+Vendor:       Project Vine
+Distribution: Vine Linux
+
+%description
+JasPer is a collection of software (i.e., a library and application 
+programs) for the coding and manipulation of images.  This software 
+can handle image data in a variety of formats.  One such format 
+supported by JasPer is the JPEG-2000 format defined in ISO/IEC 15444-1.
+
+%package libs
+Summary: Runtime libraries for jasper
+Group:   System Environment/Libraries
+
+%description libs
+This package contains runtime libraries for JasPer.
+
+# compat32
+%package -n compat32-jasper1-libs
+Summary: Runtime libraries for jasper
+Group:   System Environment/Libraries
+
+%description -n compat32-jasper1-libs
+This package contains runtime libraries for JasPer.
+
+
+%prep
+%setup -q -n jasper-%{version}
+
+%patch1 -p1 -b .GL
+%patch2 -p1 -b .GL-ac
+%patch3 -p1 -b .CVE-2007-2721
+%patch4 -p1 -b .jpc_dec_assertion
+%patch5 -p1 -b .CVE-2008-3520
+%patch6 -p1 -b .CVE-2008-3522
+%patch7 -p1 -b .pkgconfig
+%patch8 -p1 -b .CVE-2011-4516-4517
+%patch9 -p1 -b .CVE-2014-9029
+%patch10 -p1 -b .CVE-2014-8137-variant2
+%patch11 -p1 -b .CVE-2014-8138
+
+%patch110 -p1 -b .BAD_SIZEOF
+%patch111 -p1 -b .CHECKED_RETURN
+%patch112 -p1 -b .FORWARD_NULL
+%patch113 -p1 -b .NULL_RETURNS
+%patch114 -p1 -b .RESOURCE_LEAK
+%patch115 -p1 -b .UNREACHABLE
+%patch116 -p1 -b .UNUSED_VALUE
+
+%patch1000 -p1 -b .CVE-2016-1577
+%patch1001 -p1 -b .CVE-2016-2089
+%patch1002 -p1 -b .CVE-2016-2116
+
+autoreconf --verbose --force --install
+
+%build
+CFLAGS="%{optflags} -fno-strict-overflow" \
+%configure --enable-shared --disable-static
+
+make %{?_smp_mflags}
+
+%install
+[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# remove .la
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+
+%clean
+[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%post -n compat32-jasper1-libs -p /sbin/ldconfig
+
+%postun -n compat32-jasper1-libs -p /sbin/ldconfig
+
+%files libs
+%defattr(-,root,root)
+%{_libdir}/libjasper*.so.*
+
+# compat32
+%if %{build_compat32}
+%files -n compat32-jasper1-libs
+%defattr(-,root,root)
+%{_libdir}/libjasper*.so.*
+%endif
+
+%changelog
+* Mon Mar 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-12
+- created a new package for compatibility only.
+
+* Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-11
+- added Patch1000-1002 to fix CVE-2016-{1577,2089,2116}.
+
+* Wed Dec 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-10
+- imported all patches from RawHide.
+
+* Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.900.1-9
+- rebuild with libpng-1.6.12
+
+* Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-8
+- rebuilt with current VineSeed
+
+* Sat May 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.900.1-7
+- added compat32 subpackage for x86_64 arch support.
+
+* Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.900.1-6
+- splited out runtime library to sub package
+- enable opengl again, add BuildRequires: freeglut-devel
+
+* Wed Jun 25 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-5
+- remove .la
+- add --disable-static to configure option
+
+* Sun Jun 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl4
+- added Patch0 from VinePlus/4.0
+  * Thu Jun 21 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.900.1-0vl2.1
+  - add patch100 for fix CVE-2007-2721
+  - add Vendor/Distributin Tag
+
+* Fri May 25 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-0vl3
+- remove BuildPrereq: freeglut-devel and Requires freeglut
+- add --disable-opengl to configure option
+
+* Fri Mar 16 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.900.1-0vl2
+- add BuildPreReq: unzip (used in the %%pre section)
+
+* Thu Mar 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl1
+- new upstream release
+
+* Tue Jan 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.0-0vl1
+- new upstream release
+- changed Group to System Environment/Libraries
+- added --mandir=%{_mandir}
+- added %post and %postun section
+
+* Thu Sep 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.701.0-0vl3
+- added --libdir=%{_libdir} configure option
+
+* Tue Sep  5 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.701.0-0vl2
+- build with freeglut
+- change BuildPrereq and Requires
+
+* Tue Dec 14 2004 Satoshi MACHINO <machino@vinelinux.org> 1.701.0-0vl1
+- new upstream version (jasper-1.701.0)
+
+* Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl2
+- rebuild for VineSeedPlus
+
+* Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl1
+- source upgrade
+- change spec to build for VineLinux
+
+* Fri Oct 25 2002 Alexander D. Karaivanov <adk@medical-insight.com>
+- spec file created

+ 6 - 26
lib/libt/libtiff/libtiff-vl.spec

@@ -3,24 +3,12 @@
 Summary: A library of functions for manipulating TIFF format image files.
 Summary(ja): TIFF フォーマットの画像ファイルを扱うライブラリ
 Name: libtiff
-Version: 4.0.3
-Release: 2%{_dist_release}
+Version: 4.0.7
+Release: 1%{_dist_release}
 License: distributable
 Group: System Environment/Libraries
 Source0: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
 
-Patch1: libtiff-CVE-2012-4447.patch
-Patch2: libtiff-CVE-2012-4564.patch
-Patch3: libtiff-printdir-width.patch
-Patch4: libtiff-jpeg-test.patch
-Patch5: libtiff-CVE-2013-1960.patch
-Patch6: libtiff-CVE-2013-1961.patch
-Patch7: libtiff-manpage-update.patch
-Patch8: libtiff-CVE-2013-4231.patch
-Patch9: libtiff-CVE-2013-4232.patch
-Patch10: libtiff-CVE-2013-4244.patch
-Patch11: libtiff-make-check.patch
-
 URL: http://www.remotesensing.org/libtiff/
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: zlib-devel libjpeg-devel
@@ -115,18 +103,6 @@ install the libtiff package.
 %prep
 %setup -q -n tiff-%{version}
 
-%patch1 -p1 -b .CVE-2012-4447
-%patch2 -p1 -b .CVE-2012-4564
-%patch3 -p1 -b .printdir-width
-%patch4 -p1 -b .jpeg-test
-%patch5 -p1 -b .CVE-2013-1960
-%patch6 -p1 -b .CVE-2013-1961
-%patch7 -p1 -b .manpage-update
-%patch8 -p1 -b .CVE-2013-4231
-%patch9 -p1 -b .CVE-2013-4232
-%patch10 -p1 -b .CVE-2013-4244
-%patch11 -p1
-
 %build
 %configure --with-jpeg-lib-dir=%{_libdir} --disable-cxx
 %__make %{?_smp_mflags}
@@ -183,6 +159,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Mar 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.7-1
+- new upstream release.
+- drooped patch1-11: fixed in upstream.
+
 * Thu Dec 26 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.0.3-2
 - add patch1-11 from fc21 to fix security issues
 

+ 13 - 3
o/openjpeg2/openjpeg2-vl.spec

@@ -7,8 +7,8 @@
 #global optional_components 1
 
 Name:           openjpeg2
-Version:        2.1.0
-Release:        5%{?_dist_release}
+Version:        2.1.2
+Release:        1%{?_dist_release}
 Summary:        C-Library for JPEG 2000
 Summary(ja):    JPEG 2000 用の C ライブラリ
 
@@ -23,7 +23,7 @@ URL:            http://www.openjpeg.org/
 #   tar -cf openjpeg-2.0.0-$snap.tar.gz openjpeg-2.0.0
 Source0:        %{upname}-%{version}-%{snap}.tar.gz
 %else
-Source0:        http://sourceforge.net/projects/openjpeg.mirror/files/%{upname}-%{version}.tar.gz
+Source0:        https://github.com/uclouvain/openjpeg/archive/v%{version}/openjpeg-%{version}.tar.gz
 %endif
 %if 0%{?runcheck}
 # svn checkout http://openjpeg.googlecode.com/svn/data
@@ -32,6 +32,10 @@ Source1: data.tar.xz
 
 # Remove bundled libraries
 Patch0:         openjpeg2_remove-thirdparty.patch
+# Fix CVE-2016-9572 and CVE-2016-9573
+Patch1:         7b28bd2b723df6be09fe7791eba33147c1c47d0d.patch
+# Fix CVE-2016-9580 and CVE-2016-9581
+Patch2:         cadff5fb6e73398de26a92e96d3d7cac893af255.patch
 
 BuildRequires:  cmake
 BuildRequires:  zlib-devel
@@ -213,7 +217,10 @@ OpenJPEG2 JP3D module command line tools
 
 %prep
 %setup -q -n %{upname}-%{version} %{?runcheck:-a 1}
+
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 # Remove all third party libraries just to be sure
 rm -rf thirdparty
@@ -342,6 +349,9 @@ make test -C %{_target_platform}
 
 
 %changelog
+* Mon Mar 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.2-1
+- new upstream release.
+
 * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.1.0-5
 - added japanese summary and Group tag
 

+ 14 - 6
s/sqlite3/sqlite3-vl.spec

@@ -5,16 +5,16 @@
 
 %define with_check %{?_with_check:1}%{!?_with_check:0}
 
-%define realver 3080802
-%define docver 3080802
-%define rpmver 3.8.8.2
+%define realver 3170000
+%define docver 3170000
+%define rpmver 3.17.0.0
 
 
 Summary: SQLite is a C library that implements an embeddable SQL database engine
 Summary(ja): SQLite は組み込み型SQLデータベースエンジンを実装するCライブラリです。
 Name: %{packagename}
 Version: %{rpmver}
-Release: 2%{?_dist_release}
+Release: 1%{?_dist_release}
 Group: System Environment/Libraries
 URL: http://www.sqlite.org
 License: Public Domain
@@ -28,7 +28,7 @@ Patch1: sqlite-3.6.23-lemon-system-template.patch
 Patch4: sqlite-3.8.0-percentile-test.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: tcl-devel, readline-devel, ncurses-devel
+BuildRequires: tcl-devel, libedit-devel, ncurses-devel
 
 
 %description
@@ -147,13 +147,16 @@ autoconf
 export CFLAGS="$RPM_OPT_FLAGS 
                -DSQLITE_ENABLE_COLUMN_METADATA=1 
 	       -DSQLITE_DISABLE_DIRSYNC=1 
-	       -DSQLITE_ENABLE_FTS3=3
+	       -DSQLITE_ENABLE_FTS3=1
+	       -DSQLITE_ENABLE_FTS3_PARENTHESIS=1
+	       -DSQLITE_ENABLE_JSON1=1
 	       -DSQLITE_ENABLE_RTREE=1
 	       -DSQLITE_SECURE_DELETE=1
 	       -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
 	       -Wall -fno-strict-aliasing"
 %configure --enable-load-extension \
            --enable-threadsafe \
+           --enable-fts5 \
 	   --enable-threads-override-locks
 
 %{__make} %{?_smp_mflags}
@@ -220,6 +223,11 @@ install -D -m0644 tool/lempar.c $RPM_BUILD_ROOT/%{_datadir}/lemon/lempar.c
 
 
 %changelog
+* Sun Mar 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.17.0.0-1
+- new upstream release.
+- enabled FTS5 and JSON1 extension.
+- built with libedit instead of readline.
+
 * Sun Mar 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.8.8.2-2
 - rebuilt with readline 6.3