commit 602064f2fa9aaade642fe95759c6badf4b55ff5d
Author: Ivan Romanov <drizt(a)land.ru>
Date: Sat Dec 24 20:24:05 2011 +0600
static subpackage
mingw32-sqlite.spec | 29 +++++++++++++++++++++++++----
1 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/mingw32-sqlite.spec b/mingw32-sqlite.spec
index 663454f..aa8afca 100644
--- a/mingw32-sqlite.spec
+++ b/mingw32-sqlite.spec
@@ -16,7 +16,7 @@
Name: mingw32-%{name1}
Version: %{rpmver}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows port of sqlite embeddable SQL database engine
License: Public Domain
@@ -70,6 +70,23 @@ This package contains cross-compiled libraries and development tools
for Windows.
+%package static
+Summary: Static version of MinGW Windows port of sqlite library
+Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+
+%description 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
+
+
%{_mingw32_debug_package}
@@ -116,9 +133,6 @@ make
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
-# Remove static libraries but DON'T remove *.dll.a files.
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libsqlite3.a
-
chmod 0644 $RPM_BUILD_ROOT%{_mingw32_libdir}/libsqlite3.dll.a
mv $RPM_BUILD_ROOT%{_mingw32_libdir}/libsqlite3-0.dll $RPM_BUILD_ROOT%{_mingw32_bindir}/
@@ -148,7 +162,14 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl
%endif
+%files static
+%defattr(-,root,root,-)
+%{_mingw32_libdir}/libsqlite3.a
+
%changelog
+* Sat Dec 24 2011 Ivan Romanov <drizt(a)land.ru> - 3.7.5-2
+- static subpackage
+
* Sun Feb 13 2011 Thomas Sailer <t.sailer(a)alumni.ethz.ch> - 3.7.5-1
- update to 3.7.5
Show replies by date