[python-pysb] Initial packaging
Zbigniew Jędrzejewski-Szmek
zbyszek at fedoraproject.org
Fri Dec 5 17:55:28 UTC 2014
commit 3b5b9b4ac816359df86a02520422374d618c9a96
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 21 20:11:57 2014 -0500
Initial packaging
python-pysb.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
2 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/python-pysb.spec b/python-pysb.spec
new file mode 100644
index 0000000..1175e0b
--- /dev/null
+++ b/python-pysb.spec
@@ -0,0 +1,79 @@
+Name: python-pysb
+Version: 0.1.11
+Release: 1%{?dist}
+Summary: Rule-based modeling of biochemical systems as Python programs
+License: BSD
+URL: http://pysb.org/
+Source0: https://pypi.python.org/packages/source/p/pysb/pysb-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+# For building documentation
+#BuildRequires: dvipng
+#BuildRequires: python-sphinx
+#BuildRequires: tex(latex)
+# https://github.com/pysb/pysb/issues/99
+Requires: bionetgen
+Requires: numpy
+Requires: scipy
+Requires: python-matplotlib
+Requires: sympy
+Requires: python-pygraphviz
+
+%description
+PySB is a framework for building mathematical models of biochemical
+systems as Python programs. PySB abstracts the complex process of
+creating equations describing interactions among multiple proteins or
+other biomolecules into a simple and intuitive domain specific
+programming language, which is internally translated into BioNetGen or
+Kappa rules and from there into systems of equations. PySB makes it
+straightforward to divide models into modules and to call libraries of
+reusable elements (macros) that encode standard biochemical
+actions. These features promote model transparency, reuse and
+accuracy. PySB also interoperates with standard scientific Python
+libraries such as NumPy, SciPy and SymPy enabling model simulation and
+analysis.
+
+%if 0
+%package doc
+Summary: HTML documentation for %{name}
+Group: Documentation
+
+%description doc
+This package contains the HTML documentation for %{name}.
+%endif
+
+%prep
+%setup -q -n pysb-%{version}
+# https://github.com/pysb/pysb/issues/100
+sed -i -e "s|/usr/local/share/BioNetGen|%{perl_vendorlib}/BioNetGen|" \
+ -e "s|'c:/Program Files/BioNetGen',||" \
+ pysb/bng.py
+
+%build
+python setup.py build
+
+%if 0
+# Build documentation
+cd doc
+python build.py
+%endif
+
+%install
+python2 setup.py install --skip-build --root %{buildroot}
+
+%files
+%license LICENSE.txt
+%doc README.rst
+%{python_sitelib}/pysb/
+%{python_sitelib}/pysb-%{version}-*.egg-info
+%{_bindir}/pysb_export
+
+%if 0
+%files doc
+%doc doc/build/*
+%endif
+
+%changelog
+* Fri Nov 21 2014 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> - 0.1.11-1
+- Initial packaging.
diff --git a/sources b/sources
index e69de29..7c983df 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+55359e9253b0fffc6759cf55a9e5f0db pysb-0.1.11.tar.gz
More information about the scm-commits
mailing list