[scram] 01/01: Initial configuration

Olzhas Rakhimov rakhimov-guest at moszumanska.debian.org
Thu Nov 17 18:34:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

rakhimov-guest pushed a commit to branch master
in repository scram.

commit 64e1fa7c2b465763a2bbb2080df3994253193f59
Author: rakhimov <ol.rakhimov at gmail.com>
Date:   Thu Nov 17 08:56:59 2016 -0800

    Initial configuration
---
 debian/changelog                                   | 47 +++++++++++
 debian/compat                                      |  1 +
 debian/control                                     | 24 ++++++
 debian/copyright                                   | 22 +++++
 debian/install                                     |  1 +
 debian/manpages                                    |  1 +
 ...-Disable-installation-of-the-libscramcore.patch | 91 +++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       | 16 ++++
 debian/scram.1                                     | 93 ++++++++++++++++++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  2 +
 12 files changed, 300 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0f39457
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,47 @@
+scram (0.11.4-3) unstable; urgency=low
+
+  * Initial Debian Package (Closes: #842766)
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Thu, 17 Nov 2016 07:27:56 -0800
+
+scram (0.11.4-1ubuntu1) xenial; urgency=low
+
+  * Transition to C++14
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Thu, 15 Sep 2016 15:54:31 -0700
+
+scram (0.11.3-1ubuntu1) trusty; urgency=low
+
+  * Performance Stabilization
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Thu, 30 Jun 2016 00:42:10 -0700
+
+scram (0.11.2-1ubuntu1) trusty; urgency=low
+
+  * Case-Sensitive Model Initialization
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Wed, 13 Apr 2016 21:50:44 -0700
+
+scram (0.11.1-1ubuntu1) trusty; urgency=low
+
+  * BDD and ZBDD Optimizations
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Wed, 06 Apr 2016 16:23:37 -0700
+
+scram (0.11.0-1ubuntu1) trusty; urgency=low
+
+  * Qualitative Analysis with BDD and ZBDD
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Thu, 28 Jan 2016 01:41:02 -0700
+
+scram (0.10.0-1ubuntu1) trusty; urgency=low
+
+  * Quantitative Analysis with BDD
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Tue, 20 Oct 2015 22:53:02 -0700
+
+scram (0.9.2-1ubuntu1) trusty; urgency=low
+
+  * Preprocessing and MOCUS Optimizations
+
+ -- Olzhas Rakhimov <ol.rakhimov at gmail.com>  Wed, 09 Sep 2015 15:55:25 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3d0c824
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: scram
+Section: science
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Olzhas Rakhimov <ol.rakhimov at gmail.com>
+Build-Depends: debhelper (>= 9.0.0),
+               cmake (>= 2.8.12),
+               libxml++2.6-dev (>= 2.38.1),
+               libboost-all-dev (>= 1.56.0),
+               libgoogle-perftools-dev
+Standards-Version: 3.9.8
+Vcs-Git: git://anonscm.debian.org/git/debian-science/packages/scram.git
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/scram.git
+Homepage: http://scram-pra.org
+
+Package: scram
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Probabilistic Risk Analysis Tool
+ A command line probabilistic risk analysis tool
+ capable of performing static fault tree analysis,
+ analysis with common cause failure models,
+ probability calculations with importance analysis,
+ and uncertainty analysis with Monte Carlo simulations.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..08652bf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: scram
+Source: https://github.com/rakhimov/scram
+
+Files: *
+Copyright: Copyright © 2014-2016 Olzhas Rakhimov <ol.rakhimov at gmail.com>
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..8b3d429
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+scripts/scram.sh /usr/share/bash-completion/completions/
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..c74e1c3
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/scram.1
diff --git a/debian/patches/0001-Disable-installation-of-the-libscramcore.patch b/debian/patches/0001-Disable-installation-of-the-libscramcore.patch
new file mode 100644
index 0000000..ac7a698
--- /dev/null
+++ b/debian/patches/0001-Disable-installation-of-the-libscramcore.patch
@@ -0,0 +1,91 @@
+From 7ab531d8de29d0746709f3e4f99f943532ea8d50 Mon Sep 17 00:00:00 2001
+From: rakhimov <ol.rakhimov at gmail.com>
+Date: Thu, 17 Nov 2016 08:59:51 -0800
+Subject: [PATCH] Disable installation of the libscramcore
+
+This should've been an option instead of setting.
+The shared library is not necessary at this stage.
+---
+ CMakeLists.txt     |  4 ++--
+ src/CMakeLists.txt | 40 ++++++++++++++++++++--------------------
+ 2 files changed, 22 insertions(+), 22 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8ae6226..e79e952 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,7 +18,7 @@ set(SCRAM_VERSION_MICRO 4)  # Bug fixes.
+ 
+ ####################### Begin Options ###################
+ 
+-set(BUILD_SHARED_LIBS TRUE)  # Change this for static building.
++set(BUILD_SHARED_LIBS FALSE)  # Change this for static building.
+ 
+ # Linking of external libraries, such as BOOST.
+ option(WITH_STATIC_LIBS "Try to link against static libraries" OFF)
+@@ -118,7 +118,7 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
+ # (but later on when installing).
+ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+ 
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++# set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+ 
+ # Add the automatically determined parts of the RPATH,
+ # which point to directories outside the build tree
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 5c6000c..d33b34d 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -54,29 +54,29 @@ set(SCRAM_CORE_SRC
+   )
+ add_library(scramcore ${SCRAM_CORE_SRC})
+ 
+-set_target_properties(scramcore
+-  PROPERTIES
+-  INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
+-  INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib"
+-  LINK_FLAGS "${LIB_LINK_FLAGS}"
+-  )
++# set_target_properties(scramcore
++#   PROPERTIES
++#   INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
++#   INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib"
++#   LINK_FLAGS "${LIB_LINK_FLAGS}"
++#   )
+ 
+ target_link_libraries(scramcore ${LIBS})
+ 
+-if(WIN32)
+-  install(
+-    TARGETS scramcore
+-    RUNTIME DESTINATION bin COMPONENT scram
+-    LIBRARY DESTINATION lib COMPONENT scram
+-    ARCHIVE DESTINATION lib COMPONENT scram
+-    )
+-else()
+-  install(
+-    TARGETS scramcore
+-    DESTINATION lib
+-    COMPONENT scram
+-    )
+-endif()
++# if(WIN32)
++#   install(
++#     TARGETS scramcore
++#     RUNTIME DESTINATION bin COMPONENT scram
++#     LIBRARY DESTINATION lib COMPONENT scram
++#     ARCHIVE DESTINATION lib COMPONENT scram
++#     )
++# else()
++#   install(
++#     TARGETS scramcore
++#     DESTINATION lib
++#     COMPONENT scram
++#     )
++# endif()
+ 
+ add_executable(scram scram.cc)
+ target_link_libraries(scram scramcore ${Boost_LIBRARIES})
+-- 
+2.7.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f14e14e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Disable-installation-of-the-libscramcore.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c9b9ef7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DBUILD_GUI=OFF \
+		-DBUILD_TESTS=OFF
+
+%:
+	dh $@ --buildsystem=cmake --parallel
diff --git a/debian/scram.1 b/debian/scram.1
new file mode 100644
index 0000000..3028f5e
--- /dev/null
+++ b/debian/scram.1
@@ -0,0 +1,93 @@
+.TH SCRAM "1" "September 2016" "SCRAM 0.11.4" "SCRAM Manual"
+.SH NAME
+SCRAM \- Command-line Risk Analysis Multi-tool
+.SH SYNOPSIS
+.B scram
+[\fIinput-files\fR] [\fIoptions\fR]
+.SH DESCRIPTION
+.PP
+\fBSCRAM\fP is a probabilistic risk analysis (PRA) tool.
+It can perform static fault tree analysis,
+analysis with common cause failure models,
+probability calculations with importance analysis,
+and uncertainty analysis with Monte Carlo simulations.
+This tool can handle non-coherent fault trees, containing NOT logic.
+.PP
+\fBSCRAM\fP works with PRA models and constructs described
+in OpenPSA Model Exchange Format.
+.SH OPTIONS
+.TP
+\fB\-\-version\fR
+Prints version information of SCRAM and its dependencies
+.TP
+\fB\-\-help\fR
+Prints the help message with a list of commands
+.TP
+\fB\-\-input\-files\fR arg
+Run with analysis constructs from XML input files
+.TP
+\fB\-\-config\-file\fR arg
+Run analysis with configurations from XML configuration file
+.TP
+\fB\-\-validate\fR
+Validate input and configuration files without analysis
+.TP
+\fB\-\-bdd\fR
+Perform qualitative analysis with Binary Decision Diagrams
+.TP
+\fB\-\-zbdd\fR
+Perform qualitative analysis with Zero-Suppressed Binary Decision Diagrams
+.TP
+\fB\-\-mocus\fR
+Perform qualitative analysis with the MOCUS algorithm
+.TP
+\fB\-\-prime\-implicants\fR
+Calcualte prime implicants instead of minimal cut sets
+.TP
+\fB\-\-probability\fR arg
+Perform probability analysis
+.TP
+\fB\-\-importance\fR arg
+Perform importance analysis
+.TP
+\fB\-\-uncertainty\fR arg
+Perform uncertainty analysis
+.TP
+\fB\-\-ccf\fR arg
+Perform common\-cause failure analysis
+.TP
+\fB\-\-rare\-event\fR
+Use the rare event approximation for probability
+calculations
+.TP
+\fB\-\-mcub\fR
+Use the MCUB approximation for probability
+calculations
+.HP
+\fB\-l\fR [ \fB\-\-limit\-order\fR ] arg
+Upper limit for the product order
+.TP
+\fB\-\-cut\-off\fR arg
+Cut\-off probability for products
+.TP
+\fB\-\-mission\-time\fR arg
+Set the system mission time in hours for probability calculations
+.TP
+\fB\-\-num\-trials\fR arg
+Set the number of trials for Monte Carlo simulations
+.TP
+\fB\-\-num\-quantiles\fR arg
+Set the number of quantiles for distributions
+.TP
+\fB\-\-num\-bins\fR arg
+Set the number of bins for histograms
+.TP
+\fB\-\-seed\fR arg
+Set the seed for the pseudo\-random number generator
+.HP
+\fB\-o\fR [ \fB\-\-output\-path\fR ] arg Output path for reports
+.TP
+\fB\-\-verbosity\fR arg
+Set the log verbosity
+.SH "SEE ALSO"
+http://scram-pra.org
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8ea881a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/rakhimov/scram/releases /rakhimov/scram/archive/(.+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scram.git



More information about the debian-science-commits mailing list