2012-03-10 20:05:35 +00:00
|
|
|
%?mingw_package_header
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2011-02-13 12:50:21 +00:00
|
|
|
%global name1 sqlite
|
|
|
|
|
2012-12-06 20:06:56 +00:00
|
|
|
%global realver 3071401
|
|
|
|
%global rpmver 3.7.14.1
|
2011-02-13 12:50:21 +00:00
|
|
|
|
2009-06-25 10:18:53 +00:00
|
|
|
# bcond default logic is nicely backwards...
|
2009-12-05 15:12:06 +00:00
|
|
|
%bcond_with tcl
|
2009-06-25 10:18:53 +00:00
|
|
|
%global tclversion 8.5
|
|
|
|
|
2012-03-06 21:21:03 +00:00
|
|
|
Name: mingw-%{name1}
|
2011-02-13 12:50:21 +00:00
|
|
|
Version: %{rpmver}
|
2012-12-04 10:37:37 +00:00
|
|
|
Release: 1%{?dist}
|
2008-12-21 11:15:27 +00:00
|
|
|
Summary: MinGW Windows port of sqlite embeddable SQL database engine
|
|
|
|
|
|
|
|
License: Public Domain
|
|
|
|
Group: Applications/Databases
|
|
|
|
URL: http://www.sqlite.org/
|
2011-02-13 12:50:21 +00:00
|
|
|
Source0: http://www.sqlite.org/%{name1}-src-%{realver}.zip
|
2008-12-21 11:15:27 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
# Patches for MinGW port.
|
2012-01-16 21:16:41 +00:00
|
|
|
Patch1000: mingw32-sqlite-3.7.9-no-undefined.patch
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
2008-12-21 11:15:27 +00:00
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
BuildRequires: mingw32-pdcurses
|
|
|
|
BuildRequires: mingw32-readline
|
2012-03-10 20:05:35 +00:00
|
|
|
BuildRequires: mingw32-termcap
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
BuildRequires: mingw64-gcc
|
|
|
|
BuildRequires: mingw64-binutils
|
2012-04-22 18:01:11 +00:00
|
|
|
BuildRequires: mingw64-pdcurses
|
2012-03-10 20:05:35 +00:00
|
|
|
BuildRequires: mingw64-readline
|
|
|
|
BuildRequires: mingw64-termcap
|
|
|
|
|
2009-04-23 13:36:21 +00:00
|
|
|
BuildRequires: /usr/bin/tclsh
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2009-06-25 10:18:53 +00:00
|
|
|
%if %{with tcl}
|
|
|
|
BuildRequires: /usr/bin/tclsh
|
|
|
|
BuildRequires: mingw32-tcl
|
|
|
|
%endif
|
|
|
|
|
2008-12-21 11:15:27 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SQLite is a C library that implements an SQL database engine. A large
|
|
|
|
subset of SQL92 is supported. A complete database is stored in a
|
|
|
|
single disk file. The API is designed for convenience and ease of use.
|
|
|
|
Applications that link against SQLite can enjoy the power and
|
|
|
|
flexibility of an SQL database without the administrative hassles of
|
|
|
|
supporting a separate database server. Version 2 and version 3 binaries
|
|
|
|
are named to permit each to be installed on a single host
|
|
|
|
|
|
|
|
This package contains cross-compiled libraries and development tools
|
|
|
|
for Windows.
|
|
|
|
|
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
# Win32
|
2012-03-06 21:21:03 +00:00
|
|
|
%package -n mingw32-%{name1}
|
|
|
|
Summary: MinGW Windows port of sqlite embeddable SQL database engine
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description -n mingw32-%{name1}
|
|
|
|
SQLite is a C library that implements an SQL database engine. A large
|
|
|
|
subset of SQL92 is supported. A complete database is stored in a
|
|
|
|
single disk file. The API is designed for convenience and ease of use.
|
|
|
|
Applications that link against SQLite can enjoy the power and
|
|
|
|
flexibility of an SQL database without the administrative hassles of
|
|
|
|
supporting a separate database server. Version 2 and version 3 binaries
|
|
|
|
are named to permit each to be installed on a single host
|
|
|
|
|
|
|
|
This package contains cross-compiled libraries and development tools
|
|
|
|
for Windows.
|
|
|
|
|
|
|
|
%package -n mingw32-%{name1}-static
|
2011-12-24 14:24:05 +00:00
|
|
|
Summary: Static version of MinGW Windows port of sqlite library
|
2012-03-06 21:21:03 +00:00
|
|
|
Requires: mingw32-%{name1} = %{version}-%{release}
|
2011-12-24 14:24:05 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
|
2012-03-06 21:21:03 +00:00
|
|
|
%description -n mingw32-%{name1}-static
|
2011-12-24 14:24:05 +00:00
|
|
|
SQLite is a C library that implements an SQL database engine. A large
|
|
|
|
subset of SQL92 is supported. A complete database is stored in a
|
|
|
|
single disk file. The API is designed for convenience and ease of use.
|
|
|
|
Applications that link against SQLite can enjoy the power and
|
|
|
|
flexibility of an SQL database without the administrative hassles of
|
|
|
|
supporting a separate database server. Version 2 and version 3 binaries
|
|
|
|
are named to permit each to be installed on a single host
|
|
|
|
|
|
|
|
This package contains static cross-compiled library
|
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
# Win64
|
|
|
|
%package -n mingw64-%{name1}
|
|
|
|
Summary: MinGW Windows port of sqlite embeddable SQL database engine
|
|
|
|
Requires: pkgconfig
|
2011-12-24 14:24:05 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
%description -n mingw64-%{name1}
|
|
|
|
SQLite is a C library that implements an SQL database engine. A large
|
|
|
|
subset of SQL92 is supported. A complete database is stored in a
|
|
|
|
single disk file. The API is designed for convenience and ease of use.
|
|
|
|
Applications that link against SQLite can enjoy the power and
|
|
|
|
flexibility of an SQL database without the administrative hassles of
|
|
|
|
supporting a separate database server. Version 2 and version 3 binaries
|
|
|
|
are named to permit each to be installed on a single host
|
|
|
|
|
|
|
|
This package contains cross-compiled libraries and development tools
|
|
|
|
for Windows.
|
|
|
|
|
|
|
|
%package -n mingw64-%{name1}-static
|
|
|
|
Summary: Static version of MinGW Windows port of sqlite library
|
|
|
|
Requires: mingw64-%{name1} = %{version}-%{release}
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description -n mingw64-%{name1}-static
|
|
|
|
SQLite is a C library that implements an SQL database engine. A large
|
|
|
|
subset of SQL92 is supported. A complete database is stored in a
|
|
|
|
single disk file. The API is designed for convenience and ease of use.
|
|
|
|
Applications that link against SQLite can enjoy the power and
|
|
|
|
flexibility of an SQL database without the administrative hassles of
|
|
|
|
supporting a separate database server. Version 2 and version 3 binaries
|
|
|
|
are named to permit each to be installed on a single host
|
|
|
|
|
|
|
|
This package contains static cross-compiled library
|
|
|
|
|
|
|
|
|
|
|
|
%?mingw_debug_package
|
2009-06-23 09:50:06 +00:00
|
|
|
|
|
|
|
|
2008-12-21 11:15:27 +00:00
|
|
|
%prep
|
2011-02-13 12:50:21 +00:00
|
|
|
%setup -q -n %{name1}-src-%{realver}
|
2008-12-21 11:15:27 +00:00
|
|
|
%patch1000 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
# I think there's a bug in the configure script where, if
|
|
|
|
# cross-compiling, it cannot correctly determine the target executable
|
|
|
|
# extension (ie. .exe). As a result it doesn't correctly detect that
|
|
|
|
# the target is Windows and so tries to use Unix-specific functions
|
|
|
|
# which don't exist. In any case we can work around this by forcing
|
|
|
|
# the extension via this export.
|
|
|
|
# - RWMJ 2008-09-30
|
|
|
|
export config_TARGET_EXEEXT=.exe
|
2009-04-23 11:39:19 +00:00
|
|
|
# add compile flags to enable rtree, fts3
|
2012-03-06 21:23:46 +00:00
|
|
|
export MINGW32_CFLAGS="%{mingw32_cflags} -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing"
|
2012-03-10 20:05:35 +00:00
|
|
|
export MINGW64_CFLAGS="%{mingw64_cflags} -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing"
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
%mingw_configure %{!?with_tcl:--disable-tcl} --enable-threadsafe --enable-threads-override-locks --enable-load-extension
|
2009-12-05 15:12:06 +00:00
|
|
|
|
|
|
|
# -lc hack
|
2012-03-10 20:05:35 +00:00
|
|
|
for i in build_win32 build_win64 ; do
|
|
|
|
pushd $i
|
|
|
|
sed -e s,build_libtool_need_lc=yes,build_libtool_need_lc=no, < libtool > libtool.x
|
|
|
|
mv libtool.x libtool
|
|
|
|
chmod a+x libtool
|
|
|
|
popd
|
|
|
|
done
|
2009-12-05 15:12:06 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
%mingw_make %{?_smp_mflags}
|
2008-12-21 11:15:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-03-10 20:05:35 +00:00
|
|
|
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-06 21:23:46 +00:00
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{mingw32_libdir}/libsqlite3.dll.a
|
2012-03-10 20:05:35 +00:00
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{mingw64_libdir}/libsqlite3.dll.a
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-06 21:23:46 +00:00
|
|
|
mv $RPM_BUILD_ROOT%{mingw32_libdir}/libsqlite3-0.dll $RPM_BUILD_ROOT%{mingw32_bindir}/
|
2012-03-10 20:05:35 +00:00
|
|
|
mv $RPM_BUILD_ROOT%{mingw64_libdir}/libsqlite3-0.dll $RPM_BUILD_ROOT%{mingw64_bindir}/
|
2009-12-05 15:12:06 +00:00
|
|
|
|
2009-06-25 10:18:53 +00:00
|
|
|
%if %{with tcl}
|
2012-03-06 21:23:46 +00:00
|
|
|
install -d -m755 $RPM_BUILD_ROOT%{mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl $RPM_BUILD_ROOT%{mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
2012-03-10 20:05:35 +00:00
|
|
|
|
|
|
|
install -d -m755 $RPM_BUILD_ROOT%{mingw64_datadir}/tcl%{tclversion}/sqlite3/
|
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl $RPM_BUILD_ROOT%{mingw64_datadir}/tcl%{tclversion}/sqlite3/
|
2009-06-25 10:18:53 +00:00
|
|
|
%endif
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-09 15:52:56 +00:00
|
|
|
# Drop all .la files
|
|
|
|
find $RPM_BUILD_ROOT -name "*.la" -delete
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
|
|
|
|
# Win32
|
2012-03-06 21:21:03 +00:00
|
|
|
%files -n mingw32-%{name1}
|
2008-12-21 11:15:27 +00:00
|
|
|
%doc README VERSION
|
2012-03-06 21:23:46 +00:00
|
|
|
%{mingw32_bindir}/sqlite3.exe
|
|
|
|
%{mingw32_bindir}/libsqlite3-0.dll
|
|
|
|
%{mingw32_libdir}/libsqlite3.dll.a
|
|
|
|
%{mingw32_includedir}/sqlite3.h
|
|
|
|
%{mingw32_includedir}/sqlite3ext.h
|
|
|
|
%{mingw32_libdir}/pkgconfig/sqlite3.pc
|
2009-06-25 10:18:53 +00:00
|
|
|
%if %{with tcl}
|
2012-03-06 21:23:46 +00:00
|
|
|
%{mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
|
|
|
%{mingw32_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl
|
2009-06-25 10:18:53 +00:00
|
|
|
%endif
|
2008-12-21 11:15:27 +00:00
|
|
|
|
2012-03-06 21:21:03 +00:00
|
|
|
%files -n mingw32-%{name1}-static
|
2012-03-06 21:23:46 +00:00
|
|
|
%{mingw32_libdir}/libsqlite3.a
|
2011-12-24 14:24:05 +00:00
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
# Win64
|
|
|
|
%files -n mingw64-%{name1}
|
|
|
|
%doc README VERSION
|
|
|
|
%{mingw64_bindir}/sqlite3.exe
|
|
|
|
%{mingw64_bindir}/libsqlite3-0.dll
|
|
|
|
%{mingw64_libdir}/libsqlite3.dll.a
|
|
|
|
%{mingw64_includedir}/sqlite3.h
|
|
|
|
%{mingw64_includedir}/sqlite3ext.h
|
|
|
|
%{mingw64_libdir}/pkgconfig/sqlite3.pc
|
|
|
|
%if %{with tcl}
|
|
|
|
%{mingw64_datadir}/tcl%{tclversion}/sqlite3/
|
|
|
|
%{mingw64_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n mingw64-%{name1}-static
|
|
|
|
%{mingw64_libdir}/libsqlite3.a
|
|
|
|
|
|
|
|
|
2008-12-21 11:15:27 +00:00
|
|
|
%changelog
|
2012-12-06 20:06:56 +00:00
|
|
|
* Thu Dec 6 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.14.1-1
|
|
|
|
- Update to 3.7.14.1
|
|
|
|
- Dropped all patches which are not needed for the mingw target
|
|
|
|
- There's no need to re-run the autotools any more
|
|
|
|
|
2012-12-04 10:37:37 +00:00
|
|
|
* Tue Dec 4 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.7.13-1
|
|
|
|
- update to 3.7.13
|
|
|
|
|
2012-07-20 01:51:18 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.9-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-22 18:01:11 +00:00
|
|
|
* Sun Apr 22 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-6
|
|
|
|
- Add BR: mingw64-pdcurses
|
|
|
|
|
2012-03-10 20:05:35 +00:00
|
|
|
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-5
|
|
|
|
- Added win64 support
|
|
|
|
|
2012-03-09 15:52:56 +00:00
|
|
|
* Fri Mar 09 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-4
|
|
|
|
- Dropped .la files
|
|
|
|
|
2012-03-06 21:21:03 +00:00
|
|
|
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.9-3
|
|
|
|
- Renamed the source package to mingw-sqlite (#800450)
|
2012-03-06 21:23:39 +00:00
|
|
|
- Modernize the spec file
|
2012-03-06 21:23:46 +00:00
|
|
|
- Use mingw macros without leading underscore
|
2012-03-06 21:21:03 +00:00
|
|
|
|
2012-02-27 22:28:00 +00:00
|
|
|
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-2
|
|
|
|
- Rebuild against the mingw-w64 toolchain
|
|
|
|
|
2012-01-16 21:23:19 +00:00
|
|
|
* Mon Jan 16 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.7.9-1
|
2012-01-16 21:16:41 +00:00
|
|
|
- update to 3.7.9
|
|
|
|
|
2012-01-13 10:09:00 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-24 14:24:05 +00:00
|
|
|
* Sat Dec 24 2011 Ivan Romanov <drizt@land.ru> - 3.7.5-2
|
|
|
|
- static subpackage
|
|
|
|
|
2011-02-13 12:50:21 +00:00
|
|
|
* Sun Feb 13 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.7.5-1
|
|
|
|
- update to 3.7.5
|
|
|
|
|
2011-02-08 19:12:09 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-06 17:34:18 +00:00
|
|
|
* Mon Dec 6 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.7.3-1
|
|
|
|
- update to 3.7.3
|
|
|
|
|
2010-01-31 16:29:50 +00:00
|
|
|
* Sun Jan 31 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.22-1
|
|
|
|
- update to 3.6.22
|
|
|
|
|
2009-12-05 15:12:06 +00:00
|
|
|
* Sun Dec 5 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.20-1
|
|
|
|
- update to 3.6.20
|
|
|
|
|
2009-09-20 00:00:11 +00:00
|
|
|
* Sun Sep 20 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.17-1
|
|
|
|
- update to 3.6.17
|
|
|
|
|
2009-07-25 14:31:41 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.14.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-25 10:18:53 +00:00
|
|
|
* Tue Jun 23 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.14.2-1
|
|
|
|
- update to 3.6.14.2
|
2009-06-23 09:50:06 +00:00
|
|
|
- add debuginfo packages
|
|
|
|
|
2009-04-23 18:20:15 +00:00
|
|
|
* Thu Apr 23 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.12-4
|
|
|
|
- fix CFLAGS setting
|
|
|
|
|
2009-04-23 17:11:32 +00:00
|
|
|
* Thu Apr 23 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.12-3
|
|
|
|
- use Erik van Pienbroek way to add to CFLAGS
|
|
|
|
|
2009-04-23 13:36:21 +00:00
|
|
|
* Thu Apr 23 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 3.6.12-2
|
|
|
|
- BR tclsh; the build process without tclsh and with extensions
|
|
|
|
enabled is broken
|
|
|
|
|
2009-04-23 11:39:19 +00:00
|
|
|
* Thu Apr 23 2009 Thomas Sailer <t.sailer@alumni.ee.ethz.ch> - 3.6.12-1
|
|
|
|
- update to 3.6.12 to match native
|
|
|
|
- enable rtree, fts3
|
|
|
|
|
2009-02-26 01:26:08 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.6.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-20 23:29:29 +00:00
|
|
|
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 3.6.6.2-2
|
|
|
|
- Rebuild for mingw32-gcc 4.4
|
|
|
|
|
2008-12-21 11:15:27 +00:00
|
|
|
* Tue Dec 16 2008 Richard Jones <rjones@redhat.com> - 3.6.6.2-1
|
|
|
|
- New upstream release (to match Fedora native), 3.6.6.2.
|
|
|
|
- Replace patches with ones from native.
|
|
|
|
- Rebase -no-undefined patch.
|
|
|
|
- Remove spurious +x permissions on libsqlite3.dll.a.
|
|
|
|
- Requires pkgconfig.
|
|
|
|
|
|
|
|
* Sat Nov 22 2008 Richard Jones <rjones@redhat.com> - 3.5.9-3
|
|
|
|
- Rebuild against new readline.
|
|
|
|
|
|
|
|
* Fri Oct 31 2008 Richard Jones <rjones@redhat.com> - 3.5.9-2
|
|
|
|
- Rebuild against latest termcap.
|
|
|
|
|
|
|
|
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 3.5.9-1
|
|
|
|
- Initial RPM release.
|