Changeset: a8f2184d779f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a8f2184d779f
Modified Files:
        MonetDB.spec
Branch: bamloader
Log Message:

Optionally create RPM for bam loader module.


diffs (84 lines):

diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -36,6 +36,10 @@
 %define with_geos 1
 %endif
 
+%if %{?_with_samtools:1}%{!?_with_samtools:0}
+%define with_samtools 1
+%endif
+
 Name: %{name}
 Version: %{version}
 Release: %{release}
@@ -78,6 +82,9 @@ BuildRequires: rubygems-devel
 %endif
 BuildRequires: unixODBC-devel
 BuildRequires: zlib-devel
+%if %{?with_samtools:1}%{!?with_samtools:0}
+BuildRequires: samtools-devel
+%endif
 
 # need to define python_sitelib on RHEL 5 and older
 # no need to define python3_sitelib: it's defined by python3-devel
@@ -449,6 +456,29 @@ numerical analysis (gsl).
 %{_libdir}/monetdb5/gsl.mal
 %{_libdir}/monetdb5/lib_gsl.so
 
+%if %{?_with_samtools:1}%{!?_with_samtools:0}
+%package bam-MonetDB5
+Summary: MonetDB5 SQL interface to the bam library
+Group: Applications/Databases
+Requires: MonetDB5-server = %{version}-%{release}
+
+%description bam-MonetDB5
+MonetDB is a database management system that is developed from a
+main-memory perspective with use of a fully decomposed storage model,
+automatic index management, extensibility of data types and search
+accelerators.  It also has an SQL frontend.
+
+This package contains the interface to load and query BAM (binary
+version of Sequence Alignment/Map) data.
+
+%files bam-MonetDB5
+%defattr(-,root,root)
+%{_libdir}/monetdb5/autoload/*_bam.mal
+%{_libdir}/monetdb5/createdb/*_bam.sql
+%{_libdir}/monetdb5/bam.mal
+%{_libdir}/monetdb5/lib_bam.so
+%endif
+
 %package jaql
 Summary: MonetDB5 JAQL
 Group: Applications/Databases
@@ -536,6 +566,11 @@ fi
 %exclude %{_libdir}/monetdb5/lib_geom.so
 %endif
 %exclude %{_libdir}/monetdb5/lib_gsl.so
+%if %{?_with_samtools:1}%{!?_with_samtools:0}
+%exclude %{_libdir}/monetdb5/bam.mal
+%exclude %{_libdir}/monetdb5/autoload/*_bam.mal
+%exclude %{_libdir}/monetdb5/lib_bam.so
+%endif
 # %exclude %{_libdir}/monetdb5/lib_rdf.so
 %exclude %{_libdir}/monetdb5/lib_sql.so
 %exclude %{_libdir}/monetdb5/lib_jaql.so
@@ -631,6 +666,9 @@ systemd-tmpfiles --create %{_sysconfdir}
 %exclude %{_libdir}/monetdb5/createdb/*_geom.sql
 %endif
 %exclude %{_libdir}/monetdb5/createdb/*_gsl.sql
+%if %{?_with_samtools:1}%{!?_with_samtools:0}
+%exclude %{_libdir}/monetdb5/createdb/*_bam.sql
+%endif
 # %exclude %{_libdir}/monetdb5/createdb/*_rdf.sql
 %{_libdir}/monetdb5/createdb/*
 %{_libdir}/monetdb5/sql*.mal
@@ -789,6 +827,7 @@ developer, but if you do want to test, t
        --with-readline=yes \
        --with-rubygem=%{?rhel:no}%{!?rhel:yes} \
        --with-rubygem-dir=%{?rhel:no}%{!?rhel:"%{gem_dir}"} \
+       --with-samtools=%{?with_samtools:yes}%{!?with_samtools:no} \
        --with-sphinxclient=no \
        --with-unixodbc=yes \
        --with-valgrind=no \
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to