|
@@ -1,6 +1,6 @@
|
|
%define pkg_name sqliteodbc
|
|
%define pkg_name sqliteodbc
|
|
%define pkg_version 0.9996
|
|
%define pkg_version 0.9996
|
|
-%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
+%define pkg_release 2%{?_dist_release}
|
|
|
|
|
|
Summary: SQLite ODBC Driver
|
|
Summary: SQLite ODBC Driver
|
|
Name: %{pkg_name}
|
|
Name: %{pkg_name}
|
|
@@ -14,7 +14,7 @@ URL: http://www.ch-werner.de/sqliteodbc
|
|
Source: http://www.ch-werner.de/sqliteodbc/%{name}-%{version}.tar.gz
|
|
Source: http://www.ch-werner.de/sqliteodbc/%{name}-%{version}.tar.gz
|
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libxml2-devel
|
|
-BuildRequires: sqlite-devel
|
|
|
|
|
|
+# BuildRequires: sqlite-devel
|
|
BuildRequires: sqlite3-devel
|
|
BuildRequires: sqlite3-devel
|
|
BuildRequires: unixODBC-devel
|
|
BuildRequires: unixODBC-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
@@ -26,7 +26,7 @@ Distribution: Vine Linux
|
|
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
-ODBC driver for SQLite interfacing SQLite 2.x and/or 3.x using the
|
|
|
|
|
|
+ODBC driver for SQLite interfacing SQLite 3.x using the
|
|
unixODBC or iODBC driver managers. For more information refer to:
|
|
unixODBC or iODBC driver managers. For more information refer to:
|
|
- http://www.sqlite.org - SQLite engine
|
|
- http://www.sqlite.org - SQLite engine
|
|
- http://www.unixodbc.org - unixODBC Driver Manager
|
|
- http://www.unixodbc.org - unixODBC Driver Manager
|
|
@@ -59,7 +59,7 @@ make %{_smp_mflags}
|
|
%install
|
|
%install
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
make install DESTDIR=%{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
-rm -f %{buildroot}%{_libdir}/libsqliteodbc*.{a,la}
|
|
|
|
|
|
+# rm -f %{buildroot}%{_libdir}/libsqliteodbc*.{a,la}
|
|
rm -f %{buildroot}%{_libdir}/libsqlite3odbc*.{a,la}
|
|
rm -f %{buildroot}%{_libdir}/libsqlite3odbc*.{a,la}
|
|
rm -f %{buildroot}%{_libdir}/libsqlite3_mod_*.{a,la}
|
|
rm -f %{buildroot}%{_libdir}/libsqlite3_mod_*.{a,la}
|
|
# install example file
|
|
# install example file
|
|
@@ -88,30 +88,30 @@ EOD
|
|
if [ -x %{_bindir}/odbcinst ] ; then
|
|
if [ -x %{_bindir}/odbcinst ] ; then
|
|
INST=/tmp/sqliteodbcinst$$
|
|
INST=/tmp/sqliteodbcinst$$
|
|
|
|
|
|
- if [ -r %{_libdir}/libsqliteodbc.so ] ; then
|
|
|
|
- cat > $INST <<- 'EOD'
|
|
|
|
-[SQLITE]
|
|
|
|
-Description=SQLite ODBC 2.X
|
|
|
|
-Driver=%{_libdir}/libsqliteodbc.so
|
|
|
|
-Setup=%{_libdir}/libsqliteodbc.so
|
|
|
|
-Threading=2
|
|
|
|
-FileUsage=1
|
|
|
|
-EOD
|
|
|
|
-
|
|
|
|
- %{_bindir}/odbcinst -q -d -n SQLITE | grep '^\[SQLITE\]' >/dev/null || {
|
|
|
|
- %{_bindir}/odbcinst -i -d -n SQLITE -f $INST || true
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- cat > $INST <<- 'EOD'
|
|
|
|
-[SQLite Datasource]
|
|
|
|
-Driver=SQLITE
|
|
|
|
-EOD
|
|
|
|
-
|
|
|
|
- %{_bindir}/odbcinst -q -s -n "SQLite Datasource" | \
|
|
|
|
- grep '^\[SQLite Datasource\]' >/dev/null || {
|
|
|
|
- %{_bindir}/odbcinst -i -l -s -n "SQLite Datasource" -f $INST || true
|
|
|
|
- }
|
|
|
|
- fi
|
|
|
|
|
|
+# if [ -r %{_libdir}/libsqliteodbc.so ] ; then
|
|
|
|
+# cat > $INST <<- 'EOD'
|
|
|
|
+# [SQLITE]
|
|
|
|
+# Description=SQLite ODBC 2.X
|
|
|
|
+# Driver=%{_libdir}/libsqliteodbc.so
|
|
|
|
+# Setup=%{_libdir}/libsqliteodbc.so
|
|
|
|
+# Threading=2
|
|
|
|
+# FileUsage=1
|
|
|
|
+# EOD
|
|
|
|
+
|
|
|
|
+# %{_bindir}/odbcinst -q -d -n SQLITE | grep '^\[SQLITE\]' >/dev/null || {
|
|
|
|
+# %{_bindir}/odbcinst -i -d -n SQLITE -f $INST || true
|
|
|
|
+# }
|
|
|
|
+
|
|
|
|
+# cat > $INST <<- 'EOD'
|
|
|
|
+# [SQLite Datasource]
|
|
|
|
+# Driver=SQLITE
|
|
|
|
+# EOD
|
|
|
|
+
|
|
|
|
+# %{_bindir}/odbcinst -q -s -n "SQLite Datasource" | \
|
|
|
|
+# grep '^\[SQLite Datasource\]' >/dev/null || {
|
|
|
|
+# %{_bindir}/odbcinst -i -l -s -n "SQLite Datasource" -f $INST || true
|
|
|
|
+# }
|
|
|
|
+# fi
|
|
|
|
|
|
if [ -r %{_libdir}/libsqlite3odbc.so ] ; then
|
|
if [ -r %{_libdir}/libsqlite3odbc.so ] ; then
|
|
cat > $INST <<- 'EOD'
|
|
cat > $INST <<- 'EOD'
|
|
@@ -145,8 +145,8 @@ fi
|
|
%preun
|
|
%preun
|
|
if [ "$1" = "0" ] ; then
|
|
if [ "$1" = "0" ] ; then
|
|
test -x %{_bindir}/odbcinst && {
|
|
test -x %{_bindir}/odbcinst && {
|
|
- %{_bindir}/odbcinst -u -d -n SQLITE || true
|
|
|
|
- %{_bindir}/odbcinst -u -l -s -n "SQLite Datasource" || true
|
|
|
|
|
|
+ # %{_bindir}/odbcinst -u -d -n SQLITE || true
|
|
|
|
+ # %{_bindir}/odbcinst -u -l -s -n "SQLite Datasource" || true
|
|
%{_bindir}/odbcinst -u -d -n SQLITE3 || true
|
|
%{_bindir}/odbcinst -u -d -n SQLITE3 || true
|
|
%{_bindir}/odbcinst -u -l -s -n "SQLite3 Datasource" || true
|
|
%{_bindir}/odbcinst -u -l -s -n "SQLite3 Datasource" || true
|
|
}
|
|
}
|
|
@@ -163,6 +163,9 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Aug 31 2019 Toshiaki Ara <ara_t@384.jp> - 0.9996-2
|
|
|
|
+- drop sqlite2 support
|
|
|
|
+
|
|
* Thu Aug 29 2019 Toshiaki Ara <ara_t@384.jp> - 0.9996-1
|
|
* Thu Aug 29 2019 Toshiaki Ara <ara_t@384.jp> - 0.9996-1
|
|
- first reease for Vine Linux
|
|
- first reease for Vine Linux
|
|
|
|
|