Commit e60abdf5 authored by Steven Murray's avatar Steven Murray
Browse files

Added cta-doc rpm that contains supporting SQL scripts

parent e0b8f264
......@@ -58,9 +58,18 @@ target_link_libraries (ctacatalogue
${ORACLE-INSTANTCLIENT_LIBRARIES}
${SQLITE_LIBRARIES})
add_custom_command(OUTPUT sqlite_catalogue_schema.sql
add_custom_command(OUTPUT sqlite_catalogue_schema.sql oracle_catalogue_schema.sql
COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/sqlite_catalogue_schema_header.sql ${CMAKE_CURRENT_SOURCE_DIR}/catalogue_common_schema.sql > sqlite_catalogue_schema.sql
DEPENDS catalogue_common_schema.sql)
COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/catalogue_common_schema.sql > oracle_catalogue_schema.sql
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sqlite_catalogue_schema_header.sql catalogue_common_schema.sql)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/sqlite_catalogue_schema.sql
DESTINATION /usr/share/cta/sql
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/oracle_catalogue_schema.sql
DESTINATION /usr/share/cta/sql
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
add_custom_command(OUTPUT in_memory_catalogue_schema.cpp
COMMAND sed 's/^/\ \ \ \ \"/' sqlite_catalogue_schema.sql | sed 's/$$/\"/' > in_memory_catalogue_schema.cpp
......
......@@ -112,7 +112,6 @@ The xroot plugin
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/cta
%package -n cta-lib
Summary: CERN Tape Archive
Group: Application/CTA
......@@ -135,6 +134,16 @@ The shared libraries
%attr(0755,root,root) %{_libdir}/libctatapeserverdaemonutils.so
%attr(0644,root,root) %{_sysconfdir}/cta/cta_catalogue_db.conf.example
%package -n cta-doc
Summary: CERN Tape Archive: Documents and supporting SQL scripts
Group: Application/CTA
%description -n cta-doc
CERN Tape Archive:
Documents and supporting SQL scripts
%files -n cta-doc
%doc %{_datarootdir}/cta/sql/oracle_catalogue_schema.sql
%doc %{_datarootdir}/cta/sql/sqlite_catalogue_schema.sql
%package -n cta-systemtests
Summary: CERN Tape Archive: unit and system tests with virtual tape drives
Group: Application/CTA
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment