[pl] Move ODBC interface into separate sub-package
Petr Pisar
ppisar at fedoraproject.org
Thu Mar 8 14:57:28 UTC 2012
commit 020a2028c76703c002c63e2c7f8fc153e07bbd3c
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Mar 8 10:50:38 2012 +0100
Move ODBC interface into separate sub-package
pl.spec | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/pl.spec b/pl.spec
index 6971163..07dfbb8 100644
--- a/pl.spec
+++ b/pl.spec
@@ -97,6 +97,27 @@ Requires: %{name} = %{version}-%{release}
%{summary}.
+%package odbc
+Summary: SWI-Prolog ODBC interface
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+
+%description odbc
+The value of RDMS for Prolog is often over-estimated, as Prolog itself can
+manage substantial amounts of data. Nevertheless a Prolog/RDMS interface
+provides advantages if data is already provided in an RDMS, data must be
+shared with other applications, there are strong persistency requirements
+or there is too much data to fit in memory.
+
+The popularity of ODBC makes it possible to design a single
+foreign-language module that provides RDMS access for a wide variety of
+databases on a wide variety of platforms. The SWI-Prolog RDMS interface is
+closely modeled after the ODBC API. This API is rather low-level, but
+defaults and dynamic typing provided by Prolog give the user quite simple
+access to RDMS, while the interface provides the best possible performance
+given the RDMS independency constraint.
+
+
%package static
Summary: Static library for SWI Prolog
Group: Development/Languages
@@ -244,6 +265,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/swipl-%{version}/xpce/bin/x86_64-linux/xpce-client
%exclude %{_libdir}/swipl-%{version}/include
# Doc
%exclude %{_libdir}/swipl-%{version}/doc
+# ODBC
+%exclude %{_libdir}/swipl-%{version}/lib/*-linux/odbc4pl.so
+%exclude %{_libdir}/swipl-%{version}/library/odbc.pl
# Static
%exclude %{_libdir}/swipl-%{version}/lib/*/libswipl.a
%if %{separate_xpce}
@@ -284,6 +308,11 @@ rm $RPM_BUILD_ROOT%{_libdir}/swipl-%{version}/xpce/bin/x86_64-linux/xpce-client
%doc %{docdir}/*
%doc %{docdir}-xpce/*
+%files odbc
+%{_libdir}/swipl-%{version}/lib/*-linux/odbc4pl.so
+%{_libdir}/swipl-%{version}/library/odbc.pl
+%doc packages/odbc/{demo,ChangeLog,odbc.html,README}
+
%files static
%{_libdir}/swipl-%{version}/lib/*/libswipl.a
@@ -305,6 +334,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/swipl-%{version}/xpce/bin/x86_64-linux/xpce-client
- xpce is run as swipl now
- Move documentation into separate sub-package
- Move XPCE into separate sub-package
+- Move ODBC interface into separate sub-package
* Thu Mar 01 2012 Petr Pisar <ppisar at redhat.com> - 6.0.1-1
- 6.0.1 bump
More information about the scm-commits
mailing list